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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN Upgrade CrazinessDNN Upgrade Craziness
Previous
 
Next
New Post
12/9/2010 12:13 PM
 

We recently received a SQL Server backup and a backup for site files to setup on our testing environment.

After setting everything up correctly, pointing the web.config file to our database server, and adding our IP to the PortalAlias table, I browse to the site to find that it needs to upgrade?  The upgrade process reports the following:

Current Assembly Version: 5.01.00
Current Database Version: 04.09.04

Note:  When I browse to the LIVE site and login as host, the host settings state that the version of DNN is 04.09.00.

If I run through the upgrade process on our testing environment, I receive the following

Upgrade Status Report

00:00:00.015 - Upgrading to Version: 05.01.00
00:00:00.171 -   Executing Script: 05.00.00.SqlDataProvider Success
00:00:01.875 -   Executing Script: 05.00.01.SqlDataProvider Success
00:00:02.218 -   Executing Script: 05.01.00.SqlDataProvider Error! (see 05.01.00.log for more information)
00:00:03.750 -   Executing Application Upgrades: 05.00.00 Success
00:00:06.969 -   Executing Application Upgrades: 05.00.01 Success
00:00:06.984 -   Executing Application Upgrades: 05.01.00 Success
00:00:08.891 -   Cleaning Up Files: 05.00.00 Success
00:00:08.891 -   Cleaning Up Files: 05.00.01 Success
00:00:08.891 -   Cleaning Up Files: 05.01.00 Success
00:00:08.891 -   Updating Config Files: 05.00.00 Success
00:00:08.891 -   Updating Config Files: 05.00.01 Success
00:00:08.891 -   Updating Config Files: 05.01.00 Success
00:00:08.891 - Performing General Upgrades
00:00:09.828 - Installing Optional Modules:
00:00:09.828 - Installing Optional Skins:
00:00:09.828 - Installing Optional Containers:
00:00:09.828 - Installing Optional Languages:
00:00:09.828 - Installing Optional Providers:
00:00:09.828 - Installing Optional AuthSystems:
00:00:09.828 - Installing Optional Packages:

Upgrade Complete

 

After upgrading the site, if/when I can log in as Host, the site states that it is running DNN 04.09.00.

Has anyone seen this before?

 
New Post
12/9/2010 2:28 PM
 
please post content of /providers/dtaproviders/sqldataprovider/05.01.00.log. Why aren't you upgrading to 5.1.4 or 5.2.3 which are known to be more stable?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/9/2010 2:49 PM
 
Thanks for the quick reply Sebastian,

Ideally we are only trying to get the site up and running before attempting any upgrade... and there in lies the problem.  We were told we were given backup files of the current site and database, but when we use those files to re-create the site, we are faced with an automatic upgrade procedure...

Here is the contents of the 05.01.00.log file.

System.Data.SqlClient.SqlException: Table 'EventLog' already has a primary key defined on it.
Could not create constraint. See previous errors.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)



/* Change primary key of EventLog Table */
/****************************************/

IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'dbo.EventLog' AND COLUMN_NAME = 'LogEventID')
 BEGIN
  --Note this name does NOT have an object qualifier in 4.x upgrades
  IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'PK_EventLogMaster'))
   ALTER TABLE dbo.EventLog
    DROP CONSTRAINT PK_EventLogMaster

  --Note this name does have an object qualifier in 5.x installs
  IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'PK_EventLogMaster'))
   ALTER TABLE dbo.EventLog
    DROP CONSTRAINT PK_EventLogMaster

  ALTER TABLE dbo.EventLog
   ADD LogEventID bigint NOT NULL IDENTITY (1, 1)
   
  ALTER TABLE dbo.EventLog
   ADD CONSTRAINT PK_EventLogMaster PRIMARY KEY CLUSTERED ( LogEventID )  
 END





 
New Post
12/9/2010 2:58 PM
 
this error may be ignored, but if the site still states 4.9.5, there are problems to write into file system or database. please check permissions.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/10/2010 10:56 AM
 
Sebastian, I've checked the site files and the database user and all permissions seem to be in order.
I'm going to continue working on this, but at the moment I'm left scratching my head... None of us have seen behavior like this before...

Thanks again for your feedback.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN Upgrade CrazinessDNN Upgrade Craziness


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