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

Unable to run preview analysis on a provisioned project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.3
    • Fix Version/s: 4.5
    • Component/s: Scanner
    • Labels:
      None

      Description

      First preview analysis on a provisioned project works fine since the DB cache is empty. Then on subsequent analysis there is a failure:

      2014.05.28 15:40:36 ERROR [o.s.s.ui.JRubyFacade]  Fail to render: http://<sonar-server>/batch_bootstrap/db?project=c.wn.tests:test5
      Unable to find root project for project with [id=376030]
      	org.sonar.core.preview.PreviewCache.getModificationTimestamp(PreviewCache.java:179)
      	org.sonar.core.preview.PreviewCache.isValid(PreviewCache.java:160)
      	org.sonar.core.preview.PreviewCache.isCacheValid(PreviewCache.java:105)
      	org.sonar.core.preview.PreviewCache.getDatabaseForPreview(PreviewCache.java:79)
      	org.sonar.server.ui.JRubyFacade.createDatabaseForPreview(JRubyFacade.java:403)
      

      This is because there is no snapshot for a provisioned project. One possible fix would be to take advantage of ticket SONAR-5188

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              henryju OLD - Julien HENRY
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: