Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-18084

ImageDetails table not created during upgrade to 3.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Tracked Elsewhere
    • Medium
    • None
    • 3.1
    • None

    Description

      Upon Confluence upgrade to 3.1 or later, admin may discover that the IMAGEDETAILS table does not exist.

      An upgrade misconfiguration is known to can cause this. For example:

      1. Admin created a test Confluence instance of the latest version and new database, then shut it down
      2. Admin imported production database into this new instance
      3. Admin copied production instance's Confluence Home but kept the test instance's confluence.cfg.xml
      4. Admin started test instance in the hope that this will upgrade Confluence
      5. Admin thought wrong! Because Confluence will see that the build number in confluence.cfg.xml is the same as the running Confluence version hence the upgrade is skipped.

      Step 3 is wrong. The confluence.cfg.xml should also be updated to reflect the correct build number (click here for Confluence Build Information).

      Sample error
      2009-12-10 10:57:14,019 ERROR [http-8085-30] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Table 'confluence.IMAGEDETAILS' doesn't exist
       -- referer: http://yourconfluenceurl.com/display/SPACEKEY/PageTitle | url: /pages/removeattachment.action | userName: blah | action: removeattachment | page: 7799349
      2009-12-10 10:57:14,022 ERROR [http-8085-30] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Table 'confluence.IMAGEDETAILS' doesn't exist
       -- referer: http://yourconfluenceurl.com/display/SPACEKEY/PageTitle | url: /pages/removeattachment.action | userName: blah | action: removeattachment | page: 7799349
      2009-12-10 10:57:14,025 ERROR [http-8085-30] [atlassian.confluence.event.ConfluenceEventManager] publishEvent An exception was encountered while processing the event: com.atlassian.confluence.event.events.content.attachment.AttachmentRemoveEvent[source=com.atlassian.confluence.pages.DefaultAttachmentManager@5a0d8695]
       -- referer: http://yourconfluenceurl.com/display/SPACEKEY/PageTitle | url: /pages/removeattachment.action | userName: blah | action: removeattachment | page: 7799349
      org.springframework.jdbc.BadSqlGrammarException: Hibernate operation: Could not execute query; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'confluence.IMAGEDETAILS' doesn't exist
      Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'confluence.IMAGEDETAILS' doesn't exist
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      

      This issue can be prevented had we have CONF-18085 implemented.

      See also CONF-13798

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhartono Roy Hartono [Atlassian]
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: