SonarQube 7.7 Fails To Restart

Upgraded to SonarQube 7.7 and the embedded Restart within the UI fails on the backend. Install base is Windows 2016 and SonarQube installed as a service. The service stops, fails to complete the cleanup and thus fails to restart. Have to manually start the service again to get SonarQube up and running again. New es6 directory and files created with each startup, so not a one-time legacy file cleanup that would resolve the issue. Full log below showing the entire process.

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
1 Like

Hi Nathan,

A regression has been introduced in 7.7 on MS Windows. Ticket SONAR-11874 created.

Sorry for the inconvenience.

1 Like

Appreciate the reply, thx!