errors during migration

JustinHoMi

Joined: 2002-08-17
Posts: 42
Posted: Thu, 2005-01-13 08:02

I'm running into problems migrating my G1 data over to G2. My G1 gallery has 5300+ images in 220 albums occupying about 4.3GB of disk space.

First, I attempted to migrate everything over at once. After clicking the migrate button, the browser twiddled it's thumbs for a minute or two and then stopped. It didn't reach the completion page or report any error. Upon inspection, it did migrate over about 600 images, but it was quite incomplete, and there were a number of errors in sorting, etc.

The second attempt was to migrate a set of sub albums with 600 items, which worked great.

The third attempt was to migrate a smaller set of albums that had a lot of videos. This failed after about 350 items with the following error:

Warning: fread(): Length parameter must be greater than 0. in /home/httpd/justinmitchell.net/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 155

Warning: fread(): Length parameter must be greater than 0. in /home/httpd/justinmitchell.net/gallery2/modules/exif/lib/exifer/makers/olympus.inc on line 155

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/justinmitchell.net/gallery2/modules/exif/lib/exifer/makers/olympus.inc:155) in /home/httpd/justinmitchell.net/gallery2/main.php on line 375

Fourth attempt: same thing, same error.

Five, six, seven, eight: I narrowed it down to a specific album (which was hidden at the time) but I couldn't figure out what the problem was.

During migration, I unchecked the mapping and thumbnail options.

Anyways, I figured I'd just post this in hopes of uncovering the cause.

----

Gallery URL: http://www.justinmitchell.net/gallery2
Gallery version: CVS 01-11-05
Webserver (with version): Apache 1.3.33
Datatabase (with version): MySQL 4.0.20
PHP version (eg 4.2.1): PHP 4.3.10
phpinfo URL (optional):
Graphics Toolkit(s): netpbm
Operating system: RHEL 3.0
Web browser/version: Mozilla Firebird 1.0

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-01-13 08:18

This isn't a migration issue, this is a exif-reader issue - I downloaded one of those images and tried to upload it to my own G2. I was unsuccessful until I turned off the exif module. :(

 
JustinHoMi

Joined: 2002-08-17
Posts: 42
Posted: Thu, 2005-01-13 08:29

Ah, good to know. As it turns out, the album actually imported, and the photo properties show all of the exif information, as far as I can tell. We just get that error that halts things....

But... we still have the problem with trying to import all of the albums at once :).

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-01-13 09:44

I've been throwing code at that problem for a few weeks now. It's coming along, and there are item by item status updates at the same time, meaning that random crashes will at least tell you how far they get along the way. ;)

 
jctull

Joined: 2004-12-23
Posts: 5
Posted: Tue, 2005-01-25 23:44

FWIW, I also get failed migrations on various files that I think are exif related. This is with a fresh cvs version of g2. Here is some error output using thumbnail generation, but no redirection links. My server is at 134.197.55.114.

 Gallery Debug Output
      file_exists(/Volumes/RainyDay/WebServer/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
Unimplemented: GalleryUrlGenerator
file_exists(/Volumes/RainyDay/WebServer/g2data/sessions/de41de95c4df896f6f8e98c3ca75e043)
clearstatcache()
filesize(/Volumes/RainyDay/WebServer/g2data/sessions/de41de95c4df896f6f8e98c3ca75e043)
fopen(/Volumes/RainyDay/WebServer/g2data/sessions/de41de95c4df896f6f8e98c3ca75e043,
rb, 0)
flock(Resource id #30, 6, )
fread(Resource id #30, 7569)
flock(Resource id #30, 3, )
fclose(Resource id #30)
file_exists(/Volumes/RainyDay/WebServer/g2data/cache/module/core/0/0/0.inc)
Initializing navigation
Continuing navigation x1dc07a61
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/locale
file_exists(/Volumes/RainyDay/WebServer/g2data//versions.dat)
file(/Volumes/RainyDay/WebServer/g2data//versions.dat, )
[1106696032] can't guarantee 5 -- extending!
file_exists(/Volumes/RainyDay/WebServer/g2data/cache/entity/0/0/5.inc)
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/migrate/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_migrate ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/migrate/locale
file_exists(/Volumes/RainyDay/WebServer/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../../modules/migrate/ChooseObjects.inc)
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../../modules/migrate/ChooseObjects.inc)


(mysql): 
        SELECT
          g2_UserGroupMap.g_userId
        FROM
          g2_UserGroupMap
        WHERE
          g2_UserGroupMap.g_userId = 5
          AND
          g2_UserGroupMap.g_groupId = '2'
         LIMIT 1   



file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../../modules/core/SiteAdmin.inc)
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../../modules/core/SiteAdmin.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
file_exists(/Volumes/RainyDay/WebServer/g2data/cache/entity/0/0/6.inc)
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/members/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_members ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/members/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/rearrange/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_rearrange ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/rearrange/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/register/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_register ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/register/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/search/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_search ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/search/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/ffmpeg/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_ffmpeg ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/ffmpeg/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/gd/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_gd ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/gd/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/imagemagick/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imagemagick ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/imagemagick/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/netpbm/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_netpbm ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/netpbm/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/imageblock/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imageblock ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/imageblock/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/cart/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_cart ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/cart/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/photoaccess/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_photoaccess ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/photoaccess/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/zipcart/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_zipcart ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/zipcart/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/albumselect/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_albumselect ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/albumselect/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/imageframe/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imageframe ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/imageframe/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/newitems/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_newitems ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/newitems/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/panorama/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_panorama ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/panorama/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/randomhighlight/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_randomhighlight ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/randomhighlight/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/slideshow/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_slideshow ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/slideshow/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/thumbnail/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_thumbnail ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/thumbnail/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/thumbpage/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_thumbpage ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/thumbpage/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/watermark/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_watermark ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/watermark/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/comment/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_comment ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/comment/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/customfield/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_customfield ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/customfield/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/exif/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_exif ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/exif/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/remote/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_remote ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/remote/locale
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/uploadapplet/module.inc)
realpath(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../..)
Binding text domain: modules_uploadapplet ->
/Volumes/RainyDay/WebServer/Documents/gallery2/modules/uploadapplet/locale


(mysql): SELECT g2_TkOperatnMimeTypeMap.g_operationName, 
                    g2_TkOperatnMimeTypeMap.g_mimeType, 
                    g2_TkOperatnMimeTypeMap.g_toolkitId, 
                    g2_TkOperatnMimeTypeMap.g_priority
              FROM g2_TkOperatnMimeTypeMap
             WHERE g2_TkOperatnMimeTypeMap.g_priority >= 20
               AND g2_TkOperatnMimeTypeMap.g_priority <= 40  
 



file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../../modules/migrate/ConfirmImport.inc)
file_exists(/Volumes/RainyDay/WebServer/Documents/gallery2/modules/core/classes/../../../modules/migrate/ConfirmImport.inc)
file_exists(/Library/WebServer/Documents/albums/.users/userdb.dat)
is_readable(/Library/WebServer/Documents/albums/.users/userdb.dat)
file(/Library/WebServer/Documents/albums/.users/userdb.dat, )
file_exists(/Library/WebServer/Documents/albums/.users/1023743295_1755202938)
is_readable(/Library/WebServer/Documents/albums/.users/1023743295_1755202938)
file(/Library/WebServer/Documents/albums/.users/1023743295_1755202938, )
file_exists(/Library/WebServer/Documents/albums/.users/1023921373_1095977669)
is_readable(/Library/WebServer/Documents/albums/.users/1023921373_1095977669)
file(/Library/WebServer/Documents/albums/.users/1023921373_1095977669, )
file_exists(/Library/WebServer/Documents/albums/albumdb.dat)
is_readable(/Library/WebServer/Documents/albums/albumdb.dat)
file(/Library/WebServer/Documents/albums/albumdb.dat, )
file_exists(/Library/WebServer/Documents/albums/album01/album.dat)
is_readable(/Library/WebServer/Documents/albums/album01/album.dat)
file(/Library/WebServer/Documents/albums/album01/album.dat, )
file_exists(/Library/WebServer/Documents/albums/Alita/album.dat)
is_readable(/Library/WebServer/Documents/albums/Alita/album.dat)
file(/Library/WebServer/Documents/albums/Alita/album.dat, )
file_exists(/Library/WebServer/Documents/albums/Alita/album.dat)
is_readable(/Library/WebServer/Documents/albums/Alita/album.dat)
file(/Library/WebServer/Documents/albums/Alita/album.dat, )


(mysql): 
        SELECT
          g2_FileSystemEntity.g_id
        FROM
          g2_FileSystemEntity,  g2_ChildEntity
        WHERE
          g2_ChildEntity.g_parentId = '6'
          AND
          g2_ChildEntity.g_id = g2_FileSystemEntity.g_id
          AND
          g2_FileSystemEntity.g_pathComponent = 'Alita'
           





(mysql): 
        SELECT
          g2_User.g_id
        FROM
          g2_User
        WHERE
          g2_User.g_userName = 'xxxxxxxxx'