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/29/2010 1:06 PM
 

Thanks. I'm being particularly dense

The only connexion string I can see here is the "BugNet" one, which of course points to my defects database (SQL Server 2008 etc etc). I copied this from my previous install and it's definitely correct. I thought you were using something else for membership/ roles. I just fired up MSSMS and the BugNet database (same connexion string...) doesn't look like it's got asp.net membership stuff in it to me. I don't have the tools to check myself, but surely the membership database is separate.

This error looks like it's *membership* database related. I followed the upgrade instructions, but there's nothing there about copying the user database over to the new install, so I can't see how those instructions could work. Hence my earlier question: does anyone know where the membership/ roles database for BugNet lives? If I can find out where that is, then I can move it from the old installation to the new, and then it may work. I think there must be something I'm missing, or something which is missing.

I note that it says: "[delete all the old stuff except] Your App_Data folder (if you are using sql express)". I'm still not using SQL express, but is this statement imprecise? Is that where the membership database lives? I don't think that's it as I went back and tried to dick with this, but it may have been that by then it had written stuff to the web.config and got its nicks in a knot already.

Hence my question: where is the membership database because the installation script is presumably looking for it. So am I.

 
New Post
4/30/2010 6:23 AM
 

Make sure the connectionStringName="BugNET" property in the membership and profile section correspond to your connection string. If you have renamed it make sure they line up with the names otherwise the membership uses the connection string in the machine.config from the default .net configuration.


Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
4/30/2010 6:39 AM
 

Thanks - I checked those but they're all BugNet. It's a bank-holiday weekend here so I may be able to have another go at this over that without upsetting anyone and maybe I can make it work.

Some thoughts:

(1) Do I have to move the "installation date" setting from the old web.config before running the upgrade scripts? I see no specific instruction on this, and as that was written at the time of last installation I did not move it initially. Is this important?

(2) I do not have SQL Server Express. Do I need to have anything in my App_Data folder or not? The instructions are ambiguous on this point, but it takes me several hours for each backup/ restore cycle so I can't really test it both ways and be sure that this matters.

I'm following the instructions, but it's not working => either I missed an instruction, or there's something implied there which I don't know. Has anyone else upgraded this following the instructions and if so were there anythings you had to do in addition to the instructions?

Are there any ways other than by the instructions to do this upgrade?

 
New Post
5/1/2010 4:22 AM
 

Ok, the upgrade instructions now say that (1) is required, which is good, as that was missing before so that could have been my 1st problem. So I started once more from scratch, and followed the instuctions precisely again. This time... I get the same error. So I'm going to have to go into that InstallCommon.sql script to see if I can find what it's trying to do.

I assume these scripts are being run against the BugNet databaase: there is one common database used for roles, membership and defects. I'll open the thing up and see if I can run the scripts by hand - I may find out why it's barfing that way as the error below isn't much use.

Ok, now I see the aspnet membership stuff in there, ok, so it's all here.

As below, I think this could be a permissions issue - my SQL Server 2008 database is running on Rackspace cloud.

Is this what's causing my problem though - it doesn't look anything like the BugNet error (bottom).

No, that's not it - I backed up the database, shifted it to a test machine, restored it there to a clean instance, then pointed the connexion string at that, and wham... same error from the install and same error from installcommon.sql. So why is

I'm assuming there's no way I can just export the database contents as a flat file, then put in a completely new install, then import again from that flat file? There are hundreds of entries so it will take me many weeks to type them in (on the other hand, it's taking a while trying to make it work).

-- Run manually from MS SQL SMS

---------------------------------------
Starting execution of InstallCommon.SQL
---------------------------------------

(197 row(s) affected)
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.

(1 row(s) affected)

(1 row(s) affected)
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
----------------------------------------
Completed execution of InstallCommon.SQL
----------------------------------------

-- error from BugNet install

00:00:00.0009765 - Installing Version: 0.8.186.0
00:00:00.0009765 - Installing Membership Provider:
00:00:00.0009765 - 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
5/1/2010 6:14 AM
 

Not sure what to try next. So my connexion string is (changed to protect the guilty):

add name="BugNET" connectionString="Server=BB-PC\SQLEXPRESS;Database=BugNet;User ID=BugUser;Password=233!flart.wA1ng;"

So let's see where that's used in the web.config, in case I'm missing something. Searching for the string, I find:

DataProvider defaultProvider="SqlDataProvider" providers add name="SqlDataProvider" type="BugNET.DataAccessLayer.SqlDataProvider, BugNET" connectionStringName="BugNET"
Looks ok, all cases match etc. That's used before it's declared, but that should not matter I think.

Next up, the membership provider.

membership defaultProvider="ExtendedSqlMembershipProvider" providers clear/ add name="ExtendedSqlMembershipProvider" type="BugNET.Providers.MembershipProviders.ExtendedSqlMembershipProvider, BugNET.Providers.MembershipProviders.ExtendedSqlMembershipProvider" connectionStringName="BugNET"

That points to the same thing, cases match etc.

And here we have the role provider:

profile enabled="true" automaticSaveEnabled="false" defaultProvider="MyProfileProvider" providers clear / add name="MyProfileProvider" type="Altairis.Web.Providers.SimpleSqlProfileProvider, Altairis.Web.Providers" connectionStringName="BugNET" tableName="BugNet_UserProfiles" keyColumnName="UserName" lastUpdateColumnName="LastUpdate"

Again, it's all good as far as I can tell. Hmm.

So let me stomp on my connexion string, I'll replace the database name with garbage.... precisely the same error comes up. So maybe this error means:

"for some reason I cannot ascertain I cannot find your database from that connexion string. It's not the user name or password, it's something else which is stopping me from connecting to the thing. "

That's odd though, as I can connect neither to the database on Rackspace nor to my local copy of it. I could make a typing error with one, but both is highly unlikely.

 
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.