Server migration blew up

Murple

Joined: 2005-12-07
Posts: 14
Posted: Fri, 2005-12-16 08:03

OK, so I replaced my webserver... hosts have the same name, same OS, etc. First I tried just tarring up the G2 data directory and importing a MySQL dump, since the environment wasnt changing, only the physical hardware, and it seemed to work, but thumbnails and resizes were broken. They looked OK on first load, but if you clicked any of them the resize was a broken icon and then the thumbnail would also change to a broken icon. Trying to regenerate them resulted in lots of errors about files existing etc.

I then tried the server change steps in the how to page... copied over the data dir, did an SQL import, installed a fresh gallery2, did a configure and said use existing database. It seemed to work fine, until the "go to my gallery" when I got:

Error
Error (ERROR_BAD_PARAMETER) :

* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 105 (ShowItemView::error)
* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 99 (ShowItemView::loadPlugin)
* in modules/core/classes/GalleryCoreApi.class at line 187 (ShowItemView::loadPlugin)
* in modules/core/classes/GalleryView.class at line 407 (ShowItemView::loadPlugin)
* in modules/core/classes/GalleryView.class at line 224 (ShowItemView::loadThemeForItem)
* in main.php at line 287 (ShowItemView::doLoadTemplate)
* in main.php at line 87
* in main.php at line 80

Any ideas? I have 4000 photos and would hate to have to manually move them over and put all the captions on.

Gallery version: 2.0.2
PHP version: 5.0.4
Webserver: Apache 2.0.54
Database: MySQL 4.1.15
OS: Linux (Fedora Core 4)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-12-16 10:25

- make sure you have followed the instructions carefully:
FAQ: How can I move my gallery installation from one server to another?

- fedora core 4:
make sure SELinux is disabled

- make sure the webserver has read+write permissions on g2data, recursivelly

and disable + uninstall + install + activate all modules that have dependencies:
-- ffmpeg, imagemagick, gd, netpbm, dcraw, archiveupload, zipcart, ...