"Upgrading Users..." Failure - 1.4.2

k3vbot

Joined: 2004-02-16
Posts: 11
Posted: Mon, 2004-02-16 03:23

I just upgraded to Gallery 1.4.2. Follow all of the steps, and config works. I go to continue, to the upgrading users part, and I am getting these errors:

Warning: fopen(/home/team/public_html/kevingallery/albums/.users/userdb.dat.lock): failed to open stream: Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 55
Error: Could not open lock file (/home/team/public_html/kevingallery/albums/.users/userdb.dat.lock)!

Checking user 1 of 5 . . . .
Warning: rename(/home/team/public_html/kevingallery/albums/.users/1065667020:2046740953,/home/team/public_html/kevingallery/albums/.users/1065667020_2046740953): Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 75

Warning: rename(/home/team/public_html/kevingallery/albums/.users/1065667020:2046740953.lock,/home/team/public_html/kevingallery/albums/.users/1065667020_2046740953.lock): Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 75

Warning: fopen(/home/team/public_html/kevingallery/albums/.users/1065667020_2046740953.lock): failed to open stream: Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 55
Error: Could not open lock file (/home/team/public_html/kevingallery/albums/.users/1065667020_2046740953.lock)!failed
Checking user 2 of 5 . . . .
Warning: rename(/home/team/public_html/kevingallery/albums/.users/1065667977:119528239,/home/team/public_html/kevingallery/albums/.users/1065667977_119528239): Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 75

Warning: rename(/home/team/public_html/kevingallery/albums/.users/1065667977:119528239.lock,/home/team/public_html/kevingallery/albums/.users/1065667977_119528239.lock): Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 75

Warning: fopen(/home/team/public_html/kevingallery/albums/.users/1065667977_119528239.lock): failed to open stream: Permission denied in /home/team/public_html/kevingallery/platform/fs_unix.php on line 55
Error: Could not open lock file (/home/team/public_html/kevingallery/albums/.users/1065667977_119528239.lock)!failed
Checking user 3 of 5 . . . . skipped

Checking user 4 of 5 . . . . skipped
Checking user 5 of 5 . . . . skipped

Error: There was a problem upgrading users. Please check messages above, and try again

----
Gallery URL (optional but very useful): http://www.teamindecisive.com/kevingallery/
Gallery version: 1.4.2
Apache version: 1.3.29
PHP version (don't just say PHP 4, please): 4.3.3
Operating system: Redhat Linux

 
foffo
foffo's picture

Joined: 2003-03-06
Posts: 660
Posted: Mon, 2004-02-16 08:09

k3vbot, this sounds like FAQ Gallery:c.15

 
k3vbot

Joined: 2004-02-16
Posts: 11
Posted: Mon, 2004-02-16 15:54

Thanks for the response... that looks like it could be it, but when I try to CHMOD albums and the folders inside it to 777, I get an error saying "Operation not permitted." How do I fix this?

 
k3vbot

Joined: 2004-02-16
Posts: 11
Posted: Mon, 2004-02-16 19:54

Emailed my support and got this response:
We have enabled some additional security measures which no longer allow the user 'nobody' to write to the /tmp directory (PHP suEXEC Support).

There have been several hacking attempts on our servers recently and we had to implement this measure

CPanel now also runs an automated process nightly, which checks for insecure permissions.

Last night it made the following changes:

Fixing permissions on /home/team/public_html/kevingallery/setup....Done

(chmod 777 means that anyone on the server can read the contents of the
directory)

It should be possible for your scripts to function even with the more secure settings.

 
jasonobr

Joined: 2004-02-17
Posts: 1
Posted: Tue, 2004-02-17 09:33

Rerun the config and on the first page near the bottom turn the "Use Flock()" option to no. With this and the 777 chmod you should be o.k.

 
dangarion

Joined: 2003-10-03
Posts: 10
Posted: Wed, 2004-02-18 07:43
k3vbot wrote:
Emailed my support and got this response:
We have enabled some additional security measures which no longer allow the user 'nobody' to write to the /tmp directory (PHP suEXEC Support).

There have been several hacking attempts on our servers recently and we had to implement this measure

CPanel now also runs an automated process nightly, which checks for insecure permissions.

Last night it made the following changes:

Fixing permissions on /home/team/public_html/kevingallery/setup....Done

(chmod 777 means that anyone on the server can read the contents of the
directory)

It should be possible for your scripts to function even with the more secure settings.

Are you using a hostroute or myqth ?

I just started having this problem too. Also did this solve your problem?

 
k3vbot

Joined: 2004-02-16
Posts: 11
Posted: Wed, 2004-02-18 13:30
dangarion wrote:
k3vbot wrote:
Emailed my support and got this response:
We have enabled some additional security measures which no longer allow the user 'nobody' to write to the /tmp directory (PHP suEXEC Support).

There have been several hacking attempts on our servers recently and we had to implement this measure

CPanel now also runs an automated process nightly, which checks for insecure permissions.

Last night it made the following changes:

Fixing permissions on /home/team/public_html/kevingallery/setup....Done

(chmod 777 means that anyone on the server can read the contents of the
directory)

It should be possible for your scripts to function even with the more secure settings.

Are you using a hostroute or myqth ?

I just started having this problem too. Also did this solve your problem?

Sorry, I am a bit nubbish and learn as I go... I don't know what either of those are. My problem still has not been resolved. I don't know what I am supposed to do.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2004-02-18 14:08

You may need to ask your host to either 1) chmod your album directory 777 or, if they are still paranoid about 777, 2) chown the album directory and all contents (recursively) to the web server user.

 
k3vbot

Joined: 2004-02-16
Posts: 11
Posted: Wed, 2004-02-18 15:44

Thank you, joyoflinux. I will e-mail them and see if they will help me out.