Migrating Gallery from GoDaddy to Dreamhost VPS

Mike250
Mike250's picture

Joined: 2007-03-30
Posts: 4
Posted: Wed, 2012-03-21 04:57


Gallery Version: Gallery 2.3.1
PHP Version: 5.2.17
PHPInfo Link: Can't provide PHPInfo link: I am using hosts file to hit the IP of new server
Webserver: Apache (unsure of version)
DB: MySQL5
Toolkits: GD Support enabled
OS: Linux
Host: Dreamhost VPS
Browser: Google Chrome

Hi,

It's been years since I have touched Gallery. It has been running in a GoDaddy environment just fine for 5 years, more. I am migrating to Dreamhost VPS, have moved all files and folders, set permissions, restored database and configured the config file.

I'm prompted to upgrade to 2.3 when visiting the site.

No drama, everything is fine until step 4: Upgrade Core. Here it says, for some reason:

Currently installed	 Core Module version: 0 (Gallery 0)
New version	 Core Module version: 1.3.0.1 (Gallery 2.3.1)

I note that on step 4 I receive the following notice:

Notice: Undefined index: data.gallery.version in /home/gallery/modules/core/classes/Gallery.class on line 282

After clicking Begin Upgrade, I get the following:

An error occurred while upgrading Gallery Core Module
Something went wrong when we tried to upgrade the core module. In the boxes below you can find some debug information. Report this in the Gallery Forums and we'll help you diagnose the problem.

Stack Trace:

Error (ERROR_COLLISION) : Duplicate permission id: core.all
in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 762 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 929 (GalleryPermissionHelper_advanced::registerPermission)
in modules/core/CoreModuleExtras.inc at line 329 (GalleryCoreApi::registerPermission)
in modules/core/module.inc at line 486 (CoreModuleExtras::upgrade)
in modules/core/classes/GalleryModule.class at line 175 (CoreModule::upgrade)
in upgrade/steps/UpgradeCoreModuleStep.class at line 85 (GalleryModule::installOrUpgrade)
in upgrade/index.php at line 186 (UpgradeCoreModuleStep::processRequest)

Here I am reporting in the Forums. Maybe something simple, I've migrated Wordpress and Zend Cart over and running fine via my hosts file mapping. Just hiccuping here at Gallery.

Thanks in advance guys.

Mike

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-03-21 11:55

make sure your g2data/versions.dat is present and readable by the webserver

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Mike250
Mike250's picture

Joined: 2007-03-30
Posts: 4
Posted: Mon, 2012-03-26 01:31

Hi there,

Thanks for your answer.

Yes, my g2data/versions.dat exists, with the following within the file.

1.3.0.1
2.3.1

I tried setting permissions to 755 and then 777, is there something else I could try? Thank you in advance.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2012-03-26 01:37

your entire g2data should be 777 try:
chmod -R 0777 /path/to/g2data

and make sure you're paying attention for failures.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Mike250
Mike250's picture

Joined: 2007-03-30
Posts: 4
Posted: Mon, 2012-03-26 03:58

Something is up in the migration. Everything is fine permissions wise, SSH returned 0 errors with the CHMOD re-cursing into all dirs.
I installed a fresh copy and am copying the files and albums in via local server import.
Doing the job.

Thank you for your help anyway.