Problem with upgrade


I am trying to update sonarqube from 7.9 to 8.9.
After installing the new version, in the logs, I had an error in the logs:
java.lang.RuntimeException: can not run elasticsearch as root

So I modified with RUN_AS_USER=sonar
I have make a chown and a chgrp for the sonar user on opt/sonarqube

I try to restart sonarqube with /opt/sonarqube/bin/linux-x86-64/ start, in the log I have the followinf error:

2022.07.08 09:24:14 ERROR app[][o.s.a.ProcessLauncherImpl] Failed to create temporary configuration directory [/opt/sonarqube/temp/conf/es]
2022.07.08 09:24:14 ERROR app[][o.s.a.p.ManagedProcessHandler] Fail to launch process [es]

Yet the rights are still good on the server.
Any ideas please?

Thank you,


Welcome to the community!

If you’ve previously run (or attempted to run) SonarQube as root then I suspect the sub-directories got owned/grouped to root. Can you try a recursive chown sonar:sonar on $SONARQUBE-HOME?


Hello :wink:

I have already done a chgrp -R and chown -R on opt/sonarqube.
On the server, all the file have the good group and the good owner.

That’all the problem :s
i don’t understand the situation



Can you check your server logs for errors? There should be something helpful there.