Gallery refusing to display a valid album?

bojan

Joined: 2002-10-16
Posts: 6
Posted: Wed, 2002-10-16 20:17

I used the Linux Gallery Remote v1.0 to upload about 20 new pictures into a gallery called "ctac", just random work pictures, nothing fancy, something I've always done before. And it all worked. To view the pictures I went to the gallery page of my site and the album "ctac" was no longer listed. I paniced, and logged into the site, all the pictures and files are still there:

[bojan ctac]$ ls -l | grep -v jpg
total 18532
-rw-r--r-- 1 nobody nobody 94208 Oct 16 15:25 album.dat
-rw-r--r-- 1 nobody nobody 0 Oct 16 15:23 album.dat.0
-rw-r--r-- 1 nobody nobody 0 Oct 16 15:24 album.dat.1
-rw-r--r-- 1 nobody nobody 0 Oct 16 15:24 album.dat.2
-rw-r--r-- 1 nobody nobody 0 Oct 16 15:24 album.dat.3
-rw-r--r-- 1 nobody nobody 0 Oct 16 15:24 album.dat.4
-rw-r--r-- 1 nobody nobody 0 Oct 16 15:25 album.dat.5
-rw-r--r-- 1 nobody nobody 32768 Oct 16 15:25 album.dat.bak
-rw-r--r-- 1 nobody nobody 0 Oct 14 11:27 album.dat.lock
-rw-r--r-- 1 nobody nobody 6 Oct 16 15:25 serial.197.dat
[bojan@birch ctac]$ pwd
/home/bojan/www/gallery/albums/ctac

The filesize from album.dat and album.dat.bak is double. I really don't know what the album.dat and serial files are for, the rest of the files in this directory are jpg.

So I logged in as admin instead of the regular user and I see this on the gallery page itself:

Gallery has detected the following directories:

ctac
people
ctacbak

in your albums directory (/home/bojan/www/gallery/albums).
These are not valid albums. Please move them out of the albums directory.

Here are all the non-directory (non-album) files:

[bojan albums]$ ls -l | grep -v "^d"
total 120
-rw-r--r-- 1 nobody nobody 432 Oct 16 15:58 albumdb.dat
-rw-r--r-- 1 nobody nobody 448 Oct 16 15:54 albumdb.dat.bak
-rw-r--r-- 1 nobody nobody 0 Oct 14 09:20 albumdb.dat.lock
-rw-r--r-- 1 nobody nobody 11 Oct 16 15:25 serial.dat
[bojan albums]$ pwd
/home/bojan/www/gallery/albums

and the relevant portion of albumdb.dat:

i:2;s:4:"ctac";

I tried creating a new album, and renaming it to "ctac", but it says "this album already exists". How can I fix this? What determines a valid album?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Fri, 2002-10-18 06:48

You have to move the "ctac" album out of the albums directory before you can create a new one. I'm not sure what causes this to happen; I can't locate a race condition in the G1 code. Make sure you're running the latest PHP and Apache; I've noticed that older versions of PHP are more susceptible to this problem.