Gallery has detected the following invalid album(s)

jakeivory

Joined: 2004-04-14
Posts: 15
Posted: Thu, 2004-04-15 12:34

This is a new install of gallery and script has been fighting me all the way but I am determined to make it work.

I can log into my albums page as administrator then when I go to [new album] I get the following error:

"Attention Gallery Administrator!
Gallery has detected the following 1 invalid album(s) in your albums directory
(/home/content/k/e/l/kellyscott/html/album):

album01

Please move it/them out of the albums directory. "

I get this every time I try and add a new album. I have removed the album from the albums directory as directed but when I go to put a new one in I get the same result.

There was a similar question posted on the board but was never answered.

Please help
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.jakeivorys.com/gallery
Gallery version: v1.4.3-RC3
Apache version: Apache/1.3.28
PHP version (don't just say PHP 4, please): 4.3.2
Graphics Toolkit: netpbm
Operating system:
Web browser/version (if applicable):

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2004-04-15 12:48

Hello,

you can not upload or move albums or photos direct into your albums folder.
You _have to_ use the UI inside Gallery..

Regards,

Jens

 
jakeivory

Joined: 2004-04-14
Posts: 15
Posted: Thu, 2004-04-15 12:58

I realize that.

The documentation says

Quote:
Creating albums is extremely simple, just click "[new album]". The new album is created. You should see the message "Hey! Add some photos"

however when I click"[new album]" I get the error message.

 
jakeivory

Joined: 2004-04-14
Posts: 15
Posted: Sat, 2004-04-17 15:26

still not working, I am stuck with this problem. Can someone help please?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2004-04-21 14:55

Hello jakeivory,

is it possible that you can give me access to your server ?
Via SSh or FTP ?

If yes, please email or PM me the infos.

Regards,

Jens

 
zhangweiwu

Joined: 2004-07-30
Posts: 14
Posted: Fri, 2004-07-30 10:00

I have *exactly* the same problem in installing gallery 1.4.4

My environment is

net-www/apache-2.0.49-r1 *
Apache Web Server, Version 2.0.x [ http://www.apache.org/ ]
dev-php/mod_php-4.3.7-r1 *
Apache module for PHP [ ]
uname -a
Linux Gentoo 2.6.7-gentoo-r7 #4 Tue Jul 6 17:23:13 CST 2004 i686 Celeron (Coppermine) GenuineIntel GNU/Linux

The album path is
/var/www/localhost/gallery/albums/album01/

I just put all the albums folder into a tar ball, attached to this message. The error prompt is:

Gallery has detected the following 1 invalid album(s) in your albums directory
(/var/www/localhost/gallery/albums):

album01
Please move it/them out of the albums directory.

I don't know why newly created album01 could be invalid. If I move this folder out of the albums directory, the Gallery program simply create another album called album02 which is also invalid.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-30 16:44

Well, your album.dat file is somehow named album.dat.0

Rename that to album.dat and it should be fine. I'll see if there's some reason that this might be happening.

 
zhangweiwu

Joined: 2004-07-30
Posts: 14
Posted: Sat, 2004-07-31 06:29

I don't know if I'm bad luck or something, now I renamed album.dat.0 to album.dat, and I uploaded several images( jpeg, gif and png) and nothing appear on th album (it just says this album is empty on the webpage). Check the website the files and its thumbnails are there already.

Did I do anything wrong?

 
thomasleavitt

Joined: 2004-08-02
Posts: 1
Posted: Mon, 2004-08-02 13:15

I'm having the same problems, and this FTP install has been fighting me tooth and nail as well.

I remove the offending album from the albums directory, but the second I click [new album] it creates it again, and gives me the error message about an invalid album.

I never get to the point where I can upload photos, since it won't display the created album, only the error message! And yes, my album.dat is called album.dat, not album.dat.0

:(

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-08-02 17:34

The only idea I have is that you have some process running which causes the rename inside Gallery to fail. (Restrictive antivirus scanner, for example.)

 
zhangweiwu

Joined: 2004-07-30
Posts: 14
Posted: Tue, 2004-08-03 01:22

What file/directory needs to be renamed? First I had an albom01 folder, later it is renamed to the gallery name w/o problem. And I now have a list of files in the gallery folder here, which file looks failed to rename?

[code:1]
总用

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Tue, 2004-08-03 03:15

zhangweiwu, I don't see anything in your list that needs to be changed...

 
Tetz

Joined: 2004-08-03
Posts: 1
Posted: Tue, 2004-08-03 17:41

I have the exact same problem, and it's really annoying. I've no idea what to do...

 
keystone430

Joined: 2004-08-05
Posts: 2
Posted: Thu, 2004-08-05 05:09

I have exactly the same message except my gallery has been up and working for over 6 months. It was fine this morning and tonight I go there and it gives me the invalid albums message. I moved nothing, changed nothing and checked with my server company and they did not make any changes to the server.

Server Info:
Operation System Linux
Apache Version 1.3.31 (Unix)
Kernel Version 2.4.21-4.0.1.ELsmp
Perl Version 5.8.1
PHP Version 4.3.3
MySQL Version 4.0.20-standard

Gallery v1.4.3
www.keystonesoldiers.org

 
rozwado1

Joined: 2003-12-08
Posts: 4
Posted: Thu, 2004-08-26 20:34

Same thing as keystone430 on my page too. Worth a bump.

 
thechadd

Joined: 2004-08-23
Posts: 23
Posted: Thu, 2004-08-26 20:42

Similar issues initiated the problems I'm having also, but for me I'd use gallery remote and it would fail then I'd get a 'ghost' album01 that I couldn't enter (clicking on it would kick you back out to the main gallery) or delete (deleting it would just say deleted then it would still be there).

I wound up corrupting my .dat files trying to manual fix things.. I recommend NOT doing this!

 
keystone430

Joined: 2004-08-05
Posts: 2
Posted: Thu, 2004-08-26 21:06

I finally figured out what happened with mine. First of all my server company lied to me. They did move my site on to another server. This created dat.lock files in all my albums and changed some of the permissions.

Go through every album and make sure there is an album.dat file then rename the .lock file to album-old.txt and it should fix the problem.

For some reason when they moved my stuff it reassigned the ownership of certain files to apache instead of my site name and because of the lock the site could not access them. If the site name does not match the ownership of all the files the albums are illegal.

I hope this makes sense the way I am explaining it. There were several files I had to delete and create new ones just to change the ownership. My Gallery is back up and running.

For the record my Gallery is wrapped in Geeklog. And I am changing hosts this month. There was no reason for them to lie when it is too easy for anyone with a brain to check.

Keystone430

 
rozwado1

Joined: 2003-12-08
Posts: 4
Posted: Thu, 2004-08-26 21:50

Mine's not a permissions problem. For some reason, I have 3 albums that had their album.dat files zeroed out. Nothing was done to the site except routine adding of pictures - not even to these problem albums. All the pictures are still in the folders, but the albums don't appear in the Gallery and their album.dat are 0bytes. Was this a bug? How can I prevent this from happening in the future?

I still tried Keystone's fix, but it didn't do anything for me. So do these albums just have to be trashed now since they have no data file?

 
Doctor_WHO
Doctor_WHO's picture

Joined: 2003-02-23
Posts: 26
Posted: Mon, 2004-09-13 03:49

Same issue here.. been up and running for a LONG time... ive got 5 albums that have gone funny. Have not figured out the significance of those 5 yet. Permissions seem to be fine.

I can no longer make albums, when i try, it pops right back to the main gallery page. This is bad :(

Gallery v1.4.3-pl2

 
npdoty

Joined: 2004-09-29
Posts: 1
Posted: Wed, 2004-09-29 23:11

If, for example, you go over the quota of your webserver, it's often the case that you (and Gallery) won't have the ability to write files, and I think that often leads to the zeroing of album.dat and album.dat.bak files.

This also makes it so that Gallery considers the albums invalid, which is a pain. Is there any way to reconstruct album.dat files without going through the entire GUI process? That would save poor people such as myself a lot of agony.