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

Server fails to restart on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.7, 7.8
    • Fix Version/s: 7.9
    • Component/s: ElasticSearch
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      On Windows the restart button in the administration console stops the server but fails to restart it:

      2019.03.27 08:33:27 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
      2019.03.27 08:33:27 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up
      2019.03.27 08:34:00 INFO  app[][o.s.a.SchedulerImpl] Process [ce] is stopped
      2019.03.27 08:34:01 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
      2019.03.27 08:34:01 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
      2019.03.27 08:34:01 INFO  app[][o.s.a.SchedulerImpl] SonarQube is restarting
      2019.03.27 08:34:01 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\SonarQube\temp
      2019.03.27 08:34:01 ERROR app[][o.s.a.SchedulerImpl] Fail to restart
      java.nio.file.AccessDeniedException: C:\SonarQube\temp\es6\jna--1833998801\jna2524526439695342413.dll
      	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      	at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
      	at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
      	at java.nio.file.Files.delete(Unknown Source)
      	at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:186)
      	at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:181)
      	at java.nio.file.Files.walkFileTree(Unknown Source)
      	at java.nio.file.Files.walkFileTree(Unknown Source)
      	at org.sonar.process.FileUtils2.deleteDirectoryImpl(FileUtils2.java:143)
      	at org.sonar.process.FileUtils2.deleteDirectory(FileUtils2.java:112)
      	at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:117)
      	at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:101)
      	at java.nio.file.Files.walkFileTree(Unknown Source)
      	at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96)
      	at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62)
      	at org.sonar.application.AppReloaderImpl.reload(AppReloaderImpl.java:60)
      	at org.sonar.application.SchedulerImpl$RestarterThread.run(SchedulerImpl.java:295)
      <-- Wrapper Stopped

      This regression has been introduced in 7.6 when moving the temp directory of Elasticsearch inside the SonarQube temp directory.

      Problem raised on the community forum: https://community.sonarsource.com/t/sonarqube-7-7-fails-to-restart/8186

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: