[SOLVED] Error while updgrading 0.0.8->0.9.9

CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Thu, 2005-04-07 11:32

An error ocurred 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_PLATFORM_FAILURE) : /usr/local/www/green-g2data//plugins already exists; unable to replace it

* in modules/core/CoreModuleExtras.inc at line 642 (CoreModule::error)
* in modules/core/module.inc at line 515 (CoreModule::upgrade)
* in modules/core/classes/GalleryModule.class at line 137 (CoreModule::upgrade)
* in upgrade/steps/UpgradeCoreModuleStep.class at line 72 (CoreModule::installOrUpgrade)
* in upgrade/index.php at line 152 (UpgradeCoreModuleStep::processRequest)

Debug Output:

-----
(mysqlt): ROLLBACK
-----
-----
(mysqlt): SET AUTOCOMMIT=1
-----

-----
(mysqlt): SHOW TABLES
-----

realpath(/usr/local/www/greenfam/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/usr/local/www/greenfam/gallery2/modules/core/locale
file_exists(/usr/local/www/green-g2data//versions.dat)
file(/usr/local/www/green-g2data//versions.dat, )
-----
(mysqlt): SET AUTOCOMMIT=0
-----
-----
(mysqlt): BEGIN
-----

file_exists(/usr/local/www/greenfam/gallery2/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
opendir(/usr/local/www/greenfam/gallery2/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
readdir(Resource id #49)
closedir(Resource id #49)
-----
(mysqlt): SHOW TABLES
-----

-----
(mysqlt): SELECT g_name, g_major, g_minor FROM g2_Schema
-----

realpath(/usr/local/www/green-g2data//plugins)
is_dir(/usr/local/www/green-g2data//plugins)
rename(/usr/local/www/green-g2data/plugins,
/usr/local/www/green-g2data/plugins.old)
realpath(/usr/local/www/greenfam/gallery2/modules/core/classes/../../../)

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Thu, 2005-04-07 11:33

Stuck in the upgrader at the moment. Mindless? Did I catch a typo in the upgrader code? Let me know what you see! :)

Chris

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-07 12:08

that can't be the complete debug output. i see no error in the details.
all i see is Error (ERROR_PLATFORM_FAILURE) : /usr/local/www/green-g2data//plugins already exists; unable to replace it

CGreenTX, what's the exact date of your G2 version? cvs or nightly snapshot? from when?

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Thu, 2005-04-07 12:48

CVS Update as of 0630 CST today (4/7/05). I updated it from yesterday's version.

Chris Green

 
alexus
alexus's picture

Joined: 2004-03-15
Posts: 147
Posted: Thu, 2005-04-07 14:17

i'm experencing same error

Error (ERROR_PLATFORM_FAILURE) : /usr/home/alexus/alexus/alexus.org/gallery2/g2data//plugins already exists; unable to replace it
in modules/core/CoreModuleExtras.inc at line 642 (CoreModule::error)
in modules/core/module.inc at line 515 (CoreModule::upgrade)
in modules/core/classes/GalleryModule.class at line 137 (CoreModule::upgrade)
in upgrade/steps/UpgradeCoreModuleStep.class at line 72 (CoreModule::installOrUpgrade)
in upgrade/index.php at line 152 (UpgradeCoreModuleStep::processRequest)

-----
(mysql): SHOW TABLES
-----

realpath(/usr/home/alexus/alexus/alexus.org/gallery-2.0-current/modules/core/classes/../../..)
Binding text domain: modules_core ->
/usr/home/alexus/alexus/alexus.org/gallery-2.0-current/modules/core/locale
file_exists(/usr/home/alexus/alexus/alexus.org/gallery2/g2data//versions.dat)
file(/usr/home/alexus/alexus/alexus.org/gallery2/g2data//versions.dat, )
file_exists(/usr/home/alexus/alexus/alexus.org/gallery-2.0-current/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
opendir(/usr/home/alexus/alexus/alexus.org/gallery-2.0-current/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
readdir(Resource id #48)
closedir(Resource id #48)
-----
(mysql): SHOW TABLES
-----

-----
(mysql): SELECT g_name, g_major, g_minor FROM g2_Schema
-----

realpath(/usr/home/alexus/alexus/alexus.org/gallery2/g2data//plugins)
is_dir(/usr/home/alexus/alexus/alexus.org/gallery2/g2data//plugins)
rename(/usr/home/alexus/alexus/alexus.org/g2data/plugins,
/usr/home/alexus/alexus/alexus.org/g2data/plugins.old)
realpath(/usr/home/alexus/alexus/alexus.org/gallery-2.0-current/modules/core/classes/../../../)

 
alexus
alexus's picture

Joined: 2004-03-15
Posts: 147
Posted: Thu, 2005-04-07 14:19

i'm trying to upgrade from 0.9.8 to 0.9.9..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-07 14:27

probably a bug was introduced. you'll have to wait a few hours 'til the developer which changed that part yesterday is online again.

 
alexus
alexus's picture

Joined: 2004-03-15
Posts: 147
Posted: Thu, 2005-04-07 14:42

ok, i guess we have no other choice unless try to fix ourselfs ;)

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Thu, 2005-04-07 15:00

that's weird... I just upgraded on two machines and it worked like a charm... could you delete this directory and try upgrader again?

 
alexus
alexus's picture

Joined: 2004-03-15
Posts: 147
Posted: Thu, 2005-04-07 15:32

delete what directory?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-07 15:41

it's a bug. some devs are working on it (not me :) ). fix is on the way. stay tuned.

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Thu, 2005-04-07 17:35

Waiting Patiently... This is why we participate. :)

Chris Green

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-07 18:05

fix is in cvs... the double slash // in the path may or may not have been an issue; virshu fixed that before i got to it.. but even with that fix it didn't work for me.. i filed a php bug: http://bugs.php.net/32627 and changed the G2 code to workaround this bug. try anon cvs in a few hours or tomorrow's nightly snapshot.

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Thu, 2005-04-07 19:20

worked like a charm.. Good work guys.

Chris

 
alexus
alexus's picture

Joined: 2004-03-15
Posts: 147
Posted: Thu, 2005-04-07 20:44

now it works