#foswiki 2017-07-12,Wed

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

WhoWhatWhen
***geetar1 has left [02:36]
..................... (idle for 1h40mn)
DeanSpicer has left
DeanSpicer has left
DeanSpicer has left
[04:16]
...................... (idle for 1h46mn)
ChanServ sets mode: +o cdot [06:05]
...... (idle for 27mn)
ChanServ sets mode: +o MichaelDaum [06:32]
........ (idle for 35mn)
GithubBot[distro] MichaelDaum pushed 1 new commit to Item14288: https://git.io/vQyer
distro/Item14288 7a618fc MichaelDaum: Merge remote-tracking branch 'origin/master' into Item14288
[07:07]
***GithubBot has left [07:07]
FoswikiBothttps://foswiki.org/Tasks/Item14288 [ Item14288: rewrite to support pluggable edit engines ] [07:07]
........ (idle for 38mn)
***ChanServ sets mode: +o cdot [07:45]
..................... (idle for 1h43mn)
ChanServ sets mode: +o Lynnwood [09:28]
......................... (idle for 2h3mn)
ChanServ sets mode: +o Lynnwood [11:31]
............ (idle for 57mn)
ChanServ sets mode: +o Lynnwood [12:28]
ChanServ sets mode: +o MichaelDaum [12:40]
...... (idle for 26mn)
GithubBot[SpacedWikiWordPlugin] cdot pushed 1 new commit to master: https://git.io/vQyo4
SpacedWikiWordPlugin/master 8bb0582 cdot: Item14433: modernise the plugin for Foswiki 2
[13:06]
***GithubBot has left [13:06]
FoswikiBothttps://foswiki.org/Tasks/Item14433 [ Item14433: Modernise ] [13:06]
***ChanServ sets mode: +o gac410 [13:17]
............................. (idle for 2h23mn)
LynnwoodGreetings all - I recently got report that email notification have stopped going our recently so I'm troubleshooting it. The only recent change that I can think of is updating Foswiki from 2.1.3 to 2.1.4 last week. When I run mail notify manually (as apache user), I'm getting error that starts with "Can't locate tools//../bin/setlib.cfg in @INC..." Anyone seen something like this? [15:40]
***geetar has left [15:41]
cdotLynnwood: what's the full crontab entry?
and/or command line you ran with
[15:44]
LynnwoodThe command line I ran (from foswiki root) was "perl -I bin tools/mailnotify Manual"
Manual being the web that I wanted to run it for.
The /etc/crontab entry was like this (path faked): 0 */2 * * * www-data cd /var/www/foswiki && perl -I bin tools/mailnotify -q Manual >/dev/null 2>&1
At the end of the error message, it references line 35 of tools/mailnotify... but that basically is confirming it can find setlib.cfg.
sorry... line 36
[15:46]
ok... I got it to run ok but using "perl -I ./bin ./tools/mailnotify Manual
now i'm getting some of the "Unescaped left brace in regex is deprecated..." errors from some of the plugins, but still seems to be running.
[15:58]
I guess mailnotify automatically processes sub-webs... [16:13]
.... (idle for 17mn)
cdotyup [16:30]
................. (idle for 1h20mn)
foswiki_irc8@gac410 - I am online now re. FOSWiki installation. Anytime you are ready. [17:50]
gac410hi foswiki_irc8 [17:50]
foswiki_irc8thanks for meeting with me on this project [17:51]
gac410I have a couple of print statemtns to add to lib/Foswiki/configure/FileUtil.pm https://pastebin.com/5f44H31A
That should dump out what it is inspecting for the ,v / ,pfv file detection
to the error.log for the web server.
[17:52]
foswiki_irc8can i cut and past this in the ssh shell or do i open the file and add the lines with + ? [17:53]
gac410probably easiest to edit the file and add those two lines ... not including the + [17:54]
foswiki_irc8ok [17:54]
gac410then just visit your webhome page and let's see what you get in the logs. [17:55]
***geetar has left [17:57]
foswiki_irc8done. I have set up a completely new foswiki directory from the tgz file (downloaded via wget). so i should set up the htaccess files first right? [17:57]
gac410yes ... just install normally as you did the other day.
I manually created both ,v and ,pfv files to trigger the same failure. https://pastebin.com/3yBnahD3 is what I saw in the log messages.
[17:57]
foswiki_irc8...creating htaccess files and locallib [18:02]
gac410okay [18:02]
foswiki_irc8ok - pointed browser to /foswiki/bin/view/Main/WebHome - software error ,v ,pfv etc. comes up [18:03]
gac410Can you look at the server error log file to see what was dumped? [18:03]
foswiki_irc8https://pastebin.com/WbLLU1n6
ok
how do i access the server error log in the ssh?
[18:04]
gac410No idea on your hosted site. On a normal apache install it would be in /var/log/apache/error.log
or something like that.
[18:06]
foswiki_irc8seems like i cannot access the server error logs on this hosted server - maybe we echo the output to a file? [18:09]
gac410I don't think so. Those are captured by apache. Let me see if I can get some more info into that die message [18:10]
foswiki_irc8btw. since i started from scratch i have not run the configure CLI tool yet [18:13]
gac410in lib/Foswiki/Contrib/PlainFileStoreContrib.pm line 71, is the "die" message.
That's okay
change the line to read ... lease resolve the histories manually. - ($hit)\n";
That should at least show one of the files it thinks it found.
And will put the message up on the web
[18:13]
foswiki_irc8(Search failed: Directory open of failed. Check permissions.) [18:16]
gac410okay... hm [18:16]
foswiki_irc8my 2 cents: autoconfigure cannot determine the right directory [18:18]
gac410y, something is really strange here. I wish I could see the whole AUTOCONFIG log that is traced to the apache error.log.
Change the $hit in that message to read $Foswiki::cfg{DataDir} $Foswiki::cfg{PubDir} That will show the directory names that it guessed.
[18:19]
foswiki_irc8it shows the two spaces (i did a "--$Foswiki::cfg{DataDir} $Foswiki::cfg{PubDir}--" and i get "-- --"). [18:23]
gac410okay. somehow the bootstrap code is completely unable to locate itself. try to run tools/configure -save let's build the config from the CLI. [18:25]
foswiki_irc8when i run "tools/configure" in SSH it shows the perl code instead of running the code
i guess i try "perl tools/configure"
[18:27]
gac410yes [18:27]
foswiki_irc8same result
let me check chmod
[18:27]
gac410perl tools/configure should never show the perl code... that is really strange. [18:28]
foswiki_irc8chmode 505 - that should work [18:28]
gac410"perl -v" should show you the version of perl installed? [18:29]
foswiki_irc8This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-gnu-thread-multi (with 95 registered patches, see perl -V for more detail) [18:30]
gac410okay... so perl tools/configure should just run configure. That case does not even need execute permission. [18:30]
foswiki_irc8tried again - just shows "#! /usr/bin/env perl # Shell access to Foswiki.spec, Config.spec and LocalSite.cfg # See bottom of file for POD documentation. # # Author: Crawford Currie http://c-dot.co.uk # # Foswiki - The Free and Open Source Wiki, http://foswiki.org/ #..." [18:31]
FoswikiBot[ Foswiki - The free enterprise collaboration platform ] [18:31]
foswiki_irc8could there be a setting that it has to be a .pl file?
"#! /usr/bin/env perl" should work
[18:32]
gac410not when you are passing the filename directly to the perl interpreter. [18:32]
foswiki_irc8i see [18:32]
gac410the #! shebang line is used for the auto execute from the shell. [18:32]
foswiki_irc8ah ok
just learned two new things on the side. thanks!
[18:32]
gac410Do you mind if I try to ssh in. I ask thought that you either set up a temp password, or please change it after I'm done. I don't want to have ongoing access.
You could send me a private message.
[18:33]
foswiki_irc8ok
how do i sent a private message?
[18:34]
gac410hm In my IRC client I right-click on the person's name and select IM ... but not sure how in a web client. [18:34]
foswiki_irc8thanks
just sent it off
[18:38]
gac410Can you install packages? toosl/configure is complaining You need to install the perl-doc package to use this program.
It does use the perl doc internally to generate its help text.
[18:43]
foswiki_irc8let me check if i can install packages. the missing crypt package for FOSWiki i just copied into lib/CPAN [18:45]
gac410hang on ... I'm trying to comment out the help code. [18:45]
foswiki_irc8funny thing is we got that tool working last time - don't know what we did then [18:46]
gac410No idea. But it's running now. Let me set up a config [18:47]
foswiki_irc8ok [18:47]
gac410okay. we are back to the blank page with seo parking [18:51]
foswiki_irc8ah - almost feels like home ... [18:52]
gac410At this point without seeing the web server error logs I really have no idea where to go from here. [18:52]
foswiki_irc8so that was the default error document handling of the providers settings - they can be changed with a htaccess in the htdocs root i understand. would that help? [18:53]
gac410From what I can see in your logs/access.log.current ... it's failing with at 500 error which could be almost anything.
You are missing Email::MIME and Email::Simple. CPAN modules. I'm not sure if that would cause that error.
basically a 500 said something failed when apache tried to run it. Not having access to the error_log file makes that nearly impossible to debug
[18:55]
foswiki_irc8the configure tool said something that they are optional (but of course needed for email uses).
i see - i checked with the provider - there is no access to the error log as far as I got.
[18:57]
gac410y. as I said, I don't they they would cause that issue. but I'm grasping at straws now.
let me look over your .htaccess files.
Do you know what version of apache is in use?
[18:57]
foswiki_irc8i just found a note that older htaccess statements could cause that
it is running apache 2.4 as far as i know
[19:01]
gac410ah... okay your config files are for apache 2.2 I'll change them. [19:01]
foswiki_irc8ok. they write that "Options All (-Indexes, -DirectoryListing" the ALL is invalid as of 2.4 [19:02]
gac410the .htaccess files don
don't have the ALL ..
running the bin/view script from the shell, it seems to generate a page okay. So it's something either with the apache config or the environment
[19:10]
foswiki_irc8yes i am getting new error msg: failed: couldn't load CGI::Session::Serialize::storable: Can't load 'path-linux-gnupath' for module Storable: path-linux-gnupath: failed to map segment from shared object: Cannot allocate memory
a new error msg - that is encouraging
[19:13]
gac410someone else ran into the same issue the other day.
and I have no idea why
[19:13]
foswiki_irc8just looking at the irc logs... [19:15]
gac410Okay, I made a change to LoginManager.pm to change from "storable" to "default" which is the default module. Still failing, but maybe generating a different error message? [19:16]
foswiki_irc8default 500 page
is there a directory missing or the access rights off: 'path-linux-gnupath' ?
[19:18]
gac410no. I think that is a "sanitized" message so that errors do not reveal server architecture. [19:19]
foswiki_irc8ah i see [19:20]
gac410I ran a tools/dependencies -all Everything looks right. And that error *should* have changed as Serialize::storable should not be being used. [19:20]
foswiki_irc8it changed to having the default 500 error page
so i guess it got over that problem and is stuck again on the next thing?
[19:21]
gac410Ah... googling for that error: failed to map segment from shared object: Cannot allocate memory seem to say that maybe the web host is limiting memory usage'
it may be that foswiki is "too large" for the shared hosting environment.
[19:24]
foswiki_irc8let me check if i can increase memory for it
in the admin panel
[19:26]
they talk only about php memory limit - this account has a limit of 512MB [19:32]
gac410that seems like it would be enough for a small wiki. We do use a lot of memory especially the search facilities. [19:34]
foswiki_irc8do you know if FOSWiki is "unusually" large? I have run Perl-based stuff a lot on that account and never ran out of memory [19:34]
gac410I don't think it's that large. Trying to create the session object is really early in the init process.
looking at the FCGI handlers for one of my sites, it's running 200-300 meg
for the foswiki.org site, it's aroud 300-400 meg for each fcgi handler.
[19:35]
foswiki_irc8since now error 500 is coming up again it seems that the session might have been created - is there a way to see if it has e.g. semaphore file? [19:37]
gac410It did not. Session files are written to working/tmp [19:38]
foswiki_irc8could it be that we still have an apache version incompatibility - just now later in the process? [19:38]
gac410I don't think so.
This is deep down in perl.
[19:39]
foswiki_irc8i see [19:39]
gac410usually when memory allocation fails it's either a broken perl (unlikely) or restrictions of some sort. Or a really busy system. [19:39]
foswiki_irc8look - i do understand if you would like to give up [19:39]
gac410I'm not sure what else to suggest at this point. Maybe ask your hosting site for some support. [19:40]
foswiki_irc8you have spent a lot of time on this already - which i REALLY appreciate [19:40]
gac410btw... when I configured fowiki, I set the admin password the same as the password you emailed to me. [19:40]
foswiki_irc8i will check with the provider (i have not much hope there)
thanks
[19:41]
gac410even without the web, you can change it with tools/configure -save -set {Password}=somepasword [19:41]
foswiki_irc8i guess is is hashed in the cfg, right>
(sorry for typos)
[19:41]
gac410Sorry I could not be more help. Yes indeed. It's stored hashed. (and redacted from the change logs) [19:42]
foswiki_irc8Thank you a million times for your help! I really appreciate that you have been taking the time and the patience to deal with that. [19:42]
gac410anyway, I think at this point, the lib/LocalSite.cfg file is good. You have a configured wiki, but the apache scripts just won't run.
pub files are also being served correctly ... I manually fetched one
eg. http://testserver.artrelated.net/foswiki/pub/System/ProjectLogos/foswiki-badge.png
[19:42]
foswiki_irc8I will check with the provider and see if i can make it work. Will keep this configured installation at this stage. If I make it work I will post a how-to. [19:43]
gac410So if you can get by the memory allocation limitations, you shoulld probably have a functional wiki ;) I commented out the debug print messages [19:44]
foswiki_irc8thanks. [19:44]
gac410other changes I made. to bin/.htaccess and to lib/Foswiki/LoginManager.pm changed the serializer to "default"
which will work just fine unles users are registering with unicode - non-ascii user names.
[19:44]
foswiki_irc8yes - got that noted [19:45]
gac410I've logged out from the shell ... please change your passwords. [19:45]
foswiki_irc8thanks [19:45]
gac410yw. Sorry I couldn't get you any further. [19:46]
foswiki_irc8just changed pw
many thanks again for your time!
[19:47]
gac410glad to help. [19:49]
.................. (idle for 1h29mn)
Pitz_Hi all, [21:18]
gac410hi Pitz_ [21:19]
Pitz_i upgraded from 2.1.0 to 2.1.4 and everything is fine, except ..
i cannot open the configure page
[21:20]
gac410what happens when you visit bin/configure? [21:20]
Pitz_i get "If you are seeing this message, javascript may be blocked or failing to load ..."
and in the error console ..
[21:22]
gac410ah. okay, or the jsonrpc command is failing. [21:22]
Pitz_https://s2p.de/bin/jsonrpc/configure https://s2p.de/bin/jsonrpc/configureFailed to load resource: the server responded with a status of 500 (HTTP/2.0 500)
and SyntaxError: JSON Parse error: Unrecognized token '<'
if i try it directly (the url) i get "{"jsonrpc":"2.0","error":{"code":-32600,"message":"Method must be POST"}}"
[21:23]
gac410y, it's restricted for POST. The chrome network page or firebug can show you the complete message returned with the 500 [21:25]
Pitz_any ideas? [21:25]
gac410is it a public site? [21:25]
Pitz_yup
i have modsecurity installed
[21:25]
gac410I think we need to see the actual 500 returned html. firebug on firefox, or chrome network panel can show that.
the JSON parse error is a symptom of the server returning the 500 error instead of valid JSON.
[21:28]
Pitz_where do i post the output? [21:29]
gac410you can use pastebin.com ... just pick a short lifetime - 10min or 1 hr. Or just describe the error a bit here. [21:29]
Pitz_The server encountered an internal error or
misconfiguration and was unable to complete
your request.
[21:30]
gac410Any details beyond that? [21:30]
Pitz_cloudflare
i use cloudflare
and in the message some cryptic stuff
[21:30]
gac410I don't know much about that.
can you pastebin the whole 500 response?
[21:31]
Pitz_mom i circumvent cloudflare [21:31]
gac410Or may need to look inthe web server error log. [21:31]
Pitz_[error] [client 93.242.80.51] ModSecurity: Unknown request body processor: JSON [hostname "sysadmin.wiki"] [uri "/bin/jsonrpc/configure"] [unique_id "WWaVoVXW8GQAADubuhAAAAAI"]
ok it seems to be modsecurity
moment
[21:33]
gac410y, I'm not really famiilar with mod security :( [21:34]
Pitz_ok now it works
i temporarly disabled modsecurity
ok thanks
[21:35]
gac410phew... not something we did then. :D And I have to go get supper going. [21:36]
Pitz_ok have a nice meal [21:36]
gac410ty
If you figure out how to get mod_security going, sounds like a good subject for a support topic.
[21:36]
Pitz_ok i try to figure it out
bye
[21:46]
***Pitz_ has left "Textual IRC Client: www.textualapp.com" [21:46]

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