Some albums appear empty, but okay on disk. "Cant stat

s800

Joined: 2002-09-25
Posts: 3
Posted: Wed, 2002-09-25 21:57

i did a dump and restore to move my gallery partition from a small disk to a large array and am now getting this error message on about 10% of my albums:

--x--

Album: Untitled

Changed:
Warning: stat failed for /usr/local/www/gallery/albums//album.dat (errno=2 - No such file or directory) in /usr/local/www/gallery/platform/fs_unix.php on line 73
Dec 31, 1969.
Contains: no items.

--x--

When I try to go the the albums directly by their rewritten name URL, I get bounced to my main gallery page.

I've checked permissions, and can't see anything different from one dir to the next. Here is an example:

http://gallery.backcountry.net/papabear_2002_sections

The first album is working fine, but the one to it's left is toast. Here's a directory structure (after 777'ing it to make sure) from a working album:

...
...
36 -rwxrwxrwx 1 nobody wheel 36123 Aug 24 11:43 aem.sized.jpg
12 -rwxrwxrwx 1 nobody wheel 12278 Aug 24 11:43 aem.thumb.jpg
112 -rw-r--r-- 1 nobody wheel 103590 Sep 25 16:37 album.dat
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:43 album.dat.0
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:42 album.dat.1
112 -rwxrwxrwx 1 nobody wheel 103590 Sep 25 16:34 album.dat.bak
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:43 album.dat.lock
1 -rwxrwxrwx 1 nobody wheel 6 Aug 24 11:43 serial.1.dat

And here's the a non-working dir:

...
...
208 -rwxrwxrwx 1 nobody wheel 202497 Aug 24 11:47 akc.sized.jpg
54 -rwxrwxrwx 1 nobody wheel 54936 Aug 24 11:47 akc.thumb.jpg
240 -rwxrwxrwx 1 nobody wheel 237568 Sep 23 11:06 album.dat
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.0
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.1
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.10
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.11
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.12
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.13
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.14
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.15
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.16
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.17
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.2
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.3
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.4
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.5
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.6
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.7
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:47 album.dat.8
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.9
112 -rwxrwxrwx 1 nobody wheel 106496 Sep 23 11:05 album.dat.bak
0 -rwxrwxrwx 1 nobody wheel 0 Aug 24 11:48 album.dat.lock
1 -rwxrwxrwx 1 nobody wheel 6 Aug 24 11:47 serial.74.dat

What's with all the .dat's? Was something in use and got corrupted during the dump?

This is on FreeBSD 4.2-

TIA,

s800

 
s800

Joined: 2002-09-25
Posts: 3
Posted: Wed, 2002-09-25 21:58

I should say the one to it's RIGHT, not LEFT.

thanks,

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-09-26 06:00

It appears that several of your albums are corrupt. Log on as administrator and it'll tell you which ones are broken. You'll have to rebuild those albums, by hand, unfortunately.