Problem with upgrade

Hello,

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 sonar.sh 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/sonar.sh 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,

Hi,

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?

 
Ann

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

Thanks

Hi,

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

 
Ann