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...Help Rescuing a Failed Upgrade DatabaseHelp Rescuing a Failed Upgrade Database
Previous
 
Next
New Post
1/13/2011 6:40 PM
 

This is a plea to the DNN community to help me recover my database from a failed DNN upgrade.

 

I attempted a 4.9.5 upgrade to 5.6.0 and it failed. Because of the issues I removed all the 5.6.0 files from my website and replaced them with the original 4.9.5 versions. I then emailed my webhost to restore my SQL Database back to the last backup they had taken.

 

I was then informed by them that they only provide this service when they have a problem with their own equipment. Needless to say I was absolutely stunned by this revelation. I know they have a backup because I did check.

 

I have zero confidence in them providing any form of customer service, and come the weekend I will probably loose all hope of restoring my database because they only keep two weeks anyway.

 

So let that be a lesson to all those with webhosts. Don’t assume they have a backup that you can use!!!

 

I now need to try and somehow recover my site and re-attempt the upgrade, but this time stopping somewhere in-between 4.9.5 and 5.6.0. What do I have to do to make the database forget I tried to apply DNN 5.6? I know there are records within the version table, but what other things will I have to do?

 

As far as my DNN installation is concerned it’s pretty simplistic, with only HTML and FAQ modules being used, plus Forums.

 

Can anybody help me dig myself out of this hole, and perhaps suggest an alternative DNN web host that provides excellent customer service?

 

Many thanks

 

Steve

 
New Post
1/13/2011 8:56 PM
 
That is tough luck but also a good warning to others to not rely on a hosting provider's database backups should a DotNetNuke framework or module upgrade not be successful.

Because of the large number of changes in database structure between DotNetNuke 4.09.05 and 5.06.00, the only hope of restoring the site to 4.09.05 is having the database backup taken prior to the failed upgrade.

I see two possible (but potentially time consuming or costly) solutions:

1) Although you did not indicate the issues and errors raised during the failed upgrade, you may  be able to work through those errors to end up with a properly running 5.06.00.  This approach will only be a possibility if you have BOTH a backup of the filesystem and the database following the failed upgrade to 5.06.00. You indicated that you had removed all the 5.06.00 files from the webiste following the failure. Do you still have ALL of those files?

2) If the site is relatively simple with few user accounts, it may be possible to create a new install of DNN either 4.09.05 or 5.06.00 (depending on whether  what versions of the FAQ and Forum modules were previously installed and if upgrades to the HTML, FAQ, and Forum modules were also attempted and were successful or not) then with direct access to the original and new databases, manually port as much data as possible to the new site. User accounts and user permissions will be harder to port across and will typically require all passwords to be reset. This approach will require direct access to or a backup of the database taken following the failed 5.06.00 upgrade.

You will have to weigh the availability of the above mentioned backups, whether your SQL skills and understanding of DotNetNuke database structure are up to the task vs the cost of hiring some one to attempt to fix the issues or port data, and the third option which is to just start over and buid a new site using whatever offline or printed resouces you may have.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/14/2011 3:14 AM
 
Hi William

The problems I had with the upgrade were around the Telerik.Web.UI.dll not being in the bin folder and a token mismatch in the web.config

I did fix these at the time, but when I went into the site I was unable to edit any html module content and going into modules to check version numbers also failed. It was at this point I decided to write off the upgrade attempt.

I read your comments about returning to 5.6.0 and trying to fix the problems at hand, and I'm guessing this is my best option. I did not keep the file system from 5.6.0 I always assumed I could just reapply it from the 5.6.0 upgrade package. Will I not be able to do this?

Alternativly can I not reverse the scripts that were applied? I don't need to get the site working again in 4.9.5 I just need to do enought to allow me to reupgrade, but this time stopping somewhere inbetween, before re-attempting the 5.6.0 upgrade.

Many thanks

Steve
 
New Post
1/14/2011 6:05 AM
 
I've been through this one myself, before and you have my deepest sympathy. I recovered a lot from Google's page cache.

They warn us to make backups, but nobody warns us to check out how the backup/restore process works with our particular web host. When we are assigned a database, we get access as dbowner, which gives permission to backup databases but not to restore databases.

For years, I made dutifully my weekly full and half-daily incremental backups, nevver needing to restore any backup. When I finally performed my first upgrade, the upgrade failed and so did the restore.

Professional web portals surely have their backup policies well thought through. But to upstart portals in the community section, I would like to give this warning: don't settle for anything less than a solution that gives you a working copy on your home computer. If you want to test a new version, you will have a better idea how it will behave in the real world when you test it on a real copy of your website.

If your web host cannot provide you that, go shop for another provider.

____________________________________
The one-eyed in the land of the blind.
 
New Post
1/14/2011 1:32 PM
 
Steve . . .

Without a backup of the files made after the failed upgrade to 5.06.00 (particularly web.config), any chance of getting a 5.06.00 site working is made all the more difficult. During an upgrade (especially when jumping through multiple versions), some changes are also made to configuration files, providers are installed or removed, module installations are upgraded, etc. so that the files and file structure is not necessarily the same as would be obtained from a re-application of the 5.06.00 upgrade package (which cannot be done now without being able to restore the 4.09.05 database).

It is not possible to reverse the SQL data provider scripts that were applied during the 05.06.00 upgrade. That is especially true due to very large number of changes in the database schema that have occurred since the 4.09.05 and early 5.x versions.

Although your options are even more limited without a backup of the file system following the failed 5.06.00 upgrade, I would attempt the following general outline of steps:

1. Create a localhost install of 5.06.00 and install the same version of all modules which existed on the production server. Ideally it should use the same version of IIS and ASP.Net that were running on the live server at the time of the failed upgrade.
2. Transfer critical sections of the backed up 4.09.05 web.config file to the new web.config file - these would include the machineKeys, objectQualifer, some appSettings but not connection strings as those will have to be delt with later.
3. Restore the backup of the 5.06.00 database over the newly created 5.06.00 database and if necessary re-add the same database user login as the new localhost site was using prior to the restoration.
4. Manually add a new portal alias for the localhost site to the PortalAlias table of the database
5. Resolve all issues that may result with the operation of the localhost site - likely there will be many.
6. Change the connection strings in web.config to those needed for the live server.
7. Backup both filesystem and database from localhost.
8. Restore both filesystem and database backups to live server.
9. Extensively test the migrated site and fix any remaining issues.

Be sure to check with your current host to verify that they will restore a database that was not originally created on their SQL server. GoDaddy and several other hosts will NOT.

The above procedure is not for the inexperienced and will be either very  time consuming and/or costly if you have the work done for you.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Help Rescuing a Failed Upgrade DatabaseHelp Rescuing a Failed Upgrade Database


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