Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Problems Updating From 2.2.6 to 3.0.4, errors when running upgrade script

web-app

Hi,

I'm trying to update our Gemini installation from 2.2.6 to 3.0.4.

Per the Migration Guide, I execute

CreateTables.sql

CreateViews.sql

CreateProcs.sql

When I run CreateTables.sql, I get the following warnings…

Warning: The table 'geminicustomfielddefinitions' has been created but its maximum row size (8460) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

Warning: The table 'gemini
customfielddata' has been created but its maximum row size (8064) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

 

(1 row(s) affected)

 

Warning: The table 'geminicustomfielddefinitions' has been created but its maximum row size (8460) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

Warning: The table 'gemini
customfielddata' has been created but its maximum row size (8064) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

Warning: The table 'geminicustomfielddefinitions' has been created but its maximum row size (8460) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

 

(1 row(s) affected)

 

Warning: The table 'gemini
customfielddata' has been created but its maximum row size (8064) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

 

(1 row(s) affected)

 

 

(2 row(s) affected)

 

Warning: The table 'geminicustomfielddefinitions' has been created but its maximum row size (8460) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

Warning: The table 'gemini
customfielddata' has been created but its maximum row size (8064) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

 

What is the impact of those warnings?

 

Disregarding the previous Warnings, I run Upgradev3-0-Step1.sql and get the following errors...

 

Server: Msg 547, Level 16, State 1, Line 219

INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'gemini
versionsprojectidfk'. The conflict occurred in database 'Gemini', table 'geminiprojects', column 'projectid'.

The statement has been terminated.

 

(0 row(s) affected)

 

Server: Msg 547, Level 16, State 1, Line 225

INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'gemini
componentsprojectidfk'. The conflict occurred in database 'Gemini', table 'geminiprojects', column 'projectid'.

The statement has been terminated.

 

(0 row(s) affected)

 

 

(23 row(s) affected)

 

 

(0 row(s) affected)

 

 

(0 row(s) affected)

 

 

(0 row(s) affected)

 

 

(1 row(s) affected)

 

 

(0 row(s) affected)

 

 

(0 row(s) affected)

 

 

(0 row(s) affected)

 

Server: Msg 547, Level 16, State 1, Line 260

INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'gemini
issuesversionidfk'. The conflict occurred in database 'Gemini', table 'geminiversions', column 'versionid'.

The statement has been terminated.

 

At this point, I go to my gemini
issues table to validate that the issues have migrated, and I find 0 records. So it seems as if the previous errors are stopping the migration somehow because there are no issues in the gemini_issues table.

 

I continue updating with the second upgrade script, and then try to logon to Gemini. Things look ok, no exceptions or anything, but I have 0 issues in any of my projects. Ouch.

 

Any ideas? For obvious reasons I had to revert to my backup in order to maintain 2.2.6 functionality while I figure out why I can’t update to 3.0.4, so any help would be welcome as I would love to start using v3 and its new features.

 

Thanks,

Darren

dnezamfar
· 1
dnezamfar
Replies (1)
helpful
0
not helpful

You can ignore the custom fields table warning.

As for the errors, sSeems like you have a few versions with project id that does not exist in the projects table. You will have to exclude those versions from the upgrdae. You also seem to have the same problem with components.

The last problem is an issue with a version id that does not exist in the versions table.

You will have to fix all these before the upgrade.


Mark Wing
· 9108
Mark Wing