#foswiki 2017-07-06,Thu

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

WhoWhatWhen
foswiki_irc1yes - just opened it [00:00]
gac410Comment out the line 322 $store->bootstrapStore() if ($ok); (Add a # in front of the $store ) ie
#$store->bootstrapStore() if ($ok);
That will skip some of those checks
[00:00]
foswiki_irc1just did that and reloaded "Unable to bootstrap configuration. LocalSite.cfg could not be loaded, and Foswiki was unable to guess the locations of the following critical directories: {ScriptDir} (guessed ) {TemplateDir} (guessed ) {WorkingDir} (guessed )" [00:02]
gac410hm Any other errors? I just made that change here and it did bootstrap okay.
Do you have shell access?
[00:03]
foswiki_irc1i can set up shell access [00:04]
gac410What I'd like to see is a run of the tools/dependencies script. Though that might have trouble if bootstrap is hosed. [00:05]
foswiki_irc1might take me a moment to set up shell access [00:06]
gac410What web server is used? apache? [00:07]
foswiki_irc1yes [00:07]
gac410I'm not sure why it wouldn't be able to guess directories. I think it's some critical dependency that's missing. Have you reviewed the list of CPAN modules on Foswiki:System.SystemRequirements [00:08]
FoswikiBothttps://foswiki.org/System.SystemRequirements [ SystemRequirements ] [00:08]
foswiki_irc1ok set up ssh shell how do i run that script [00:09]
gac410cd /path/to/your/install/directory
then command is "tools/dependencies"
[00:09]
foswiki_irc1ok
did that - what part of the msgs would you need?
[00:11]
gac410can you just pastebin the whole dump? http://pastebin.com use a short expiration time and tell me the link
It should have generated a bunch of bootstrap messages plus if it got past that, a report of dependencies.
[00:12]
foswiki_irc1https://pastebin.com/0j3fX4D5 [00:13]
gac410hm That doesn't look all that bad. you will need to install Email::MIME and Email::Simple ... but those would not be causing this particular error I don't believe.
you could try to bootstrap foswiki from the command line. tools/configure -save That will ask you questions about stuff that it would normally bootstrap.
[00:15]
foswiki_irc1ok. thanks - i will try that right away [00:17]
gac410Not sure about file ownership though in this case. In a traditional apache install, files would need to be owned by apache, not your shell user.
But no idea how that goes in a shared hosting env like this.
Ah... you may have to undo your change to the bootstrap module.
y, you need to remove that # comment from Configure/Bootstrap.pm
[00:17]
foswiki_irc1ok - just finished running the configure script and undid our changes
now running configure -check
thanks for hanging on...
[00:23]
gac410sure
the big question, is does the web interface work
[00:24]
foswiki_irc1ok #1: #### ERROR: Configured Implementation is not a valid Foswiki Store. Foswiki will not be operational.
I set that to 'PlainFile'
[00:25]
gac410Did you remove the change for bootstrap Ah... okay , no it's a special string. Hang on and I'll give you the exact syntax
tools/configutools/configure -save -set {Store}{Implementation}=Foswiki::Store::PlainFile
[00:25]
FoswikiBothttps://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Store::PlainFile [00:27]
gac410Obviously without the smiley it's Store colon colon PlainFile [00:28]
foswiki_irc1i guess i can edit thistoo in the LocalSite.cfg directly [00:28]
gac410gah... cut/paste tools/configure -save -set {Store}{Implementation}=Foswiki::Store::PlainFile
yes You could do that too.
Just it's perl syntax, so have to get it right
[00:28]
foswiki_irc1ok did that and rerun -check
a couple of warnings - about the email implementation (as you mentioned before) and then
"#### ERROR: The system umask (072) is not compatible with the configured directory and file permissions. A umask of 022 is required to support the configured Directory and File masks of 755 and 644. Enable this setting to have the Foswiki override the umask to be compatible with your configured permissions."
[00:30]
gac410hm that may be set because of your shared hosting
I think it might be best to ignore that for a bit.
You might end up having to change the dir/file permissions in configure, but I don't know for sure. I've never used a shared host env.
[00:31]
foswiki_irc1ok - i just also set a tmp file dir (a warning about that came up) [00:34]
gac410Normally foswiki needs to create files with permissions so that the web server userid can access the files. on a dedicated server, our defaults for all the permissions work ine.
fine
[00:34]
foswiki_irc1there are other: about {SafeEnvPath}, [00:35]
gac410shared hosting, may need special consideratoins so users can't read/write each others
You can ignore SafeEnvPath
That's only really critical on nginx / fcgi systems. not apache. Though setting it can be a bit more secure than the system defaults
[00:35]
foswiki_irc1ok thanks - now i will reload browser window of foswiki ... [00:35]
gac410gac410 crosses fingers [00:36]
foswiki_irc1"Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information. new(): 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" [00:36]
gac410crap [00:36]
foswiki_irc1indeed [00:36]
gac410is there anything in your working/tmp directory? [00:37]
foswiki_irc1no - empty
oh - wait - there is a htaccess and a readme
[00:37]
gac410that's okay
I was interested in any cgisess_..... files
CGI::Session is a CPAN moudule that manages the sessions. it "stores" sessions in working/tmp using Seralize::storable.
[00:38]
foswiki_irc1ah i see [00:39]
gac410The actual apache error log should give more information for the string Can't load 'path-linux-gnupath' for module Storable: path-linux-gnupath:
Did you install CGI::Session?
Or did it come with the system
[00:40]
foswiki_irc1i did not install it - so i guess it came with the system. it must be there otherwise foswiki would complain about a missing module, right? [00:42]
gac410okay .. one more llittle tweak to try.
lib/Foswiki/LoginManager.pm line 78 use constant CGIDRIVER => ....
Change it to read:
use constant CGIDRIVER => 'driver:File;serializer:default';
ie the last word should change to "default" from seralizable
Not sure why serializable would be failing. but the default serializer is a bit simpler. Though it won't support utf-8 / unicode usernames.
[00:45]
foswiki_irc1now shows empty page [00:49]
gac410ugh Any errrors logged?
I did make that change here locally and it didn't cause issues. We used to use the default seralizer ... it changed in 2.1 iirc
[00:50]
foswiki_irc1give me a second - i am moving the whole thing to a different location
it is showing an empty page - looking at the html code it is some frame of 1und1 domain parking. I have no idea where that is coming from
[00:54]
gac410Try a shift-reload and refresh the page?
Is the site publicly accessible?
[00:57]
foswiki_irc1http://artrelated.net/foswiki/bin/view/Main/WebHome
that domain has been in use for decades - no idea where that domain parking data is coming from
[00:59]
gac410definitely not something that we would generate. strange.
Looks like it may be being returned as an error / 404 page.
Ah... it's a 500 internal server error.
Need to check the logs
[01:01]
foswiki_irc1- right - good idea - it might be a default 404 setting in the providers http.conf or htaccess - since i have not set one it defaults to that
let me set a htaccess
[01:04]
gac410It's a 500 according to a net trace
500 internal server error, so maybe something wrong still
in perl or foswiki
[01:04]
foswiki_irc1yes that's it - with my own 404 htaccess rule it is gone. that means that this link generates a 404 or the like
or 500
[01:05]
gac410usually a 500 is a perl crash of some sort.
or significant misconiguration
[01:08]
foswiki_irc5hey <@gac410> - still there? internet just die on me [01:14]
gac410np figured it was something like that [01:14]
foswiki_irc5ok - moved that whole thing to a subdomain - and separate folder structure - still no luck.
well - i am sorry i took so much of your time with no positive result.
thanks a lot for your help - indeed. I have not given up on foswiki - i guess i will try again tomorrow
[01:15]
gac410I'm not sure what to suggest. If you are still getting a 500, check the logs. Foswiki definitely does work with htaccess files. I'e tested that. [01:19]
foswiki_irc5i have a server with a different provider and will try that - just to see if that makes a difference [01:20]
gac410The serializable issue. I'm more suspicious of a build error with CGI::Session ... or maybe directory/file permissions.
I've not heard of anyone else having that particular issue.
[01:20]
foswiki_irc5what should the permissions be for the folder/files? [01:20]
gac410Normally 755 ... owned by the web server. But in a shared hosting env, it might be very different.
I've never set up a shared host. Maybe someone else will be around tomorrow with more experience with that config.
Anyway, changing the CGIDRIVER to "default" should work fine unless you have users registering with unicode names
Oh and be sure to install the missing email dependencies. That will definitely bite you at some point.
[01:21]
foswiki_irc5i will try again tomorrow. thanks a lot for your input and help. btw I am on the east coast - you? [01:23]
gac410Y east coast - boston area
Email::MIME and Email::Simple iirc
[01:23]
foswiki_irc5ah - will be in cambridge tomorrow - today still in ME [01:24]
gac410Oh... if you changed the domain you'll need to remove LocalSite.cfg and rerun the bootstrap. Or edit in the new domain into DefaultUrlHost [01:24]
foswiki_irc5thanks - yes i did that [01:24]
gac410hm Directory permissions might also have impacted that bootstrap issue when it searched for ,v and ,pfv files ... if directories were not readable that might have caused that. [01:25]
foswiki_irc5i will give it a fresh start tomorrow.
signing off...
[01:28]
gac410okay good luck.
I may be around a bit. but will not be able to read ... eye exam :P
well so far I've not been able to recreate the bootstrap issue by nuking directory permissions. :(
[01:28]
................... (idle for 1h31mn)
***ChanServ sets mode: +o Lynnwood [03:00]
......................... (idle for 2h1mn)
ChanServ sets mode: +o Lynnwood [05:01]
......................... (idle for 2h4mn)
ChanServ sets mode: +o Lynnwood [07:05]
....................... (idle for 1h53mn)
ChanServ sets mode: +o cdot [08:58]
cdotfoswikibot: seen michaeldaum [08:58]
FoswikiBotcdot: michaeldaum was last seen in #foswiki 2 days 13 hours ago joining the channel. [08:58]
***ChanServ sets mode: +o Lynnwood [09:07]
.............. (idle for 1h8mn)
GithubBot[DBIStoreContrib] cdot pushed 1 new commit to master: https://git.io/vQVhe
DBIStoreContrib/master 40e7938 cdot: Item14427: fix load when explicit subweb path given
[10:15]
***GithubBot has left [10:15]
FoswikiBothttps://foswiki.org/Tasks/Item14427 [ Item14427: Filter blocks load of subwebs ] [10:15]
GithubBot[DBIStoreContrib] cdot pushed 1 new commit to master: https://git.io/vQVht
DBIStoreContrib/master a5e51a6 cdot: Item14427: fix load when explicit subweb path given
[10:16]
***GithubBot has left [10:16]
........... (idle for 53mn)
ChanServ sets mode: +o Lynnwood [11:09]
................... (idle for 1h31mn)
ChanServ sets mode: +o gac410 [12:40]
....... (idle for 32mn)
ChanServ sets mode: +o Lynnwood [13:12]
................... (idle for 1h34mn)
ChanServ sets mode: +o Lynnwood [14:46]
.......... (idle for 49mn)
ChanServ sets mode: +o cdot [15:35]
.................. (idle for 1h26mn)
ChanServ sets mode: +o Lynnwood__ [17:01]
................................ (idle for 2h35mn)
ChanServ sets mode: +o Lynnwood [19:36]

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