Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Recovering from failed 7.3.4 upgradeRecovering from failed 7.3.4 upgrade
Previous
 
Next
New Post
12/1/2014 1:08 PM
 

I really went through the wringer yesterday with a failed upgrade from a 6.x release to 7.3.4.  I am looking for suggestions of things to examine to build confidence that the site is healthy now and perhaps some discussion on what can be done to improve the upgrade experience.

I tested my upgrade several times in my own local development environment.  There were a few minor issues that were easily fixed with a little Google-fu, for example the App_Code XML contents needing to be cleared out, and some issues with mimetypes  and assembly reference version mapping in my web.config.  No big deal, I was ready to push the upgrade button in production, or so I thought.

What got me was the SQL2008 dependency.  My local environment is on SQL2014.  Our site is hosted at PowerDNN and has been for years, since about 2008.  It was still on SQL2005.  After the first few SQL dataprovider migration scripts completed everything started erroring out and I knew I was in for some work.

My successful experience testing the upgrade locally made me overconfident.  I did not have a fresh backup.  I backed up the database a few days ago (Nov 27) because that is a fairly painless process, but had not bothered taking a recent download of the file system because it is a couple GB, about 18,000 files and takes a while to ftp down.  My bad.

I had PowerDNN migrate our account to newer infrastructure with SQL2008.  That took 5 hours of downtime to complete, which was disappointing.  Then I tried and failed to resume the upgrade after doing a fresh unzip of the upgrade zip.  The upgrade page was just blank, it never even tried to do anything.  So I pulled the trigger on asking PowerDNN to restore their backups of my site from Nov 29 (the night before).  That did not go so well.  They took over 12 hours to complete this task, twice restoring incorrect backups.  First they restored a backup from April 2013 (!) and the second time a backup from Nov 13 2014.  I've had some good conversations with them about this -- they fully recognize this is not up to their standards for service excellence.

After the second incorrect backup restore, at about midnight after working on this since 8:00 AM, I started to really scratch my head and think of ways to get this thing upgraded on my own.  I wasn't sure PowerDNN would ever be able to restore a backup from Nov 29 and I wasn't excited about being up all night waiting for the third attempt to restore a backup.  I thought since what failed was the SQL provider migration scripts, maybe the file system was OK-ish and the upgrade might run if I could just get it a clean db from before any upgrade tasks ran.  I had a db backup from Nov 27, and given it was Thanksgiving weekend there were minimal content changes on the site between Nov 27 and Nov 30.  I checked the Blog_Entries and HtmlText tables which are the bread and butter of content on our site and found only one update made between those days that wasn't in my Nov 27 db backup.

This worked fine.  I think.  No errors reported and all of my post-upgrade maintenance proceeded with no indication of any problems in the upgraded system. 

Question 1:  hearing all of this do have any further suggestions on how to examine the system to evaluate its health and build confidence that the upgrade was a success, given the slightly unorthodox state it was upgraded from?  Of course I've been keeping an eye on the Event Viewer and it is pretty clean, and I'm doing a lot to exercise various features of the site to be sure they are working, but are there other places to look for a canary in the coalmine?

Question 2:  What can be done to improve the upgrade experience?  I can't help but wonder why the DNN upgrade process can't perform a few basic checks to determine what database version you are on.  It would have been nice if the upgrade just recognized it was running on SQL2005 and stopped before changing anything.  I've opened a feature request in Jira to this end.  I know the mantra is "backup before upgrading", and I've seen good advice that holds you should backup before installing any extensions as well.  It seems like more could be done to help prevent folks from shooting themselves in the foot.  My bad for getting into this situation without a fresh backup, but I think there is an opportunity to improve the software here too.

 
New Post
12/2/2014 1:56 AM
 
Hmmm ... I thought powerdnn was still doing nightly backups of all hostings ?
Must check into that one myself ...
 
New Post
12/2/2014 10:35 AM
 

They do nightly backups.  I've had the database backup pulled before and it took about 15 minutes.  For some reason pulling the database plus file system takes hours.  

The rough part of this was the mistakes in pulling old backups, and the lack of awareness that they had pulled the wrong data.  I was quite surprised they even had a backup still from April 2013.  I was given to understand they only kept the last 5 days.  They eventually did get the right backup on the third try, over 12 hours after the initial request.

 
New Post
12/2/2014 11:30 AM
 

There are a couple things that should be addressed. First, if you are performing a major upgrade (6 to 7) it is best to familiarize yourself with breaking changes etc from the release notes. Also, scan the forums for any posts relating to the upgrade. A little research will go a long way in helping avoid issues. Also, pay attention to the recommended upgrade path to see if you should perform multiple upgrades in the process.

I have many sites at PowerDNN and there are two different approaches that I take when upgrading to a new version.

1. Pay them to do the upgrade. I think it is $25 for them to perform the upgrade on your behalf. They copy the site to another instance and perform the upgrade, then let you test. I haven't done it in awhile but the few times I did, it was great.

2. Grab a fresh backup and restore locally (i typically open a ticket for this rather than use the control panel). Perform your upgrade in your local environment, then push the upgraded site files and database backup to PowerDNN (I usually push it to the private folder via FTP). Open a ticket and have them restore the new website (make sure that they change the portal alias table). To do this, your SQL versions must match. So if you restore your DB locally on 2014, make sure it is compatible with 2008 (New database, 2008 compatibility). 

Option 2 is the one I do the most. However, if you have a site with a lot of user generated content, you will either need to do a content freeze or compare data before deploying again. 

And lastly, another tool that may help is Evotiva

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Recovering from failed 7.3.4 upgradeRecovering from failed 7.3.4 upgrade


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out