Best/easiest way to downgrade to previous version after failed upgrade

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Tue Feb 20, 2018 1:48 pm

Trying to upgrade from 3.2.0 to 3.2.2 completely screwed the forum up so I need to go back to the last working version. The database update failed and there doesn't seem to be a workaround, we've been offline for a few hours now and I need to get the forum back online.

Can I just use the 'old' folder from inside the 3.2.2 install directory to overwrite the already modified files?
I tried using a previous install but it wouldn't let me do that as it recognized already updated files.

What about the database, would that be partially updated or still on 3.2.0?

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68022
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by KevC » Tue Feb 20, 2018 2:03 pm

Restore the back ups you should have made before you started.
buksida wrote:
Tue Feb 20, 2018 1:48 pm
and there doesn't seem to be a workaround,
To be fair it's not long since you posted. It's not like there's a 5 page topic with multiple things being tried and failing.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Tue Feb 20, 2018 2:29 pm

So the 'old' folder that the install package makes when it updates is not useable?

Is there somewhere I can download the 3.2.0 package and install that from scratch?

Will it work with the current database even though the upgrade failed?

I'm just trying to get back online asap.

Thanks.

User avatar
warmweer
Registered User
Posts: 972
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by warmweer » Tue Feb 20, 2018 2:39 pm

buksida wrote:
Tue Feb 20, 2018 2:29 pm
1. So the 'old' folder that the install package makes when it updates is not useable?

2.Is there somewhere I can download the 3.2.0 package and install that from scratch?

3. Will it work with the current database even though the upgrade failed?

I'm just trying to get back online asap.

Thanks.
1. Perhaps yes, perhaps no. Nobody here knows what's inside that 'old' folder (whether it's complete or not)

2. Probably the same place you downloaded 3.2.0 in the first place. Dit you look at the annoucement page: viewtopic.php?f=14&t=2399606

3. That depends on what has changed in the database. You could always install a new fresh 3.2.0 and compare the failed update database with the clean 3.2.0
A bug is a feature that hasn't made it to the manual (yet)

User avatar
Lumpy Burgertushie
Registered User
Posts: 64475
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by Lumpy Burgertushie » Tue Feb 20, 2018 5:46 pm

phpbb does not make a "old" folder when it updates. so no idea where that came from.

if you did not make a complete backup of your board ( files and databaes) before you started then you really need to complete the update.

this should not be a problem.

you replace all the old files with new ones except for the config.php file. then you run the database update from the folder named install and you are done.

https://www.phpbb.com/support/docs/en/3 ... ating-32x/

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Wed Feb 21, 2018 12:48 am

Lumpy Burgertushie wrote:
Tue Feb 20, 2018 5:46 pm
phpbb does not make a "old" folder when it updates. so no idea where that came from.
Inside the install folder after the auto update package has run there are two folders 'new' and 'old'. I presumed the old was the pre-modified files.

Attempting the complete update now - hoping that the DB hasn't been messed up.

I presume I will need to re-do all of my css edits, layout and sidebar addons, ads and banners, and update all of the extensions also?

This is such an arduous way of updating software, wordpress does it automatically without you even having to login - this has taken me over a full day to get this fixed!

User avatar
Lumpy Burgertushie
Registered User
Posts: 64475
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by Lumpy Burgertushie » Wed Feb 21, 2018 1:05 am

I know that the autoupdate method is still suggested in the admin panel and maybe even on the download /kb pages. however, it is not the best way to update a 3.1 > board. since the change to extensions there is no longer any reason for most users to be editing any of the php files.
even the standard style files don't have to be edited, you simply create your own custom style and update it separately.

if you follow the standard way of updating it should not take more than an hour or so at the most.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Wed Feb 21, 2018 1:28 am

I've just done this to the letter: https://www.phpbb.com/support/docs/en/3 ... ating-32x/

Still get the same DB errors.

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Wed Feb 21, 2018 3:07 am

Just tried it with the full 3.2.1 package and STILL get the same error when it comes to updating the DB.

Please can someone suggest how to get the database connected to the software again? ???

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Wed Feb 21, 2018 5:37 am

It looks like the code on 3.2.2 auto update is flawed and the process should not be attempted. (There are no end of users with problems with it posting in this section). No suggestion worked indicating that there isnt one, thanks to those that replied though.

The ONLY way I managed to get the forum back was to delete the entire file structure, reboot the server, and re-upload 3.2.0 from scratch - which connected to the database as it did before. 16 hours of downtime wasted.

I will NEVER update this software again.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68022
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by KevC » Wed Feb 21, 2018 9:03 am

You probably didn't clear the cache so you were looking at cached pages and processes rather than the new ones.

Delete everything in the /cache folder (except index.htm and htaccess) and also the /store/install_config.php file and it should be fine.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Wed Feb 21, 2018 10:41 am

I must have cleared that cache and store folder at least 18 times. If it was as simple as that all the other people wouldn't have had the same issue (and most of their threads remain unresolved too).

I used different browsers and machines, and reinstalled using 3.2.2 auto update - 3.2.2 full package - 3.2.1 full package. And finally the only thing that worked, a complete file system deletion and a fresh install with 3.2.0.

So that is where the forum must remain for ever (unless I want another 18 hour outage and no solutions whatsoever in fixing it).

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68022
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by KevC » Wed Feb 21, 2018 10:52 am

Did you do an offline test update first?

The one topic you've linked to has a user that hasn't come back for 2 weeks so the assumption is they got it to work.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
John connor
Registered User
Posts: 1582
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by John connor » Wed Feb 21, 2018 1:16 pm

You always, ALWAYS make a backup before you update. And you should make periodic backups. Since the database was updated it will be hell to revert. If you have a backup of the database and the files, rewrite your public_html back and update the database with phpmyadmin from your backup.

If you don't have a backup your are SOL pretty much. Best of luck.

buksida
Registered User
Posts: 301
Joined: Thu Feb 04, 2010 9:11 am

Re: Best/easiest way to downgrade to previous version after failed upgrade

Post by buksida » Thu Feb 22, 2018 1:34 am

KevC wrote:
Wed Feb 21, 2018 10:52 am
The one topic you've linked to has a user that hasn't come back for 2 weeks so the assumption is they got it to work.
Or they did what I did and went back to a previous version that did work.

Yes, I had backups - without them this "upgrade" would have destroyed ten years of forum.

This forum should be about help and support so when someone else has this problem and reads these threads (hopefully before upgrading), they'll know that the only way out of it is a fresh install with an earlier version.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 30 guests