lock error

larryl

Joined: 2002-09-16
Posts: 47
Posted: Mon, 2002-09-16 16:44

I upgraded Ensim on my server last night and am now having problems with several instances of Gallery.

When I attempt to add a user to Gallery I get the following error in the Create window:

---------------------------------------------------
Warning: fopen("/home/virtual/site3/fst/var/www/html/albums/.users/userdb.dat.0", "w") - Permission denied in /home/virtual/site3/fst/var/www/html/gallery/platform/fs_unix.php on line 53

Warning: fopen("/home/virtual/site3/fst/var/www/html/albums/.users/1032192507:1356966354.lock", "a+") - Permission denied in /home/virtual/site3/fst/var/www/html/gallery/platform/fs_unix.php on line 53
Error: Could not open lock file (/home/virtual/site3/fst/var/www/html/albums/.users/1032192507:1356966354.lock)!
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site3/fst/var/www/html/gallery/platform/fs_unix.php:53) in /home/virtual/site3/fst/var/www/html/gallery/create_user.php on line 62
---------------------------------------------------

I found the relevant section of the FAQ and have executed the chmod command. The files are now set to rwx for all users, including all the files in the .users directory, yet the error persists.

Here is the info on my environment:

http://allenhost.com/gallery
Gallery v1.3.2-cvs-b7
php 4.0.6
Apache 1.3.22
Linux RH7.2 with Ensim 3.1.1

Any thoughts or suggestions?

Thanks.

 
larryl

Joined: 2002-09-16
Posts: 47
Posted: Mon, 2002-09-16 17:32

Got it. The upgrade script somehow changed the permissions on the directory ".users". The apache user did not have write permission to the directory. I added that permission and the problem is solved.

 
feer
feer's picture

Joined: 2002-10-14
Posts: 45
Posted: Mon, 2002-10-21 22:03

can you explain me ?
cause I've got the same problem... :cry:

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2002-10-21 23:27

feer... you also need to go into your albums directory and do
chmod -R 777 .users