Could not open lock file (/var/www/vhosts/WEBSITE.com/httpdocs/albums/.users/userdb.dat.lock) for writing!

julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 19:33

Hi,

Ive been getting the message below all day, Ive removed it many times, redone it and still stuck at this point.
Im using Filezilla, I thought it was permissions, so Ive changed permissions to 777 on Albums (/httpdocs/albums), but it wont make the changes to the subdirectories, (which includes the .users folder).
I tried the same on .users, and this wnt change from 755.

Ive tried to get the info for this call, from setup/phpinfo.php and setup/diagnostics.php, but I get the fllowing messages there too, sorry.

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: gallery-1.6-RC3
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

The user database in your gallery was created with an older version of the software and is out of date.
This is not a problem!We will upgrade it. This may take some time.
Your data will not be harmed in any way by this process.
Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.
If you get an error, and only some users are upgraded, try refreshing the page to upgrade remaining users.

Please Wait...

Checking user 1 of 3 ... Skipped EVERYBODY (Reserved username from Gallery)
Checking user 2 of 3 ... Skipped LOGGEDIN (Reserved username from Gallery)
Checking user 3 of 3 ... Skipped NOBODY (Reserved username from Gallery)

Could not open lock file (/var/www/vhosts/chicleychocolate.com/httpdocs/albums/.users/userdb.dat.lock) for writing!
Could not open lock file (/var/www/vhosts/chicleychocolate.com/httpdocs/albums/.users/userdb.dat.lock) for writing!
There was a problem upgrading users. Please check messages above, and try again.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-11 19:40
Quote:
so Ive changed permissions to 777 on Albums (/httpdocs/albums), but it wont make the changes to the subdirectories, (which includes the .users folder).
I tried the same on .users, and this wnt change from 755

You need to talk to your host then. Either the web server (or PHP) needs to run as your user account or directories need to be 777 and files need to be 666 so the web server can write to and change them.

If this was working and isn't now, find out what your host changed.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 19:52

Ive changed it to 666 and did retry:
Gallery is unable to use/create the userdir. Please check the path to the albums folder and userdir in your config.php. You can't use the config wizard, as Gallery can't verify your useraccount.
Fatal error: UserDB failed to initialize!

Ive changed back to 777 and back to where I was
What now? host?
Thanks by the way...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-11 20:00

Yes, host. If you set the albums directory to 777 and gallery still can't create the directories and files it needs, then you need to talk to your host and explain to them what you are trying to do.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 20:06

Cheers,
it created the .users itself, (nothing in it of course).
do you think Safe_mode has anything to do with it?
thanks again!

 
julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 20:11

FYI: Ive tried changing the temp folder permissions to 777 and subflders, but same result...
do you think Safe_mode has anything to do with it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-11 20:14
Quote:
do you think Safe_mode has anything to do with it?

UGH, YES. Gallery will not run in safe_mode, did you not read all of the warnings?

http://codex.gallery2.org/Gallery1:Installation_Requirements#PHP_Settings

Find a different host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 20:22

I did, I went through everything and got the host to disable it (took some time to convince them), they told me they did... but not sure I can trust them... (spanish providers...), thus I think its possible its reverted... will chase them (hostalia)

Thanks again for a great service and suppport!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-11 20:29

You can always check by taking a look at phpinfo, this link explains how:
FAQ: What information is required when I ask for help in the forums?

Personally, if a host still doesn't have a clue and is still using safe_mode, which is 100% pointless, you shouldn't be using them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 20:33

yes, but I have to start from scratch to run phpinfo... as when I run it nw, it comes up with those messages...
by the way, any great website for examples of how it works?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-11 20:39

No, you don't. Just create a file on your website, named phpinfo.php or anything really and put the following in the file:

<?php phpinfo(); ?>

Then browse to it from your web browser, www.example.com/phpinfo.php

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
julez

Joined: 2009-06-11
Posts: 7
Posted: Thu, 2009-06-11 20:50

Cheers,
Safe_mode is on (again) I wish I knew that code beforehand... would have saved me a day!
emailed the host, again, will let you know how I get on.
Gracias! again!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-11 21:04

Good luck with that. Probably won't do any good.

Find a different host, there are literally 10,000s of hosts out there.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here