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

Avoid DB errors at startup when the DB is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 9.2-rc-1
    • 8.4.4
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      For example in postgresql's logs we get:

      ERROR:  relation "xwikidbversion" does not exist at character 45
      STATEMENT:  select this_.XWV_VERSION as XWV1_26_0_ from xwikidbversion this_
      ERROR:  relation "xwikidoc" does not exist at character 29
      STATEMENT:  select count(*) as y0_ from xwikidoc this_
      

      This is because at startup we try to read from the xwikidbversion table even when it doesn't exist, thus resulting on these errors on the DB side.

      When using docker-compose to start XWiki and the DB these errors are very visible and the user will wonder if something is not working so it's best to avoid them.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: