Migrating from server to server -- problems

phredphish

Joined: 2005-01-25
Posts: 11
Posted: Mon, 2005-04-04 13:06

I followed the directions in another thread -- copy the g2data folder and the database to my new server. I then proceeded to run through the installer. I get to the 7th step (install Gallery Core) and it fails.

Here is the error output:

Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1150 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 220 (mysqldatabasestorage::search)
* in modules/core/classes/Gallery.class at line 206 (gallerystorage::search)
* in modules/core/CoreModuleExtras.inc at line 457 (gallery::search)
* in modules/core/module.inc at line 515 (coremoduleextras::upgrade)
* in modules/core/classes/GalleryModule.class at line 137 (coremodule::upgrade)
* in install/steps/InstallCoreModuleStep.class at line 85 (coremodule::installorupgrade)
* in install/index.php at line 168 (installcoremodulestep::loadtemplatedata)

I am using the latest CVS (4-4-05)
Apache version 1.3.33 (Unix)
MySQL version 4.0.23-standard
PHP version 4.3.10
Operating system Linux
Kernel version 2.4.21-27.0.2.ELsmp
Machine Type i686
Webbrowser: Firefox 1.0.2

 
phredphish

Joined: 2005-01-25
Posts: 11
Posted: Mon, 2005-04-04 13:42

I have also tried re"installing" the gallery package -- I was using 4-02-05, this morning I deleted it and moved to 4-04-05 and nothing changed.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-04-04 14:00
 
phredphish

Joined: 2005-01-25
Posts: 11
Posted: Mon, 2005-04-04 15:24

Yes. I believe I have followed those directions properly.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-04-04 16:28

hm, i don't think you can migrate + upgrade in one step.
move over your db+g2data+same codebase you were running before. you should be able to run the installer now. then you can update the codebase and access the G2 to run the upgrader to bring everything up to date.

 
phredphish

Joined: 2005-01-25
Posts: 11
Posted: Mon, 2005-04-04 17:25

If I upgrade the gallery installation on my old server to the current codebase...does it change both the G2Data folder and the database, or just the database?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-04-04 17:38

mindless, i thought about this case too when i wrote the directions, but i don't know any reason why you should not be able to change the host and upgrade in a single install run.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-04-04 19:23

phredphish, the upgrader will touch g2data too.. at the very least it updates versions.dat and clears some cache files (usually that's all it will do in g2data).

valiant, previously that may have been mostly true.. but there are 3 problems:
1) the main one is a new problem: the upgrader passes in a $statusMonitor for a progress indicator during the upgrade.. right now the installer doesn't pass any value in for this param.. but CoreModuleExtras is assuming it will be set for upgrading. so if the installer really ends up invoking an upgrade this will cause an error.
2) installer doesn't clear cache files.. may or may not be a problem.
3) installer doesn't upgrade modules.. i suppose you can do this after running installer in Site Admin, or run upgrader manually.
so, technically we could probably get it all working, but i think recommending migrate-then-upgrade is safer.

 
phredphish

Joined: 2005-01-25
Posts: 11
Posted: Tue, 2005-04-05 04:48

I upgraded my old site to the latest cvs, reexported the database and copied over the versions.dat. Now I get this error:

Error (ERROR_BAD_PLUGIN) : Unknown module version 0.9.8

* in modules/core/CoreModuleExtras.inc at line 623 (gallerystatus::error)
* in modules/core/module.inc at line 515 (coremoduleextras::upgrade)
* in modules/core/classes/GalleryModule.class at line 137 (coremodule::upgrade)
* in install/steps/InstallCoreModuleStep.class at line 85 (coremodule::installorupgrade)
* in install/index.php at line 168 (installcoremodulestep::loadtemplatedata)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-05 15:43

i suggest you copy over your config.php and make the appropriate updates.. looks like the core module upgrade() function currently won't work when nothing needs to be done (ie it wants to do a new install or an upgrade).

 
phredphish

Joined: 2005-01-25
Posts: 11
Posted: Tue, 2005-04-05 18:34

Alright. One LAST migration issue: It seems only some of the thumbnails have decided to work. The ones that work seem to be those that weren't accessed BEFORE I disabled NetPBM. I have both ImageMagik and GD installed, configured and working. All of the thumbnails that weren't accessed work properly. How can I 'rebuild' those thumbnails that have been replaced with the broken image? Any quick way to force deletion/rebuild on ALL thumbnails/resized images?

-Andrew

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-05 19:15

lib/tools/test/index.php FlushCache
or Site Admin / Maintenance in a recent cvs/nightly build.