Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonarQube version 9.6 breaks due to incompatible changes #24

Closed
Conzar opened this issue Sep 15, 2022 · 7 comments
Closed

SonarQube version 9.6 breaks due to incompatible changes #24

Conzar opened this issue Sep 15, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Conzar
Copy link

Conzar commented Sep 15, 2022

SonarQube version 9.4 and 9.5 work without any issues. Upgrading to 9.6.1.59531 causes the following error:

sonar.service: Can't open PID file /opt/sonar/data/SonarQube.pid (yet?) after start: Operation not permitted

If I manually change the permissions of the file system, I get the following error in the logs

The database must be manually upgraded. Please backup the database and browse /setup

But the web server never loads and /setup cannot be run.

Any ideas what the cause might be? Something different in 9.6?

@fraenki fraenki self-assigned this Sep 20, 2022
@IFV-oscar-vlugt
Copy link

Same issue here on CentOS 7 with Puppet6. Removing the PID line in /etc/systemd/system/sonar.service and disabling puppet solves it for now to get SonarQube running, however we need to do this manually after a Puppet Run to ensure it is running. Any solution yet?

@fraenki
Copy link
Member

fraenki commented Oct 24, 2022

A new major release of this module is currently in the works:
https://github.com/markt-de/puppet-sonarqube/blob/master/CHANGELOG.md

Could you check if the improved PID file handling and the new $pidfile parameter solve this issue for you?

@fraenki fraenki added the bug Something isn't working label Oct 24, 2022
@IFV-oscar-vlugt
Copy link

IFV-oscar-vlugt commented Nov 3, 2022

Setting pidfile => "../sonar-install/sonarqube-${version}/bin/linux-x86-64/SonarQube.pid" fixes it for us with 5.0.0 due to sonar_home being /opt/sonar/data and the only .pid I could trace is on the location /opt/sonar-install/sonarqube-${version}/bin/linux-x86-64/SonarQube.pid .

@nambrosch
Copy link

Hi @fraenki I was wondering how this release is going - I'd like to use your module to install 9.7. Thank you!

@fraenki
Copy link
Member

fraenki commented Nov 22, 2022

I'm currently pretty busy. Could you try the latest commit from the master branch? AFAICT it should work. The next major release should be out in december.

@nambrosch
Copy link

Thanks for all of your work, I've been sticking with 9.5.0.56709 until your new version is ready.

@fraenki fraenki closed this as completed in 359cff2 Jan 3, 2023
@fraenki
Copy link
Member

fraenki commented Jan 3, 2023

SonarQube version 9.4 and 9.5 work without any issues. Upgrading to 9.6.1.59531 causes the following error:
sonar.service: Can't open PID file /opt/sonar/data/SonarQube.pid (yet?) after start: Operation not permitted

I found out what is causing this issue. The startup script sonar.sh got a major overhaul in SonarQube 9.6:
SonarSource/sonarqube@2f1b46f

As a result, the PID file setting was no longer working. This is finally fixed in version 5.1 of this module. SonarQube 9.8 successfully passed the acceptance tests.

@fraenki fraenki changed the title SonarQube version 9.6 breaks SonarQube version 9.6 breaks due to incompatible changes Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants