Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-14358

Migration fails when projects of application does not exist in XML definition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 8.6
    • Fix Version/s: 8.6.1
    • Component/s: Database
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Migration 'MigrateApplicationDefinitionsFromXmlToDb' fails with:

      2020.12.22 15:38:10 ERROR web[][o.s.s.p.d.m.DatabaseMigrationImpl] DB migration ended with an exception
      org.sonar.server.platform.db.migration.step.MigrationStepExecutionException: Execution of migration step #4122 'Migrate view definitions from xml to db' failed
      Caused by: java.lang.IllegalStateException: Failed to migrate views definitions property.
      	at org.sonar.server.platform.db.migration.version.v86.MigrateApplicationDefinitionsFromXmlToDb.execute(MigrateApplicationDefinitionsFromXmlToDb.java:110)
      	at org.sonar.server.platform.db.migration.step.DataChange.execute(DataChange.java:44)
      	at org.sonar.server.platform.db.migration.step.MigrationStepsExecutorImpl.execute(MigrationStepsExecutorImpl.java:75)
      	... 9 common frames omitted
      Caused by: org.postgresql.util.PSQLException: No value specified for parameter 1.
      	at org.postgresql.core.v3.SimpleParameterList.checkAllParametersSet(SimpleParameterList.java:275)
      

      The reason for that error is that projects for migrated application does not exist in DB, cause of that issue could be that project key has been changed.

        Attachments

          Activity

            People

            Assignee:
            jacek.poreda Jacek Poreda
            Reporter:
            jacek.poreda Jacek Poreda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: