Can't import from Gallery v1.3-cvs-rc4 - no photos.dat files

BillMinton

Joined: 2002-08-22
Posts: 19
Posted: Mon, 2005-01-03 00:09

When trying to import from my G1 gallery, I get the following errors:

Quote:
Error (ERROR_BAD_PARAMETER) : Missing or not readable file: /home/minton/public_html/galleries/albums/UT2K3/photos.dat

* in modules/migrate/classes/Gallery1DataParser.class at line 69 (gallerystatus::error)
* in modules/migrate/classes/Gallery1DataParser.class at line 264 (gallery1dataparser::loadfile)
* in modules/migrate/ConfirmImport.inc at line 634 (gallery1dataparser::getphotos)
* in main.php at line 170 (confirmimportcontroller::handlerequest)
* in main.php at line 47
* in main.php at line 40

I've looked through the albums subfolders, and I don't have any photos.dat files whatsoever.

Any ideas on how to proceed at this point?

----

Gallery URL (optional):
Gallery version: v1.3-cvs-rc4
Webserver (with version): Apache 1.3.33
Datatabase (with version):
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional):
Graphics Toolkit(s): NetPBM
Operating system: Linux
Web browser/version:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-03 09:21

I don't think it's documented anywhere, but I think that the G1 migrater can only handle G1.4+. I'd upgrade to the latest G1 and then try again (it's a good idea to upgrade anyway since there are a ton of security+feature enhancements).

 
BillMinton

Joined: 2002-08-22
Posts: 19
Posted: Mon, 2005-01-03 13:19

With probably 1000+ photos, I'm a little reluctant, but if you're sure the upgrade will work I'll give it a go.

Is there a FAQ on upgrading from my version to the latest G1 version?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-04 05:39

These should get you going:
Upgrading documentation
FAQ

 
digiital

Joined: 2003-02-22
Posts: 9
Posted: Tue, 2005-01-04 16:40

I'm having the same issues. I just upgraded my G1 to the latest CVS version, and I still didn't get the upgrade process to create the missing photos.dat file. Here is some info from my system which hopefully help out:

-------------------------------------------

 Error (ERROR_BAD_PARAMETER) : Missing or not readable file: /var/www/html/albums/album14/photos.dat

    * in modules/migrate/classes/Gallery1DataParser.class at line 69 (gallerystatus::error)
    * in modules/migrate/classes/Gallery1DataParser.class at line 264 (gallery1dataparser::loadfile)
    * in modules/migrate/ConfirmImport.inc at line 636 (gallery1dataparser::getphotos)
    * in main.php at line 147 (confirmimportcontroller::handlerequest)
    * in main.php at line 46
    * in main.php at line 39

System Information
Gallery version 	2.0-alpha-4+
PHP version 	4.3.8 apache2handler
Webserver 	Apache
Database 	mysql 4.0.20-standard
Toolkits 	ImageMagick, NetPBM, Gd
Operating system 	Linux gateway.clarkconnect.lan 2.6.9-5.cc #1 Sat Dec 4 10:24:14 EST 2004 i686
Browser 	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/0.8 StumbleUpon/1.994

------------------------------------------------------------

Here's a dump of the directory I'm trying to convert over to G2

---------------------------------------------------

-rwxr--r--  1 nobody nobody       0 Apr  5  2003 album.dat.lock
-rwxr--r--  1 nobody nobody 1199006 Apr  5  2003 Swimming_2_Small.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Swimming_2_Small.thumb.jpg
-rwxr--r--  1 nobody nobody 8467498 Apr  5  2003 Swimming_1_Large.wmv
-rwxr--r--  1 nobody nobody 1560120 Apr  5  2003 Swimming_1.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Swimming_1_Large.thumb.jpg
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Swimming_1.thumb.jpg
-rwxr--r--  1 nobody nobody 6283384 Apr  5  2003 Hot_Tub_2_Large.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Hot_Tub_2_Large.thumb.jpg
-rwxr--r--  1 nobody nobody 1181678 Apr  5  2003 Hot_Tub_2_Small.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Hot_Tub_2_Small.thumb.jpg
-rwxr--r--  1 nobody nobody 8563504 Apr  5  2003 Hot_Tub_1_Large.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Hot_Tub_1_Large.thumb.jpg
-rwxr--r--  1 nobody nobody 1577454 Apr  5  2003 Hot_Tub_1_Small.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Hot_Tub_1_Small.thumb.jpg
-rwxr--r--  1 nobody nobody 6427384 Apr  5  2003 Swimming_2_Large.wmv
-rwxr--r--  1 nobody nobody    3256 Apr  5  2003 Swimming_2_Large.thumb.jpg
-rwxr--r--  1 nobody nobody       6 Apr  5  2003 serial.8.dat
-rwxr--r--  1 nobody nobody    6151 Sep 14  2003 album.dat.bak
-rwxr--r--  1 nobody nobody    6151 Sep 19  2003 album.dat
 
BillMinton

Joined: 2002-08-22
Posts: 19
Posted: Tue, 2005-01-04 19:16

FWIW, I got the photos.dat files created somehow during the upgrade. The upgrade went smoothly, thanks for the link.

However, the import into G2 still didn't. It imported some albums, then gave the following errors:

Error (ERROR_BAD_PATH):

* in file modules/core/classes/GalleryPhotoItem.class at line 122 (gallerystatus::error)
* in file modules/core/classes/helpers/GalleryItemHelper_medium.class at line 206 (galleryphotoitem::create)
* in file modules/core/classes/GalleryCoreApi.class at line 1322 (galleryitemhelper_medium::additemtoalbum)
* in file modules/migrate/ConfirmImport.inc at line 683 (gallerycoreapi::additemtoalbum)
* in file main.php at line 170 (confirmimportcontroller::handlerequest)
* in file main.php at line 47
* in file main.php at line 40

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-01-06 04:01

digiital, after you upgraded, did you visit and/or upgrade all of the albums in G1 individually?

BillMinton, could you send me your G1 and G2 urls? Do you have any idea which item from G1 failed?

Let me know. Thanks!

 
BillMinton

Joined: 2002-08-22
Posts: 19
Posted: Thu, 2005-01-06 04:59

I didn't visit them all. If there was an option during the upgrade to do that, I'm sure I would have chosen it though.

G1 - http://www.themintons.org/galleries
G2 - http://www.themintons.org/gallery2

G2 got to here - http://www.themintons.org/gallery2/main.php?g2_view=core:ShowItem&g2_itemId=286&g2_page=59

Corresponding G1 page here - http://www.themintons.org/galleries/jadas_first_pictures?page=59

I just noticed...look at the image it failed on. It's not showing up for some reason.

That's the first time I've ever seen any of my images just not work. I wonder if the G1 upgrade did that?

Uh oh....I just looked on the FTP site, and that file is actually gone. That concerns me.

Edit - I just looked at some site backups going back to 12/23/04, and that image wasn't in them. I'm not sure what happened to it, but it wasn't the result of any of this.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-01-06 06:52

Whenever I finish the on-the-fly status stuff I might be able to do something to ignore those errors along the way. Until then, we have to count on up-to-date, unbroken G1 installs.

 
BillMinton

Joined: 2002-08-22
Posts: 19
Posted: Thu, 2005-01-06 13:23

That makes sense. I just wanted to be sure I updated my post to reflect that the problem wasn't Gallery per say. Software is difficult enough to write without people adding errors to the error list that don't really belong there. :)

 
digiital

Joined: 2003-02-22
Posts: 9
Posted: Fri, 2005-01-07 14:12

Ya I did, I had it auto convert all the albums, and for kicks, I'll go directly to my album14(which is the screwed up one) . I just upgraded to v1.4.4-pl4

Album: Swimming Videos
Upgrading album properties... done.
Upgrading item 1 of 20 . . . done.
Upgrading item 2 of 20 . . . done.
Upgrading item 3 of 20 . . . done.
Upgrading item 4 of 20 . . . done.
Upgrading item 5 of 20 . . . done.
Upgrading item 6 of 20 . . . done.
Upgrading item 7 of 20 . . . done.
Upgrading item 8 of 20 . . . done.
Upgrading item 9 of 20 . . . done.
Upgrading item 10 of 20 . . . done.
Upgrading item 11 of 20 . . . done.
Upgrading item 12 of 20 . . . done.
Upgrading item 13 of 20 . . . done.
Upgrading item 14 of 20 . . . done.
Upgrading item 15 of 20 . . . done.
Upgrading item 16 of 20 . . . done.
Upgrading item 17 of 20 . . . done.
Upgrading item 18 of 20 . . . done.
Upgrading item 19 of 20 . . . done.
Upgrading item 20 of 20 . . . done.

Having a look at album14, and I see NO photos.dat file was created.

jmullan wrote:
digiital, after you upgraded, did you visit and/or upgrade all of the albums in G1 individually?

Let me know. Thanks!

jmullan wrote:
digiital, after you upgraded, did you visit and/or upgrade all of the albums in G1 individually?

Let me know. Thanks!