#foswiki 2017-01-13,Fri

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
porch_Anyone get Spellcheck working under Chrome on Foswiki 2.1.2? [00:10]
guytronIt seems like every time I edit System/WebTopBarExample something happens to the markup and the jump/search forms turn into a visible unordered list
Reverting to r1 of the page fixes it.
[00:19]
gac410guytron: The recommendation is to copy System.WebTopBarExample to System.WebTopBar. Then tailor that one. You should probably use the wikitext editor, not Wysiwyg, and play close attention to matching the various < > ... </..> HTML tags [00:25]
......................... (idle for 2h3mn)
howdy vrurg ... about that patch
Yeah the working patch is very strange. But with that statement commented, configure won't run. And it also won't run with {$key} ...
Unit tests agree. Only thing that works is the original code, or the function call without any assignment.
[02:28]
vrurgHi gac410, I see. I just don't get the meaning of this code. But must admit, as I'm nearly finished rewriting .spec parser for my needs, there are a lot of rather confusing pieces in the Configure modules. [02:33]
gac410gac410 doesn't understand a lot of it either. Magic I guess ;) [02:34]
vrurgSometimes it is. Wonder what was it made for? .spec isn't an end-user entity. It is destined for developers. What was the purpose of inventing own format where Perl fits perfectly?
It forces developers learning something they'd need perhaps once in their lifetime.
[02:35]
gac410It evolved over time. Originally it was just the default values that were run with "do" ... Gradually structure and comments got added. [02:36]
vrurgYet it's wrapped into just tons of code which is really hard to read.
Ok, actually it explains it all.
Though still it's funny to compary: legacy (the current .spec format) parser – 1000 lines; perl format – 50 lines including copyright. ;)
[02:36]
gac410at one point in time, pseudo install merely extracted the assignments from the .spec file and concatenanted them onto LocalSite.cfg [02:40]
vrurgWhell, my format, if you remmeber, is still more complicated then just defaults. It's a full-fledged data structure. And the code operates with objects similar to those in the Configure. This is both to make it easier to adapt the UI and because it's quite logical approach.
Hope it'll be ok. What worries me is the workload I've got lately. For now it leaves me with 2-3 hours at the day end of which 1 hour I spend just to refresh what's been done previously.
The code quality is what suffers most because of this. :(
[02:43]
gac410well you do seem to be making progress. Don't burn out ;) [02:50]
vrurgA motivating speech, I know. ;)
Thanks anyway! :)
[02:52]
gac410I do indeed agree that your new structure should be a lot more straight forward. [02:53]
vrurgMy personal trainer do the same. I know it's only to support me but it works anyway! :)
The simplicity isn't the only purpose of it.
I want to have a solution for early-init issues – a replacement for setlib.cfg
Ok, enough for today. I was just reading news. Not capable of anything else. :)
[02:53]
gac410gac410 tied down to ice-bucket chilling my knee. [02:57]
vrurgOh, something I will be doing in 10-15 years, perhaps. Joints are my family curse. Mine just started reminding of themselves recently...
Is your knee getting better anyway?
[02:59]
gac410anyway, tough to get motivated at times.
have a good evening.
[03:01]
vrurgFrom what I knew about these issues, it's going well. Don't give up! [03:03]
gac410no definitely not. [03:04]
vrurgWith my exercises which I started only few months ago (years before I was convinced that it's bad for my eyes – I'm shortseeing) it's now cleat how much moving is helping our body. Obvious, but I had to feel it myself. :) [03:05]
gac410y. sitting is a death sentence. Must keep moving. [03:06]
vrurgOk, really time for evening beer and a show episode. ;) Wish you good progress!
Good night!
[03:06]
gac410good night! And thanks! [03:07]
***gac410 sets mode: +o vrurg [03:07]
............................................. (idle for 3h44mn)
ChanServ sets mode: +o cdot [06:51]
ChanServ sets mode: +o MichaelDaum [06:59]
....... (idle for 31mn)
Deaygo has quit IRC (Ping timeout: 255 seconds) [07:30]
..... (idle for 23mn)
ChanServ sets mode: +o MichaelDaum [07:53]
............................................................................. (idle for 6h21mn)
ChanServ sets mode: +o gac410 [14:14]
.... (idle for 16mn)
gac410jast: are you around? [14:30]
.... (idle for 16mn)
***ChanServ sets mode: +o Lynnwood [14:46]
jastgac410: yep [14:54]
gac410looks like weblate still has your old email address in it. Want to pm me a new address? Keeps bouncing to the infra list. [14:55]
jasthum [14:56]
gac410or if you can login, please update. [14:56]
jastI can't, sorry [14:56]
gac410okay. I think I can update it if you want [14:56]
jastok fixed [14:58]
gac410okay ... Let's see if that quiets it down. It's been only one ever few days. Have not been paying too close attention. thanks [14:59]
jasthappy to help :) [14:59]
gac410okay thanks.
looks good. thanks. Hopefully that squashes the oof messages.
er. ooo messages
[15:02]
jastif it keeps happening we might have to get a server admin involved [15:05]
gac410okay. sounds good [15:06]
jastweblate has an admin address configured on the filesystem which I don't think you can edit from the web. I don't remember what I put there. [15:06]
............... (idle for 1h11mn)
***ChanServ sets mode: +o RaulFR [16:17]
RaulFRhello :-) [16:17]
gac410Howdy RaulFR - Happy New Year [16:17]
RaulFRhey gac410, happy new year too, nice to be greeted like this :-) [16:21]
gac410thanks
github just went down: :(
[16:22]
RaulFRouch
that's when you realize that you are so dependent on Cloud tools that you can't work if they are not around, or decide they have to close the company, close the service, or close your account
[16:23]
gac410well we are in pretty good shape git-wise. We have a full dump of all our repos, taken "on demand" when changes detected. [16:28]
jastit's back btw [16:29]
gac410If we really had to we could spin up a git server on f.o ... but I doubt the outage will be that severe. Ah... great. [16:29]
......................... (idle for 2h0mn)
***zak256 has left [18:29]
......................... (idle for 2h0mn)
daveyfxhey all. i'm running foswiki 2.1.2 with nginx proxying requests to foswiki.fcgi on a network listener port. this seems to work just fine for the most part, except for search capability.
upstream prematurely closed FastCGI stdout while reading response header from upstream
nginx logs this message when i try to run any search
any ideas, or debugging tips, would be welcome :)
[20:29]
gac410Is it a timeout?
Search can run a long time depending on the criteria
[20:30]
daveyfxit logs pretty quickly, in fact [20:31]
gac410What search are you configured for? forking (grep) or pure perl
Are there any errors logged to the nginx error log, or the foswiki working/logs/error log
[20:32]
daveyfxforking... but i think this helps me
for some reason i didn't notice this previously, but my config screen is showing the following:
"Command grep failed, may not be installed, or found on path."
if it's trying to fork a grep, and cannot find it, i'm assuming that would cause the failure :)
[20:34]
gac410y You need to use pure perl. Avoiding OS forks is generally advised anyway on persistent perl
Though it's much more costly with mod_perl
Bootstrap *should* have detected the missing grep and configured pure perl automatically.
[20:35]
daveyfxcould be because i'm using a perl wrapper
:)
spawn-fcgi in this case
[20:36]
gac410I'm really surprised that your OS doesn't have grep ... what is the platform? [20:37]
daveyfxhah. it definitely does have grep installed.
centos 7
standard PATH as well. it's under /usr/bin
so i'm kind of scratching my head over this one
[20:37]
gac410hm Maybe selinux restrictions - preventing forking to external programs?
I think centos enables selinux
[20:38]
daveyfxi checked that out first
[root@wikit lib]# getenforce
Disabled
[20:38]
gac410really strange. I've never heard of this issue. [20:39]
daveyfxi'm assuming there's something about the way i'm launching foswiki.fcgi that is not reading path. [20:39]
gac410Did you configure the SafeEnvPath setting under File paths?
That should override any OS provided path, Required under nginx for some reason iirc
[20:39]
daveyfxi left that blank. i'm assuming i shouldn't do that :)
interesting!
[20:40]
gac410I thought we had a checker that would warn/error if that was missing ... but may be confusing things in the upcoming 2.1.3 [20:41]
daveyfxno, you're right
it's alerting me about the absence of that form value...
[20:42]
gac410Best to visit and consider fixing all of the warnings/errors. Some are noise, but most are probably important ;) [20:42]
daveyfxyup
that fixed it for me!
[20:43]
gac410great [20:43]
daveyfxbut you were suggesting that avoiding forks is the way to go anyhow?
is that just due to cpu overhead incurred through perl?
[20:43]
gac410I'm uncertain how important that is on fcgi. The "rule of thumb" was to avoid it with persistent perl but
the big culprit was mod_perl where fork has to fork all of apache
[20:44]
daveyfxah
i gotcha. probably due to apache's prefork method.
mod_perl has to fork a new apache process and essentially load EVERYTHING.
[20:44]
gac410yes so fcgi is hopefully a lot more lightweight [20:45]
daveyfxthank you for your help! [20:45]
gac410you're welcome [20:45]
daveyfxyeah, it's very lightweight.
everything's working perfectly now, although it was difficult to piece together an nginx config that worked 100%.
[20:45]
gac410y. Most common config is apache, only a couple of devs have contributed to the nginx examples. And some of them need some work. For ex, expecting a webname to start with uppercase A-Z
Which with unicode is not covering all thepossibilities
[20:47]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)