Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7389

Unable to start the wiki with a empty DB or an old DB (without version)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.4-rc-1
    • 3.4-milestone-1
    • Old Core
    • None
    • All fully transactional database, except at least MySQL
    • Easy

    Description

      At startup, the wiki did not initialize and you get the following in your logs:

      2012-01-12 13:24:54,667 [http://localhost:8080/xwiki/bin/view/Main/] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: 42P01 
      2012-01-12 13:24:54,667 [http://localhost:8080/xwiki/bin/view/Main/] ERROR o.h.u.JDBCExceptionReporter    - ERROR: relation "xwikidbversion" does not exist
        Position: 45 
      2012-01-12 13:24:54,673 [http://localhost:8080/xwiki/bin/view/Main/] WARN  o.h.u.JDBCExceptionReporter    - SQL Error: 0, SQLState: 25P02 
      2012-01-12 13:24:54,674 [http://localhost:8080/xwiki/bin/view/Main/] ERROR o.h.u.JDBCExceptionReporter    - ERROR: current transaction is aborted, commands ignored until end of transaction block 
      2012-01-12 13:24:54,694 [http://localhost:8080/xwiki/bin/view/Main/] ERROR .x.x.s.XWikiHibernateBaseStore - Failed creating schema update script 
      org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
      

      There is an easy workaround if you startup fresh (not importing old data), which is to fix the DB version to the latest DB version in your xwiki.cfg using:

      xwiki.store.migration.version=15429
      

      Attachments

        Activity

          People

            softec Denis Gervalle
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: