#foswiki 2012-12-07,Fri

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

WhoWhatWhen
gac410hm. Not a lot. In the bin/LocalLib.cfg.txt you can rename that to LocalLib.cfg, and enable ASSERTS that will cause warnings to become failures, and generate more obvious stack traces [00:00]
........ (idle for 35mn)
wryfi: just looking at 1.1.2 Foswiki.pm, it doesn't touch temporary file location. It let's perl use it's own defaults. As does every release up through 1.1.6
Foswiki 1.2 lets bin/configure set a temporary file location. and Foswiki.pm will set the ENV values to that configured location and untaint them so perl trusts them.
[00:35]
wryfigac410: yeah, that's what i figured ... just not clear how to change perl's default [00:36]
gac410You are running on linux? [00:37]
wryfiyeah [00:37]
gac410I've never run across the defaults not working before. Something must be really locked down. [00:37]
wryfiyes, it is an unusual environment
all but a few specific paths are read-only
http://search.cpan.org/dist/CGI/lib/CGI.pm describes the algo used by CGI.pm
under heading -private_tempfiles
[00:37]
gac410Take a look at http://trac.foswiki.org/browser/trunk/core/lib/Foswiki.pm#L1675 this is what we are doing for Foswiki 1.2.0 [00:40]
wryfii'm assuming $CGITempFile::TMPDIRECTORY must be getting set somewhere
perhaps?
at any rate, the algo is never getting to step 3
(because /tmp is writeable)
[00:41]
gac410hm. You are saying that /tmp works? I guess I'm not following you.
TMPDIRECTORY is not referenced in the code that I can find.
[00:44]
wryfiyeah, i grepped for that, too
gac410: according to the CGI.pm docs ...
The temporary directory is selected using the following algorithm:
1. if $CGITempFile::TMPDIRECTORY is already set, use that
2. if the environment variable TMPDIR exists, use the location indicated.
3. Otherwise try the locations /usr/tmp, /var/tmp, C:\temp, /tmp, /temp, ::Temporary Items, and \WWW_ROOT.
[00:46]
gac410Usually what I end up doing is put "print STDERR " some debug info"; here and there, dumping variables. Though if the variable is undef you'll get an error.
Right. I read that.
[00:46]
wryfiso it is never getting to #3, or else it would work
because /tmp is writeable
[00:47]
gac410Oh okay I get it. I thought you were saying "it never got to 3 because /tmp was writable" [00:47]
wryfigac410: thanks for your help. i've exhausted the time i have to work on it today
will return to this another time
looks like it will be better in 1.2
[00:48]
gac410What directories are write protected. It would be interesting to try to recreate you issue. [00:52]
wryfithe docroot is (obviously) writeable, /tmp is writeable, /var/run, /var/lock, /var/lib/urandom, /dev/shm, /lib/init/rw, /var/log
basically everything else is read-only
we use a single read-only image across all of our deployed nodes
inspired by oneSIS, but a little different
http://onesis.org/
[00:54]
gac410Okay thanks. It's strange that CGI is picking a protected location. I wonder if it's trying to save to the Cwd - which would be /bin. An interesting test might be to unprotect the bin directory just to see if that resolves the issue.
er. not /bin
the foswiki scripts directory foswiki/bin
Though the 1.2 code should set and untaint TMPDIR which would also resolve this I suspect.
[01:02]
wryfiyes foswiki/bin is writeable [01:07]
gac410hm. well that lets that one out. Well I'll let you get back to your work. If you get any more info, please open a task, esp. if it looks like the 1.2 fixes won't help. [01:08]
It could also be an old version of CGI. Next time you look at it, also post your CGI version. Thanks
Babar: What would you have for thoughts on us adding a cgi script that returned the IP address and reverse dns hostname as part of the email autoconfigure check.
So that configure can try to ensure a correct MAILHOST setting, to deal with servers that reject based upon the EHLO hostname
[01:17]
***wryfi has left [01:21]
.......................................... (idle for 3h29mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/A3709w
foswiki/master e85977e GeorgeClark: Item11765: Correct missing form message...
[04:50]
***GithubBot has left [04:50]
FoswikiBothttp://foswiki.org/Tasks/Item11765 [ Item11765: oops message for creating a topic with a missing formtemplate topic pre-pends a web - even if there already is one ] [04:50]
....... (idle for 30mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to Release01x01: http://git.io/i1S6LQ
foswiki/Release01x01 4a45ce5 GeorgeClark: Item11765: Correct missing form message...
[05:20]
***GithubBot has left [05:20]
.................... (idle for 1h38mn)
pharveyguten abend [06:58]
..... (idle for 23mn)
MartinKaufmannHi! Picking it up from where I left it yesterday: I'm trying to convert a SEARCH query to DBQUERY but don't fully understand the syntax. Does anyone have some examples (beyond the plugin documentation)?
Here's my SEARCH query: http://pastebin.com/XXpvgaNb
[07:21]
............... (idle for 1h11mn)
Which version of JQuery is recommended to be used in 1.1.6 in conjunction with SolrPlugin? [08:32]
..... (idle for 22mn)
CDotMartinKaufmann: "form.name =~ 'BlogPostForm'"
the syntax is very similar to the %QUERY syntax (they have common antecedents)
[08:54]
MartinKaufmannCDot: Yes, I got that part. But what about the formatting part? The format strings from SEARCH don't work (i.e. $createdate).
$formfield I replace by $expand and also used $trunc (although I don't get the same behaviour as "$formfield(Title, 60, ...)").
[08:58]
.... (idle for 19mn)
CDotno, there will be behavioural differences. I'm not the best person to advise on that; I don't use DBCachePlugin myself.
CDot is moving to %QUERY and DBIStoreContrib as and when he finds the time.
[09:19]
......... (idle for 40mn)
MartinKaufmannIs the setting USERSTYLEURL still valid in 1.1.6? Doesn't seem to work for me. [10:00]
CDotno idea, sorry. There have been more changes in the skin configuration than I have kept track of. [10:02]
.................. (idle for 1h26mn)
***ChanServ sets mode: +o MichaelDaum [11:28]
................... (idle for 1h32mn)
MartinKaufmannMichaelDaum: Do you know which version of JQuery is recommended to be used in 1.1.6 in conjunction with SolrPlugin? [13:00]
MichaelDaum1.8.2 ... which is the default in the latest jquery plugin [13:00]
MartinKaufmannMichaelDaum: Thanks. That's what I'm using at the moment.
I get the following error on SolrSearch:
Syntax error, unrecognized expression: meta[name^=foswiki.SolrPlugin.mapping]
[13:01]
MichaelDaumtry to use the SolrPlugin from subversion/trunk [13:02]
jastthat selector syntax has existed in JQuery since 1.0
oh, missing quotes
[13:03]
MartinKaufmannMichaelDaum: Is GitHub up-to-date as well? https://github.com/foswiki/SolrPlugin [13:06]
MichaelDaumyep [13:06]
jastgithub typically updates within less than an hour after changes arrive in svn (iirc) [13:10]
MartinKaufmannMichaelDaum: I still get the same error. [13:13]
MichaelDaumyep
that's because you use an outdated SolrPlugin
try to use the SolrPlugin from subversion/trunk
[13:13]
MartinKaufmannI upgraded to the latest version from GitHub and still get the same error message. [13:14]
jastwhat did you use for upgrading? [13:14]
MartinKaufmannWell, I just copied the files over the current installation. That's what I usually do with plugin upgrades. Was that not a good idea?
I just noticed that I haven't restarted solr.
Now solr won't start anymore.
OK, up and running again - but still the same error.
[13:16]
...... (idle for 25mn)
MichaelDaumMartinKaufmann, you probably have got the new css and js but forgot to minify/gzip them. there are Makefiles for that.
gotta run. l8tr.
[13:50]
................... (idle for 1h31mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/mxGcQw
foswiki/master 5aafaee TimotheLitt: Item12180: Allow padding in filter....
[15:21]
***GithubBot has left [15:21]
FoswikiBothttp://foswiki.org/Tasks/Item12180 [ Item12180: Implementation for AJAXOnDemandCheckersForConfigure ] [15:21]
...................................................... (idle for 4h26mn)
***WikiRingBot has quit IRC (*.net *.split)
VerboEse|Off has quit IRC (*.net *.split)
[19:47]
sendak.freenode.net sets mode: +oooo SvenDowideit ColasHome Colas ChanServ
sendak.freenode.net sets mode: +voov FoswikiBot fsfs uebera|| WikiRingBot
[20:00]
....... (idle for 31mn)
gigglesworthCan I send the foswiki logs to syslog?
Really, I just need the logs to be handled by Apache, so that I can make use of Apache's syslog abilities (which we use extensively already).
[20:31]
............ (idle for 59mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/qTM1Cw
foswiki/master 6ead8c5 TimotheLitt: Item12180: Need to expand values before using them...
[21:34]
***GithubBot has left [21:34]
FoswikiBothttp://foswiki.org/Tasks/Item12180 [ Item12180: Implementation for AJAXOnDemandCheckersForConfigure ] [21:34]
......................... (idle for 2h1mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/JvSjDA
foswiki/master ded05e9 TimotheLitt: Item12180: Implement FB_ACTION...
[23:35]
***GithubBot has left [23:35]
FoswikiBothttp://foswiki.org/Tasks/Item12180 [ Item12180: Implementation for AJAXOnDemandCheckersForConfigure ] [23:35]

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