BugNET

Open source issue tracking & project management

Forums

HomeHomeSupportSupportUpgrading BugNE...Upgrading BugNE...Cannot upgrade to 0.8.221 from  0.7.891.0Cannot upgrade to 0.8.221 from 0.7.891.0
Previous
 
Next
New Post
9/2/2010 5:26 PM
 

The problem lies in the upgrade db scripts (see the detailed log below...I translated the messages to english cause my db is in Spanish).

First, all the scripts asume that all the tables have the BugNet_ prefix (which is not my case)...so I added the prefixes to all the tables and this is what I get:

Current Database Version: 0.7.891.0
 
 
Upgrading BugNET
Upgrade Status Report
Current Assembly Version: 0.8.221.0
Current Database Version: 0.7.891.0
00:00:00.0625000 - Upgrading To Version: 0.8.221.0
00:00:00.0937500 -    Executing Script: 0.8.140.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.140.0.SqlDataProvider.sql 
Error   Cannot drop object 'dbo.BugNet_Roles'. There is a reference in a FOREIGN_KEY constraint
 
 
00:00:05.9843750 -    Executing Script: 0.8.167.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.167.0.SqlDataProvider.sql 
Error   The object name 'dbo.BugNet_StringResources' is not valid. 
 
 
00:00:06.0468750 -    Executing Script: 0.8.185.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.185.0.SqlDataProvider.sql 
Error   Cannot find the object "BugNet_ProjectMilestones" because it doesn't exists or you don't have permissions. 
 
 
00:00:06.0781250 -    Executing Script: 0.8.188.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.188.0.SqlDataProvider.sql 
Error   Cannot find the object "BugNet_ProjectMilestones" because it doesn't exists or you don't have permissions. 
 
 
00:00:06.0937500 -    Executing Script: 0.8.193.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.193.0.SqlDataProvider.sql 
Error   Cannot find the object "BugNet_RequiredFieldList" because it doesn't exists or you don't have permissions. 
 
 
00:00:06.0937500 -    Executing Script: 0.8.221.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.221.0.SqlDataProvider.sql 
Error   Cannot find the object "dbo.BugNet_Projects" because it doesn't exists or you don't have permissions. 
 
 
 
 
Error: The object name 'UserRoles' is not valid.
Upgrade Failed!
 
 
 
Click Here To Access Your BugNET Installation
 
New Post
9/2/2010 5:45 PM
 
Ignacio Lopez wrote:

The problem lies in the upgrade db scripts (see the detailed log below...I translated the messages to english cause my db is in Spanish).

First, all the scripts asume that all the tables have the BugNet_ prefix (which is not my case)...so I added the prefixes to all the tables and this is what I get:

Current Database Version: 0.7.891.0
 
 
Upgrading BugNET
Upgrade Status Report
Current Assembly Version: 0.8.221.0
Current Database Version: 0.7.891.0
00:00:00.0625000 - Upgrading To Version: 0.8.221.0
00:00:00.0937500 -    Executing Script: 0.8.140.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.140.0.SqlDataProvider.sql 
Error   Cannot drop object 'dbo.BugNet_Roles'. There is a reference in a FOREIGN_KEY constraint
 
 
00:00:05.9843750 -    Executing Script: 0.8.167.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.167.0.SqlDataProvider.sql 
Error   The object name 'dbo.BugNet_StringResources' is not valid. 
 
 
00:00:06.0468750 -    Executing Script: 0.8.185.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.185.0.SqlDataProvider.sql 
Error   Cannot find the object "BugNet_ProjectMilestones" because it doesn't exists or you don't have permissions. 
 
 
00:00:06.0781250 -    Executing Script: 0.8.188.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.188.0.SqlDataProvider.sql 
Error   Cannot find the object "BugNet_ProjectMilestones" because it doesn't exists or you don't have permissions. 
 
 
00:00:06.0937500 -    Executing Script: 0.8.193.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.193.0.SqlDataProvider.sql 
Error   Cannot find the object "BugNet_RequiredFieldList" because it doesn't exists or you don't have permissions. 
 
 
00:00:06.0937500 -    Executing Script: 0.8.221.0.SqlDataProvider.sql Error!
 
Error Details
File 0.8.221.0.SqlDataProvider.sql 
Error   Cannot find the object "dbo.BugNet_Projects" because it doesn't exists or you don't have permissions. 
 
 
 
 
Error: The object name 'UserRoles' is not valid.
Upgrade Failed!
 
 
 
Click Here To Access Your BugNET Installation

You don't have to change the script.  The 0.8.140 script handles converting all of the old 0.7 tables to version 0.8 with prefixes.  This works pretty well but occasionally because the lack of foreign keys on the old tables , there are problems with data that may cause some errors.  If you roll back and just try the upgrade normally what error do you get?


Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
9/6/2010 5:24 AM
 

This is the complete error I get:

 

 

Msg 547, Level 16, State 0, Line 2
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_BugNet_Issues_aspnet_Users2". The conflict occurred in database "bugnet", table "dbo.aspnet_Users", column 'UserId'.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_ProjectCustomFieldValues" because it does not exist or you do not have permissions.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_IssueNotifications" because it does not exist or you do not have permissions.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_IssueHistory" because it does not exist or you do not have permissions.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_IssueComments" because it does not exist or you do not have permissions.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_IssueAttachments" because it does not exist or you do not have permissions.
Msg 208, Level 16, State 1, Line 4
Invalid object name 'BugNet_RelatedIssues'.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_IssueWorkReports" because it does not exist or you do not have permissions.
Msg 1088, Level 16, State 11, Line 3
Cannot find the object "BugNet_ProjectMailBoxes" because it does not exist or you do not have permissions.
Msg 4701, Level 16, State 1, Line 3
Cannot find the object "BugNet_UserProfiles" because it does not exist or you do not have permissions.
Msg 3902, Level 16, State 1, Line 2
The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.
 
New Post
9/7/2010 10:22 AM
 

Just thought i'd throw my two cents in here.  I also struggled with getting the database scripts to complete properly, until i realized BugNET was attempting to use integrated authentication to access the database when i thought i had configured the app to use sql server authentication.  In my case, since my intent was to use sql server authentication and provide the userid/pwd in the connection string in web.config, I had given that sql server user the keys to the kingdom access-wise but no such permissions were given on the windows account running the app.  Bottom line: I'd double-check your connection string and be sure that, given your means of authentication defined in the connection string, that user has appropriate permissions in the database.

 
New Post
9/7/2010 12:39 PM
 

Thanks very much for the answer! The thing is that I opened the SQL Management Studio, logged in as sa and tried to run the script manually and I got the same errors that the install page before....so in this case I don't think is related to permissions.....

We have been using bugnet from the last 3 years and in my company they are very happy with it....it's a pity we cannot take advantage of all the new features in the 0.8x release!

 
Previous
 
Next
HomeHomeSupportSupportUpgrading BugNE...Upgrading BugNE...Cannot upgrade to 0.8.221 from  0.7.891.0Cannot upgrade to 0.8.221 from 0.7.891.0


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.