NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item10157: we're failing to create a htpasswd.lock file when running a read only process from the commandline
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Enhancement |
New |
Engine |
|
Main.SvenDowideit |
cd ~/src/foswiki/core/bin
./rest /MongoDBPlugin/update updateweb=Tasks
./rest /MongoDBPlugin/update updateweb=Development
data(restplugin) $ cd ~/src/foswiki/core/bin
bin(restplugin) $ ./rest /MongoDBPlugin/update updateweb=Tasks
/home/sven/src/foswiki/core/working/htpasswd.lock open or create password lock file failed -check access rights: Permission denied at /home/sven/src/foswiki/core/lib/Foswiki/Users/HtPasswdUser.pm line 130.
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
path open or create password lock file failed -check access rights: Permission deniedbin(restplugin) $ ./rest /MongoDBPlugin/update updateweb=Development
/home/sven/src/foswiki/core/working/htpasswd.lock open or create password lock file failed -check access rights: Permission denied at /home/sven/src/foswiki/core/lib/Foswiki/Users/HtPasswdUser.pm line 130.
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
path open or create password lock file failed -check access rights: Permission deniedbin(restplugin) $
running as a user that can't access the lock file, but otherwise has suffient rights
I'm not sure why we're reading, or neading to read the password file - perhaps we can optimise a little, perhaps not.
--
SvenDowideit - 15 Dec 2010
mmm, it looks like we're making a mess of it.
if your .htpasswd file is unreadable by the user you try&fail to run a script as, foswiki crashes, and leaves behind a htpasswd.lock file made by this new user.
then, the normal .htpasswd user runs a script (presumably as the webserver) and crashes because it can't access the htpasswd.lock file.
and thus you have a dead wiki.
a little more error checking and post crash cleanup should help.
--
SvenDowideit - 16 Dec 2010