Error: Could not open lock file (/myhost/albums/albumxx/albu

feer
feer's picture

Joined: 2002-10-14
Posts: 45
Posted: Sat, 2002-10-19 08:32

Hi every one.

I've got a big probleme here, I've transfered my website (a CMS called Xoops) on my new hosting, and on each gallery I vist, I've got this message...take a look <!-- BBCode Start --><A HREF="http://venus.lunarpages.com/~foruma2/xoops/html/modules/gallery/albums.php" TARGET="_blank"> here</A><!-- BBCode End -->

On another note, this problem occurs only the first time...when I visit the same gallery for a second time, I didnt have this message...

Thank you for helping

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Sat, 2002-10-19 09:32

Hi there...
So you've transferred your website. Chances are that you are the owner of the album.dat.lock files rather than the apache user (i.e. the user that the web server runs under). This change happened because you took all the files and uploaded them to your new server, so you became the owner of all the copied files, rather than the apache user on the old server, which created the files in the first place.

The quick thing to do is to simply remove the album.dat.lock files from each album directory. They're only used as timestamps or locks to prevent multiple people from editing an album at once (good thing, hunh). They'll be created again next time you want to edit something in that album.

Also... (to add to the complexity)... this probably means your album.dat files are also now owned by you, and not writeable by the apache user. This means that if you try to edit one of these old albums, you won't be able to do things like change the captions or add new photos, because it can't access the database (stored in that album.dat file). So... if you change the user/group from yourself to whatever the apache user/group is, or make those files writeable to the apache user, you'll be all set to make changes to those old albums.

It's all in the permissions! :grin:
Let me know if something's still not working.
-Beckett (

)

 
feer
feer's picture

Joined: 2002-10-14
Posts: 45
Posted: Sat, 2002-10-19 16:42

Thank you beckett,

I delete all album.dat.lock file but its the same problem (idem for the album.dat file)
The only way I've found its to CHMOD album.dat.lock in 666 ... not sure its cautious :grin:

 
feer
feer's picture

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

now I've CHMOD *.lock file in 666 I cant change permissions :sad:
don't understand cause I don't think I'm the only one here to have change of host and backup his albums directory

:???: :???:

 
beckett
beckett's picture

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

Best thing to do:

chmod -R 777 my_album_directory
That'll change everything in the directory so that Gallery can write to it.

Je pourrais aussi un peu français parler si ça vaut mieux...
-Beckett (beck@beckettmw.com)

(also see <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=GalleryDocs&amp;file=index&amp;req=viewarticle&amp;artid=22&amp;artid=22" TARGET="_blank">Bharat's Cleanup Script</A><!-- BBCode End -->)

 
feer
feer's picture

Joined: 2002-10-14
Posts: 45
Posted: Tue, 2002-10-22 16:00

i've got this message with my ftp client: (cant CHMOD)
COMMAND:> chmod -R 777 albums
500 CHMOD not understood.
COMMAND:> chmod -R 777 albums
500 CHMOD not understood.
COMMAND:> SITE chmod chmod -R 777 albums
500-'SITE CHMOD chmod -R 777 albums' not understood.
500 SITE not understood.
COMMAND:> PASV
227 Entering Passive Mode (66,250,155,66,186,89).
COMMAND:> LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.

I will try the Bharat's Cleanup Script

Anyway, si tu veux essayer de me parler en Français, je serais ravi :smile:

 
feer
feer's picture

Joined: 2002-10-14
Posts: 45
Posted: Tue, 2002-10-22 20:11

tried the cleanup file:

File: /home/foruma2/public_html/albums/album04/album.dat.lock

Warning: chmod failed: Operation not permitted in /home/foruma2/public_html/xoops/html/modules/gallery/cleanup.php on line 54

Anyway, I've got another little problem (maybe its the reason) I didnt see .users directory...I know is here cause I see it when using th efile manager from the panel (Cpanel).... have you an idea ? :???:

Another questions, wich permissions this directory must have ?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2002-10-22 20:54

.users/ should be set to 777

Oops... probablement "chmod -R" ne marche pas dans FTP. Je pense que tu dois mettre "chmod filename" pour chaque chose :sad:. Tu n'as aucune option que FTP pour gagner accès?

Alors, peut être tu dois faire:
chmod 777 albums
cd albums
chmod 777 .users
chmod 777 album1
chmod 777 album2
... pour toutes choses dans albums/
Ça sera si ennuyant, bien sûr...

Bharat's cleanup script won't work here (:() because it only works on files that the webserver user owns.

Bonne chance,
-Beckett (beck@beckettmw.com)

 
feer
feer's picture

Joined: 2002-10-14
Posts: 45
Posted: Wed, 2002-10-23 10:22

No I dont have other access (telnet ..)
My Albums directory are already CHMOD 777.

I explain a second time :razz:

When I changing of host last year I didnt have this problem
Today I would like to move to lunarpages and the message: Error: Could not open lock file (/myhost/albums/albumxx/album.dat.lock)! appear each time I view a pic or an album but just the first time
The other problem is that I cant write on album.dat.lock file (644) but I always can on my previous host (its of course the same albums directory withe the same permissions etc ....)

I know very little in permissions, but its pretty curious no ? :???:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2002-10-23 15:04

Try chmodding all the files in the album directory 0777. Just like FAQ C.15