During my upgrade from 2.2.3 to 2.3 I got this error on Step 4: Upgrading the core.
Quote:
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_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 507 (gallerystorageextras::execute)
in modules/core/CoreModuleExtras.inc at line 3532 (mysqlstorage::execute)
in modules/core/CoreModuleExtras.inc at line 81 (coremoduleextras::convertcharactersettoutf8)
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 (coremodule::installorupgrade)
in upgrade/index.php at line 186 (upgradecoremodulestep::processrequest)
I've attached the debug report
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 25953
2 errors I see from your log:
Posts: 126
Posts: 126
Dave the backed up data base keeps timing out when I try to import it back via PhpMyAdmin. Am I screwed or what? Instead of upgrading could I do a full install of G2.3 then point it to the old database?
God knows I can't afford not to get the gallery back the way it was. We're talking years of photos and comments.
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
The regular update process basically overwrites the old code with the new, and when you point the new code at an old database it triggers the update process automatically.
So you can do a new install of G2.3 and then change the config.php to point to the old database and this should work as long as the old database is still in a pristine state and not stuck midway through an upgrade. If it is midway through an upgrade then the results are somewhat indeterminate.
Backups are worth less than nothing unless you are 100% sure you can recover from them if you need to.
Posts: 126
No you've scared the living @#$% out of me! The backup won't restore. It keeps timing out.
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
MySQL backups are plaintext files, so you should be able to analyze it for errors. And/or restore it to a different host. You can install MySQL locally and try recovering to your own pc if you want.
Posts: 126
Ok I spoke to my hosting company and they instructed me to ftp the file to my site and then they will move it to the proper place. I hope this works.
Will keep you posted.
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 126
Latest Update:
Got the database restored. Did a full removal of G2.2.3 and any other Gallerie on the server.
Did a new G.2.3 upload. Started the install. Informed it to use the existing database. Made it all the way to step 7 Create Config file and I got this error.
The only option I had was to goto the upgrader. Did that and ended up with the same core modual error.
Now what should I do? and why is it saying it's not a fresh install?
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
Don't point it at the old database (restored) until after you've totally finished setting up a *new* installation of G2.3 Use a different directory for the g2data folder too for the new install.
When you've got G2.3 running, change the db and g2data info in the config.php to point to the old db and old g2data directory. That should (I think) mirror the upgrade procedure for multi-site installs, so it should work.
If you still get errors then you need to start investigating what was wrong with the old installation that breaks the upgrade path.
Posts: 126
OK, did everything you said. Got pass the Core Module errors we were having. Everything went fine until step 5 upgrading the PLUGINS. It said:
Upgrade Plugins
The following plugins can be automatically upgraded for you. If you choose not to upgrade them now, you may experience problems with your Gallery. You can always upgrade or deactivate them on the Site Administration page, or return to this page later so any decision you make here is not permanent.
So I did it and got this error.
I tried it twice and still got the error. I'm thinking it's an internet timing out issue.
Now what?
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 126
Listen to this.
I noticed that each time I went back to that step less and less plugins were seleceted. So i kept reloading the step unit it finally read
Upgrade Plugins
Upgraded the NetPBM module successfully
Upgraded the Gd module successfully
Upgraded the Ajaxian theme successfully
Upgraded the Carbon theme successfully
Upgraded the Classic theme successfully
Upgraded the Matrix theme successfully
Continue to Step 6»
Went to next step and it gave to me the unexpected error again. I couldn't get pass it so i simply went to the gallery main page and the gallery loaded up with no theme. The error said to the theme matrix is required. The instruction said to login into the admin area and pick matix or another them. I did that and BANG!!!! The gallery is up and running.
All of the pics are there too with their data.
So tell me, am I in for another upset somewhere down the line? I'm thinking something may be missing.
But so far it's working.
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
I'm glad you got it going. Probably a bit late now but for anyone reading this thread in the future it's worth:
-Before upgrading uninstalling any unused modules, or modules you can afford to uninstall
-Allowing the installer to upgrade a minimum of modules
-upgrade one-by-one anything else that needs it, from the regular plugins page
-Reinstalling any modules that you want to reinstall after the upgrade
Why? Because the less work the automated upgrade has to do, the less chance that some module somewhere will barf and leave you (if not necessarily your installation) in an indeterminate state. In other words it's easier to work with a gallery where one module won't upgrade when you do it manually - one at a time.
In your case... I don't know the installer that well to say.
If you a) upgraded your core module ok and b) upgraded enough of the plugins to get basic functionality going then you I think have a good chance of success. Visit your plugins page to see if any remain to be updated.
Posts: 126
Hit a problem. I'm logged in. Can do everything except site admin. When I click Site Admin, I get the following.
The administration session has expired, please re-authenticate to access the administration area.
When I try to login it keeps showing the same page. It doesn't matter how many times I try to login, same problem.
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
pm me the admin credentials, I'll have a look for you
Posts: 4342
Logged in fine first time for me - try clearing your cookie-cache and give it another go, or try a different browser.
Posts: 126
I tried 3 other pc's and clearing cache and cookies.
When you say it worked for you, are you talking about just logging into the gallery from the Log In link or are you saying when after you logged in you clicked the Site Admin link and then entered the details there and it worked also?
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
Fair point... can you put it into debug mode, please?
BTW step 7 of the upgrade is to clear the cache - so you might want to empty the following directories:
g2data/cache/module
g2data/cache/theme
g2data/cache/entity
step 8 is the one that says "Finished!"
Posts: 126
OK the gallery is in debug mode.
When you say
Do you want me to delete ALL the folders and data in those directories?
entity has 1 folder
Module has 72 folders
Theme has 10 folders
Just making sure b4 I do it.
The Voice!
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 4342
Yes, empty them. Anything in the cache directory can be deleted, although recreating the derivative cache is exensive in processing power, so you should keep that one.
I have to go off now - if that doesn't help I'll look up how the new admin login procedure works and get back to you. From a cursory examination it looks like the credentials are being accepted, but the (new for 2.3) admin login timer isn't being reset, I need to research the code before sounding too authoritative though. Anyone else - feel free to jump in with suggestions, and I'll try to have another look in a few hours time.
Posts: 126
Ok deleted those directories and still same thing.
I understand you have to log off. Thanks for trying.
I'm taking it out of debug mode for now. So that the public can still view the gallery.
If anyone else have any suggestions please advise.
The Voice!
Gallery version = 2.3
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating
Posts: 126
Any suggestion here?
The Voice!
Gallery version = 2.3
PHP version = 4.4.1 apache
Webserver = Apache
Database = mysqlt 4.0.27, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating