Error importing g1 albums

mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Sun, 2005-06-19 02:55

<TYPE YOUR MESSAGE HERE, ENTER SYSTEM DETAILS BELOW>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Error Detail -
Error (ERROR_BAD_PATH)
in modules/core/classes/GalleryMovieItem.class at line 144 (gallerystatus::error)
in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 190 (gallerymovieitem::create)
in modules/core/classes/GalleryCoreApi.class at line 1484 (galleryitemhelper_medium::additemtoalbum)
in modules/migrate/ConfirmImport.inc at line 857 (gallerycoreapi::additemtoalbum)
in main.php at line 183 (confirmimportcontroller::handlerequest)
in main.php at line 87
in main.php at line 78
System Information
Gallery version 2.0-beta-3+
PHP version 4.3.10 apache2handler
Webserver
Database mysql 4.1.10-standard
Toolkits ImageMagick, NetPBM, Gd
Operating system Linux fishgeeks.com 2.4.22-1.2199.4.legacy.nptlsmp #1 SMP Sun Feb 20 18:07:59 EST 2005 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Alexa Toolbar)

G1 album has approx 300 sub albums and 6000 images. Mem limit is set to 160MB in php.ini

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2005-06-19 03:53

sounds to me like you have a missing file. You should figure out which file it is trying to import and figure out why it is missing from your g1 -- or if it is not missing, give me a link to it so I can see if it has a strange name or if there is some other reason why g2 can't find it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-19 11:22

jmullan, mbuna is using g2 embedded in postnuke. don't know if this could have anything to do with this problem.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Sun, 2005-06-19 13:12

um, any hints on how to figure out what file it was working on?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-19 13:39

jmullan, seems like embedded g2 has nothing to do with it. it was executed in g1 standalone.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2005-06-19 20:35

mbuna, run the import again and watch as it tells you each album and item it imports. Make note of what it says it is doing when it breaks. If you like, you could figure out which album the item is in and try importing just that album.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2005-06-19 20:36

Also, have you run the find orphans tool yet? You really should. I don't know if it detects missing items, but it ought to if it doesn't.

 
dpruitt

Joined: 2005-06-17
Posts: 4
Posted: Sun, 2005-06-19 22:57

I don't have nuke. I just have a customized version of G1, but the import always errors out on trying to read photos.dat. None of my gallery albums have that file.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Sun, 2005-06-19 23:42

Jmullan,

I have yet to see any albums/etc be displayed during the import. I just get the status bar and then some numbers in the upper right hand part of the screen.

I'll have a look at the orphans tool. In G1 that tool completely hosed one of my galleries so I'm hesitant to use it on a prod site.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2005-06-20 00:24

dpruitt, uh, is this your thread? No, it isn't. I don't know how I missed your other thread, but I will answer your question there, since it has nothing to do with this thread.

mbuna, you aren't seeing anything above the progress bar? Would you mind giving me access to your g2 so I can run the import? Otherwise, you could check to see what the last item imported was, and figure out what album that was in. (hint: it would have the highest id)

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 12:31

JM,

Ok, I do see that it shows the album, but it was in white on white so it wasn't viewable. I had to view source to see what it said.

I found the file that was missing and am trying the import again.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 12:54

hmm, now it just stops importing with no error message.

The import path is /www/htdocs/fishgeeks/modules/gallery/albums (this is my production gallery)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 13:25

mbuna, this will be too few information for jmullan. you'll have to find out which specific album / item is the problem.
and maybe if you can you should give jmullan access to your g2/box such that he can debug the problem.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2005-06-20 14:01

mbuna sent me a pm with login info, so we'll see

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 14:20

JM, I'm online at

(yahoo) or

(msn) if you need anything from me on this.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2005-06-20 16:16

We'll see if I can get to this after work. My contact info is in every post, so if you want to contact me I can walk you through more debugging (like checking your apache error logs to see if you ran out of memory). Actually, that's a good idea. You should look in your error log and see if it says "failed to allocated xxx bytes." Also, you should tell me what sort of memory usage you get in the upper right hand corner, since that is the first warning for memory errors. You might still get memory errors without warning if something like the EXIF module runs away with an fread (it happens... a lot).

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 18:09

No error in the log. I have php set to 160MB.

Here is what is on the page when it stops:

Migration Status
Importing photos
tank_setups anq.jpg

Estimated time remaining: 10:25
<snip>
18805856/160M
18808616/160M
18811512/160M
18814480/160M

I'll up the mem and try again.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 18:12

Ok, upping mem to 256MB didn't make a difference. Still crapped out on the same photo.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 18:47

Ok here is what I've tried.

Upping mem to 256mb
Importing a single album
Importing an album with sub albums
turning off thumbnail creation

All fail. When I tried on album tree they all failed on the same photo, this photo exists and looks ok from the server.

I've also run the orphan and validate tools against the g1 album prior to trying to import.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2005-06-20 21:08

What is that photo? Can you download it from your G1 and upload it to your G2 through normal means? With 256M it is very likely not a migration problem any more, but it could still be an EXIF issue - I've seen the library that we use try to allocate multiple GIGAbytes of space. This is a bug, of course, but, uh, well, try uploading that image separately and let me know.

Thanks!

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 22:49

I deleted that photo and it failed on the next one. I'll try uploading that one manually.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Mon, 2005-06-20 22:52

http://www.aquaria.info/modules/gallery/albums/tank_setups/ans.jpg

This is the photo it's puking on. I can't seem to add it manually either.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Thu, 2005-06-23 01:58

JM,

Were you able to import that photo into your G2 album?

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-06-23 03:53

Nope, sorry, I just tried, and with exif on it runs out of memory. With exif off it's fine. :/ Sigh.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Fri, 2005-06-24 20:22

Ok, so this is part of the known bug? Any eta on resolution?

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2005-06-24 20:30

Sort of -- we know that the exif library that we use is buggy. :( I started a new local branch so I could see about fixing it.

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Fri, 2005-06-24 20:30

How can I turn off exif?

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2005-06-24 21:04

go to the admin options, then modules, and deactivate the module

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Wed, 2005-07-06 13:22

Thanks JM. What do you lose if you turn off that module?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-07-06 13:43

you lose exif data, e.g. when the pic was captured etc.