G2 -> G2 Moving gallery to new server

gazol

Joined: 2002-09-09
Posts: 16
Posted: Thu, 2007-02-01 11:36

Migration issue

I have been trying migrate my gallery to new a server a few times now but I allways end up with some images being corrupted samge images every time.
Migration was done with copy of g2data and mysqldump import.

Example:
I have both servers up and running right now:
Old(Working):
http://sugburken.com/gallery2/main.php?g2_itemId=250464
New(corrupted)
http://83.227.73.40/gallery2/main.php?g2_itemId=250464

If you click "Download foto in original format" on the new system the image shows up and it's not corrupted.

Could there be a mysql upgrade issue?

Old System(Working)
Gallery version = 2.1.2 kärna 1.1.0.2
PHP version = 5.1.4-pl6-gentoo apache2handler
Webserver = Apache
Databas = mysql 4.1.21-log, lock.system=flock
Verktyg = ArchiveUpload, ImageMagick, NetPBM, Gd, Thumbnail, Dcraw, Ffmpeg, Exif, Getid3
Acceleration = none, none
Operativsystem = Linux sugburken 2.6.15-gentoo-r1 #21 SMP Sun Sep 24 12:26:13 CEST 2006 x86_64
Förvalt tema = matrix
Locale = sv_SE
Webbläsare = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)

New System(With corrupted images)
Gallery version = 2.1.2 kärna 1.1.0.2
PHP version = 5.1.6 apache2handler
Webserver = Apache/2.0.55 (Ubuntu) PHP/5.1.6
Databas = mysql 5.0.24a-Debian_9-log, lock.system=flock
Verktyg = ArchiveUpload, ImageMagick, NetPBM, Gd, Thumbnail, Dcraw, Ffmpeg, Exif, Getid3
Acceleration = none, none
Operativsystem = Linux new 2.6.17-10-server #2 SMP Tue Dec 5 22:29:32 UTC 2006 i686
Förvalt tema = matrix
Locale = sv_SE
Webbläsare = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)

 
gazol

Joined: 2002-09-09
Posts: 16
Posted: Thu, 2007-02-01 21:58

After further investigation it seems like the problem is related to only rotated pictures. On the old system I was using GD and it worked fine but on the new ubuntu systems where I installed php5-gd package it does not work on rotated images. When I changed to imagemagick it worked fine, but takes a long time to redo the whole gallery.

Anyone running GD on ubuntu and gallery2?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-02-02 02:23

did you deactivate + uninstall, then install + activate the graphics toolkit modules after the migration to the new server? g2 needs to detect the capabilities of the server again.

@gd:
maybe increasing the php memory limit helps.

--------------
Enter the Gallery 2 Theme Contest today!