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/../../../)
Posts: 51
Stuck in the upgrader at the moment. Mindless? Did I catch a typo in the upgrader code? Let me know what you see!
Chris
Posts: 32509
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?
Posts: 51
CVS Update as of 0630 CST today (4/7/05). I updated it from yesterday's version.
Chris Green
Posts: 147
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/../../../)
Posts: 147
i'm trying to upgrade from 0.9.8 to 0.9.9..
Posts: 32509
probably a bug was introduced. you'll have to wait a few hours 'til the developer which changed that part yesterday is online again.
Posts: 147
ok, i guess we have no other choice unless try to fix ourselfs ;)
Posts: 314
that's weird... I just upgraded on two machines and it worked like a charm... could you delete this directory and try upgrader again?
Posts: 147
delete what directory?
Posts: 32509
it's a bug. some devs are working on it (not me ). fix is on the way. stay tuned.
Posts: 51
Waiting Patiently... This is why we participate.
Chris Green
Posts: 8601
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.
Posts: 51
worked like a charm.. Good work guys.
Chris
Posts: 147
now it works