BugNET

Open source issue tracking & project management

Forums

HomeHomeSupportSupportUpgrading BugNE...Upgrading BugNE...1.67 -> 1,86 upgrade SQL error1.67 -> 1,86 upgrade SQL error
Previous
 
Next
New Post
4/27/2010 6:48 AM
 

As below. I get a subsequent set of errors of a similar nature after this one ans it bangs on through the other scripts. Anyone any ideas? This is an upgrade, and there is an existing BugNet user database.

Version: 0.8.186.0

Installation Status Report

00:00:00.0009766 - Installing Version: 0.8.186.0

00:00:00.0009766 - Installing Membership Provider:

00:00:00.0009766 - Executing Script: InstallCommon.sql

Error!

Error Details

File InstallCommon.sql
Error An attempt to attach an auto-named database for file M:\websites\BugNet_186\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
 
New Post
4/27/2010 7:03 AM
 

There is important information in your previous web.config, use a file comparison tool such as winmerge and move over the connection string, installation date app setting and the machine key to the new web.config.

If this information is missing the install will think you are trying to create a new install instead of an upgrade.


Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
4/27/2010 7:35 AM
 

The installation date : I noted that was not in there when I prepared web.config initially. I left it out as Iassumed that's what the program writes into there. I think you are saying that I should put that in, then run the install script. I will try that.

  1. Ok, I put the installation date back to what it was in the old version, no success with that.
  2. I checked the machine key and it was wrong but I corrected it and no success again.
  3. The database connexion string is correct.

Can you tell me what it's trying to do - it looks like it's the membership database it's using, and I'm using the stand-alone one (BugNet built in), so I'm not sure why that should be an issue. I will try to go back to 1.67 (yes, I do have backups of everything), but I'd rather figure out what this is if I can.

Does anyone know: will this failed install have trashed my defects database - do I have to restore that from backup because of this or not?

 
New Post
4/27/2010 8:47 AM
 

I rolled the site back to 1.67, and it starts up ok, so that still works. I can log in and the defects are all still there, so the good news is that it did not stomp on me defects database. Phew.

I guess I can copy my entire install, duplicate the database and then thrash this problem out on a sacrificial system, but if anyone knows anything more than that it would help. I had a look at the sql script in question but I'm not sure what it's working with. Where is the user database stored? I assume that's the ExtendedSqlMembershipProvider, but I can't see what/ where that is, data wise. Is it an mdf file, and if so, where is it? My connexion string points at the defect database, not the membership/ roles provider, so it's nothing to do with that. Where physically does my membership databse live - I followed the instructions and so did not keep the App_Data thing as I don't use SQL Server Express. But there is something in there - what's that for? I'm just thinking that it needs to be able to see my user database to use it, and how's it going to do that?

What's the significance of "installation date"? This is written into the web.config by the program (thereby ensuring you can't run the install on medium trust). So I have to run it on a test machine (under full trust), then deploy to live once the install is done. I don't see why that should be an issue, but is this date used as a flag of some sort, and if so, what does it control?

Can I run the sql script directly from MSSS and see if I can figure out what it's up to from there? I'm sure my install is good (I documented what I did last time, and repeated the steps this time).

 
New Post
4/29/2010 7:31 AM
 

It looks like you may have missed the config changes for the connection strings for the membership provider.


Davin Dubeau

follow us on twitter facebook users group google plus
 
Previous
 
Next
HomeHomeSupportSupportUpgrading BugNE...Upgrading BugNE...1.67 -> 1,86 upgrade SQL error1.67 -> 1,86 upgrade SQL error


Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.