Problem with upgrading sonarqube to the latest version 9.0

I was about upgrading sonarqube server to the latest version 9.0 .

I configured the sonar.properties and the wrapper.conf as mentionned on the sonarqube documentation website.

Once I stopped the old sonarqube and started the new one here is the messages I got on the log :

        ... 16 common frames omitted
2021.08.22 18:13:03 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.08.22 18:13:03 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2021.08.22 18:13:03 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2021.08.22 18:13:19 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /home/yasser/sonarqube/temp
2021.08.22 18:13:19 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:40781]
2021.08.22 18:13:19 ERROR app[][o.s.a.p.ManagedProcessHandler] Fail to launch process [es]
java.lang.IllegalStateException: Could not delete Elasticsearch temporary conf directory
        at org.sonar.application.ProcessLauncherImpl.pruneElasticsearchConfDirectory(ProcessLauncherImpl.java:168)
        at org.sonar.application.ProcessLauncherImpl.writeConfFiles(ProcessLauncherImpl.java:155)
        at org.sonar.application.ProcessLauncherImpl.launch(ProcessLauncherImpl.java:92)
        at org.sonar.application.SchedulerImpl.lambda$tryToStartProcess$2(SchedulerImpl.java:196)
        at org.sonar.application.process.ManagedProcessHandler.start(ManagedProcessHandler.java:73)
        at org.sonar.application.SchedulerImpl.tryToStartProcess(SchedulerImpl.java:194)
        at org.sonar.application.SchedulerImpl.tryToStartEs(SchedulerImpl.java:146)
        at org.sonar.application.SchedulerImpl.tryToStartAll(SchedulerImpl.java:138)
        at org.sonar.application.SchedulerImpl.schedule(SchedulerImpl.java:112)
        at org.sonar.application.App.start(App.java:59)
        at org.sonar.application.App.main(App.java:81)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.nio.file.AccessDeniedException: /home/yasser/sonarqube/temp/conf/es
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:249)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
        at java.base/java.nio.file.Files.deleteIfExists(Files.java:1181)
        at org.sonar.application.ProcessLauncherImpl.pruneElasticsearchConfDirectory(ProcessLauncherImpl.java:166)
        ... 16 common frames omitted
2021.08.22 18:13:19 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.08.22 18:13:19 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2021.08.22 18:13:19 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

Hi,

Welcome to the community!

This looks like a permissions issue:

You need to make sure the SonarQube user has permissions to its directory and contents, recursively, all the way down.

 
HTH,
Ann

Thanks for the answer.
issue resolved.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.