"An error occurred while upgrading Gallery Core Module"

ljlas1

Joined: 2010-03-25
Posts: 2
Posted: Thu, 2010-03-25 05:34

Hi there,

I got stuck doing an upgrade (versions.dat file says 1.3.0) to the latest version of Gallery 2.3.1

I'm hoping that someone could shed some more light into what's going wrong and which files I need to check?
Below is what the upgrader displayed after the error:

Stack Trace:

Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage.class at line 494 (GalleryCoreApi::error)
in modules/core/classes/Gallery.class at line 202 (GalleryStorage::search)
in modules/core/CoreModuleExtras.inc at line 633 (Gallery::search)
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)

Debug Output:

file_exists(/home/birdsvw/public_html/gallery2/data/versions.dat)
file(/home/birdsvw/public_html/gallery2/data/versions.dat, )
Unknown module version 0.8 in prepareConfigUpgrade()
is_writeable(/home/birdsvw/public_html/config.php)

--------------------------------------------------------
Upgrade Core Module
--------------------------------------------------------

--------------------------------------------------------
System and Gallery information:
--------------------------------------------------------
Gallery version: 2.0-alpha-3
File integrity: There are missing/modified files!
SVN install: No
PHP version: 5.2.8 apache2handler
PHP memory limit: 32M
PHP disable_functions:
PHP zend.ze1_compatibility_mode: 0
Webserver: Apache/2.0.63 (Unix) mod_ssl/2.0.63
OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
FrontPage/5.0.2.2635 PHP/5.2.8
Database: mysqlt 5.0.89-community
Operating system: Linux sli03.slinteractive.com.au 2.6.18-92.el5 #1
SMP Tue Jun 10 18:49:47 EDT 2008 i686
Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5
--------------------------------------------------------

Thanks in advance!

AttachmentSize
Upgrade Core Error.txt102.87 KB
 
ljlas1

Joined: 2010-03-25
Posts: 2
Posted: Mon, 2010-03-29 05:01

I couldn't figure out what was causing the issue so after a couple of days of attempts I decided to setup everything again from scratch.
It's all good now with a clean install.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2010-03-29 09:06

From your upgrade log:

Quote:
mysqlt error: [1146: Table 'birdsvw_birdsview.g2_PermissionMap' doesn't
exist] in

... your database was borked.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-03-29 15:32
Quote:
Gallery version: 2.0-alpha-3

Looks to me like you where misisng a version.dat file as well. Gallery will think is is a alpha version if that file is missing.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-03-29 15:36
Quote:
Gallery version: 2.0-alpha-3
File integrity: There are missing/modified files!

I concur. The upgrader thought you were running a pre-beta version of Gallery and if versions.dat show 1.3.0 that means you were running 2.3, but that information didn't jive with what was in the DB and that would cause all kinds of problems upgrading too.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here