Problemas migrating

tombito

Joined: 2002-09-06
Posts: 2
Posted: Fri, 2002-09-06 05:47

Hi to everybody.

I had running Gallery for several weeks on WinXP, Apahe 1.3, Mysql, PN711, no problem at all. Yesterday I migrated the site to Linux RH 7.3, Apache 1.3, Mysql and PN711. I packed the site in a zip, unpacked, tweaked it a little bit, and voila! It works perfectly.

The problem is that Gallery is not showing my albums. The error displayed is

*******************************************************
Attention Gallery Administrator!

Gallery has detected the following directories:

album08
album07
album06
album05
album04
album02
album03
album01
album09
album10
album11
album12
album13

in your albums directory (/usr/local/www/modules/Gallery/images/albums).
These are not valid albums. Please move them out of the albums directory.
********************************************************
I tried reconfiguring Gallery and I positive I copied all of the files (included the .users).

Can somebody please give me a hint on how to fix this (besides than recreating all of the albums).

Thxs in advance.

Sergio-

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-09-06 05:54

It sounds like it thinks the album.dat files are corrupt or something.
Does the serialize function create different output on windows then
under linux that's causing this problem possibly? Maybe carriage
returns in the files throwing it off?

I'm assuming the .dat files are all there and the permissions have been
updated considering it's able to see that they don't belong :razz:

 
ill
ill's picture

Joined: 2002-08-15
Posts: 756
Posted: Fri, 2002-09-06 06:30

Yes, the serialize function does differ on Windows and Unix. As described in the User Guide (Backup and Restore), you need to fix the CR/LF to CR before moving to Unix.

 
tombito

Joined: 2002-09-06
Posts: 2
Posted: Fri, 2002-09-06 21:40

actually I followed your advice and it worked perfectly. dos2unix did the job.
Thxs.

 
jarett

Joined: 2002-09-07
Posts: 3
Posted: Sat, 2002-09-07 06:07

I have the same problem, but on a LINUX to WINDOWS migration. (Yes I know windows sucks, but oyu gotta do what brings in a check...)

I moved from a test box on linux to a prod box on XP. 1/2 of my albums work. 1/2 dont. I ran unix2dos, dos2unix etc etc on the .dat files and any file I could think of, but it still gives me the error.

In the thumbnail view:

Changed:
Warning: stat failed for e:wwwmy.comphotography\album.dat (errno=2 - No such file or directory) in E:wwwmy.commodulesgalleryplatformfs_win32.php on line 91

In the base of the treeview:

Attention Gallery Administrator!

Gallery has detected the following directories:

album18
album21
album23
album25
album28
... some removed
album55
album59
album64
album65
album66

in your albums directory (e:/www/my.com/photography/).
These are not valid albums. Please move them out of the albums directory.

Anyone know what I should do? Ive setup gallery dozens of times... migrated many times FROM windows, but now that im going to windows I have problems.

Id rathert not have to delete and recreate the folders since there are about 150, with a few gig of images to sort out again.

Thanks

Jarett

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-07 21:23

If you tell me the URL to your Gallery and the name of an album that works, I'll see if I can figure out what's going wrong remotely.

 
jarett

Joined: 2002-09-07
Posts: 3
Posted: Sun, 2002-09-08 20:09
Quote:
If you tell me the URL to your Gallery and the name of an album that works, I'll see if I can figure out what's going wrong remotely.

Base level:
http://www.uglyduck.com/modules.php?op=modload&name=gallery&file=index&include=albums.php
album16 works
album15 doesnt...
album56 works
album23 doesnt.. etc

I couldnt find a pattern about why some would and others wouldnt work.

Jarett

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-08 20:30

Hmm, I can't seem to access your /photography/ folder to try to examine
the album.dat files.

 
jarett

Joined: 2002-09-07
Posts: 3
Posted: Mon, 2002-09-09 00:31

I dont have an album.dat, I have albumdb.dat
http://www.uglyduck.com/photography/albumdb.dat
I do have album.dat's in the individual album## dirs.

Looking at it (albumdb.dat), I am noticing some of the folders are missing. Ill try to manually inject them into the file.

Jarett

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-10 03:29

Jarrett --

I downloaded the album.dat file from your album15 and tried it out on my Win2K Professional box. It worked fine for me. I'm running:
Gallery 1.3.2-cvs-b4
FoxServ 2.x(Apache 1.3.22, PHP 4.0.6)

So, this means that the data is not corrupted; it's more likely to be a bug/issue with PHP. What version of PHP are you using?

-Bharat

 
jojitb

Joined: 2002-09-11
Posts: 1
Posted: Wed, 2002-09-11 01:30
Quote:
actually I followed your advice and it worked perfectly. dos2unix did the job.
Thxs.

could you explain how to do it step-by-step? I've been having the exact same problem (win2k-to-linux).. Sorry I'm a little slow today :sad:

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Wed, 2002-09-11 07:59

You need to run a utility on your album*.dat files that will strip out
the CR and leave the LF which *nix uses. Windows adds in both.

Look for a utility named dos2unix, I know RedHat has it now, any it's
freely available, search for it and read the instructions it comes with.

 
CarpetBagger
CarpetBagger's picture

Joined: 2002-08-09
Posts: 49
Posted: Sun, 2002-10-13 16:01

I'm trying to use one of my Windows computers as a backup for my Galleries, but I'm getting some broken Albums. I'm running Apache v1.3.24 and PHP 4.2.2.

If it was an issue that got fixed in v4.0.6 (Bhrat's version) then it was broken again by v4.2.2(my version).

I even tried using the UNIX2DOS command to set the CR/LF stuff. No joy, I still have some bad albums.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-10-14 00:09

Nice avatar, CarpetBagger.

Tell me the URL to your Gallery and which albums are bad and I'll check them out remotely.