Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-1707

Failed upgrade from 1.6.1 to 2.0

    XMLWordPrintable

Details

    Description

      It appears that Crucible cannot upgrade directly from 1.6.1 to 2.0, because of the problem database http://forums.atlassian.com/ann.jspa?annID=41

      Error from the log:

      ERROR - Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbControlFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: 
      Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is com.cenqua.crucible.hibernate.CruDBException: Problem upgrading with script /usr/local/crucible-2.0.0/sql/HSQL/upgrade/upgrade_30.sql: 
      SQL script error on line 268: "alter table cru_comment add constraint FKE5A1D10644A616B5 foreign key (cru_review_id) references cru_review;" 
      (Integrity constraint violation - no parent 19, table: CRU_COMMENT in statement [alter table cru_comment add constraint FKE5A1D10644A616B5 foreign key (cru_review_id) references cru_review]), please contact http://www.atlassian.com/support/
      	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)	
      

      A workaround is to upgrade to version 1.6.6, then upgrade to version 2.0. To do so;

      1. Shutdown your Crucible server completely.
      2. Make a backup of your FISHEYE_INST directory
      3. Download crucible 1.6.6 from [www.atlassian.com]
      4. Follow the instructions in the Upgrade Guide to upgrade to this new version.
      5. Next, repeat to upgrade to 2.0

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgchong Ming Giet Chong [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: