Question
Folks have sporadically been getting this error on our twiki. A refresh often makes it go away. It basically looks like it has trouble accessing the session data, but the session data is all held locally and neither write or read protected. Last time this cleared up by making sure the path leading up to tmp was all not write protected, but this seems to still persist.
flush(): couldn't store datastr: store(): couldn't truncate 'C:\TWiki\working\tmp\cgisess_867fcda94e12e370bb5ca690096c1fa4': Permission denied at C:/TWiki/lib/TWiki/LoginManager.pm line 542.
Any ideas?
Environment
--
PhilipBloom - 27 Jun 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
No has seen this before? We keep getting this occurring. It doesn't seem like its an apache thing.
--
PhilipBloom - 16 Jul 2008
No, I've not seen it - from the fact you're using Perl 5.10, I presume you're not using 'the'
TWikiInstaller on windows?
I wonder what is different between your set up than that one.
--
SvenDowideit - 31 Jul 2008
That's correct. We're using 5.10 and Mod_Perl 2. Those are the primary differences. I'm not sure why that'd cause an issue with CGI::Session truncating writeable files :
Windows tends to fall back on "permission denied" when It can't think of anything more intelligent to say. I have seen this sort of problem when a network drive glitched out temporarily, for example, and also when two processes conflicted on a file lock. Check your system logs for better info.
--
CrawfordCurrie - 20 Oct 2008
Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 10 Dec 2008
I have been trying to install Twiki 5.0 on Redhat Linux within Apache server. After solving configure issues I tried to start TWiki and I get something similar to this error. So this 2008 error is now haunting me. It appears to be a TWiki problem because the file is created by TWiki. The error is:
flush(): couldn't store datastr: store(): couldn't open '/twiki/working/tmp/cgisess_a55ba92ed60acbd69a365e649efeb5ce': Permission denied at /twiki/Lib/Twiki/LoginManage
--
DavidSteininger - 2011-11-21
--
DavidSteininger - 2011-11-21
Make sure all directories and files below
twiki/data,
twiki/pub and
twiki/working are owned by the webserver user.
--
PeterThoeny - 2011-11-21