Hello
I’m trying another solution to migrate my SonarQube server:
Ubuntu server 22.04
PostgreSQL 14
Java 17 jdk
SonarQube 10.6
Currently, everything is working
As indicated in the documentation and the path calculator:
Stop Sonar server
Download version 24.12
Unzip this version
Move the SonarQube directory to /opt/
Change permissions for SonarQube
Start SonarQube
==> 502 Gateway error
No log file in /opt/sonarqube/logs
And only one error in the nginx log file:
*1 connect() failed (111: Unknown error) while connecting to upstream
If I put the old SonarQube directory back, everything works immediately.
Hello, has anyone migrated to the new version 25 yet?
I feel like I’m alone in my migration problems.
Scott
(Scott)
May 15, 2025, 1:30pm
3
Hi,
How do you start the SonarQube Server? If you’re using a systemd service, for example, you need to update it to use the updated .jar file as mentioned in Operating SonarQube Community Build | Documentation
Because the sonar-application jar name ends with the version of SonarQube Community Build, you will need to adjust the ExecStart command accordingly on install and at each upgrade.
Thank you for your response and at first I believed it, but here is the content of the service:
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
User=sonarqube
Group=sonarqube
Restart=always
LimitNOFILE=65536
LimitNPROC=4096
[Install]
WantedBy=multi-user.target
and in the sonar.sh we call the correct jar file several times
COMMAND_LINE=“$JAVA_CMD $XMS $XMX $HAZELCAST_ADDITIONAL -jar $LIB_DIR/sonar-application-24.12.0.100206.jar”
Am I the only one trying to upgrade?