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

Restart from the UI fails on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.6
    • Component/s: None
    • Labels:

      Description

      I've just locally tested SQ 5.5-M6, uninstalled the bundled C# 4.4 plugin and click on the restart button.

      This didn't work, and here is what I got in the logs:

      jvm 1    | 2016.03.03 09:00:39 INFO  app[o.s.p.m.Monitor] Process[search] is stopping
      jvm 1    | 2016.03.03 09:00:41 INFO  app[o.s.p.m.Monitor] Process[search] is stopped
      jvm 1    | 2016.03.03 09:00:41 INFO  app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Users\Dinesh\Desktop\sonarsource\sonarqube-5.5-M6_2016-03-02\temp
      jvm 1    | Exception in thread "Restartor 0" java.lang.RuntimeException: Failed to reset file system
      jvm 1    |      at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:125)
      jvm 1    |      at org.sonar.process.monitor.Monitor.startProcesses(Monitor.java:105)
      jvm 1    |      at org.sonar.process.monitor.Monitor.access$500(Monitor.java:38)
      jvm 1    |      at org.sonar.process.monitor.Monitor$RestartorThread.run(Monitor.java:282)
      jvm 1    | Caused by: java.nio.file.FileSystemException: C:\Users\Dinesh\Desktop\sonarsource\sonarqube-5.5-M6_2016-03-02\temp\sharedmemory: The process cannot access the file because it is being used by another process.
      jvm 1    |
      jvm 1    |      at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
      jvm 1    |      at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
      jvm 1    |      at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
      jvm 1    |      at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
      jvm 1    |      at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
      jvm 1    |      at java.nio.file.Files.delete(Files.java:1126)
      jvm 1    |      at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:151)
      jvm 1    |      at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:135)
      jvm 1    |      at java.nio.file.Files.walkFileTree(Files.java:2670)
      jvm 1    |      at org.sonar.process.FileUtils.cleanDirectoryImpl(FileUtils.java:123)
      jvm 1    |      at org.sonar.process.FileUtils.cleanDirectory(FileUtils.java:60)
      jvm 1    |      at org.sonar.application.AppFileSystem.createOrCleanDirectory(AppFileSystem.java:116)
      jvm 1    |      at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:73)
      jvm 1    |      at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:122)
      jvm 1    |      ... 3 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebastien.lesaint Sebastien Lesaint
                Reporter:
                dinesh.bolkensteyn Dinesh Bolkensteyn (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: