Accidental downgrade attempt - now stuck
otherland
Joined: 2008-11-30
Posts: 5 |
![]() |
I accidentally tried to downgrade my gallery installation from 2.3 to 2.2.5 - now I cannot get back to 2.3. Sequence of events: - Next time I visited my gallery, I was presented with the update screen, and proceeded to go through the motions of a supposed update, which was really a downgrade from 2.3 to 2.2.5 - This downgrade proceeded until step 3, where I was presented with the error message "The installed version is newer than the version you are trying to upgrade to. You cannot downgrade G2. Please replace the gallery2 files with files from the currently installed version or later." - I then tried to get back to 2.3 by extracting the tarball of 2.3 again, but whenever I visit the gallery, the updater remembers that I was in the process of the downgrade to 2.2.5. Do you have any hint for me on how to reset the aborted downgrade, so that I can get back to v2.3? Thanks a lot! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
This downgrade proceeded until step 3, where I was presented with the error message then I don't think that anything really happened. backup? Dave _____________________________________________ |
|
otherland
Joined: 2008-11-30
Posts: 5 |
![]() |
Quote:
then Hi Dave, Unfortunately, I don't have a recent backup, since the 'Upgrade' happened without me knowing that it was about to happen. Extracting 2.3 over the gallery installation didn't work either: I extracted 2.3, went to the website again, and startet the upgrade - when I reach step 3 again, it will again claim that I'm doint a downgrade from 2.3 to 2.2.5 - I cannot get past step 3 even after extracting 2.3. To me, it seems like the process has some kind of internal state that still remembers what happened before - does anybody know where such a state might be stored? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Post what your version.dat says. It is in the g2data dir. Dave |
|
otherland
Joined: 2008-11-30
Posts: 5 |
![]() |
Versions.dat contains: 1.3.0 However, in my installation, versions.dat lives directly inside the directory gallery2, which in turn is in /var/www On the same level as versions.dat is albums, modules, themes etc. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Launch phpMyAdmin or similar DB admin tool. SELECT g_parameterValue FROM g2_PluginParameterMap WHERE g_pluginId = 'core' and g_parameterName = '_version'; Then the first line in vesrions.dat should match what the DB says. Dave _____________________________________________ |
|
otherland
Joined: 2008-11-30
Posts: 5 |
![]() |
Result of the SQL query: Quote:
g_parameterValue So, unfortunately it seems like this is just as it should be. Could it be that there is some other persistent indicator (either in the DB or in the file system) that there was an update 'in progress', such that any further visit to the website would lead back to the upgrade screen? Thanks for sticking with me here - I really appreciate your time! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
That entry in the DB is the flag for the version. Anyway here is what I would do: Dave |
|
otherland
Joined: 2008-11-30
Posts: 5 |
![]() |
Oh boy - classic case of 'Problem Between Chair And Keyboard!' Thanks to your prodding me along, I finally found out what happened ... While creating a parallel gallery2 installation as you suggested, I finally looked into my httpd configuration files, and realized that my real gallery installation lives in /usr/share/gallery2, not /var/www/gallery2 - because that's where my RPM install put it. The installation I have been fiddling with for the last one and a half days is some old relic of days before, now obsolete and never even looked at by my httpd. I never realized this, because the first thing I tried when things went sour was extracting 2.3 again - so everything looked new and shiny ... Which basically means all the fixing took place on dead bits; as soon as I tried my very first attempt at a repair on the live installation (extracting 2.3 again over the botched install), everything was OK again. Dave: Thanks again for your patience - I feel a bit silly now ... |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
so everything looked new and shiny ... great! Dave |
|