You’ve gotten a 404 for an internal check between processes within SonarQube. That’s odd, & I suspect you have something else on this box that’s intercepting the call. I’d start by checking your server logs to see what they say. And then, of course, take a look around to see what’s serving that 404.
Following the installation guide for both Community & Enterprise editions, I keep running into this same issue. I’ve tried v9.5, v9.6, v8.6, but still same issue. Has anyone determined the cause/solution for this error? Please reply with the solution if you have figured this out. Thank you.
I did see this in the logs, so I changed the sonar.search.port=9001 to port 9005 and it got past that error. I also changed the Global Logging level (sonar.log.level) to DEBUG, to help with troubleshooting. Now I get a different error about connecting to the database, which deserves a new thread:
BindHttpException[**Failed to bind to 127.0.0.1:9001**]; nested: BindException[Address already in use: bind];
Likely root cause: java.net.BindException: **Address already in use**: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
yes, this was the error I got past by changing the port number. To your point, it probably was a zombie process from a previous attempt, but why that previous attempt failed is a mystery, probably from when I ran StartSonar.bat before setting the Java path in the wrapper.conf. I’m still looking into the database connection issue, looks to be a port blocked by firewall. I’ll re-post in a new thread if I can’t figure it out, which is highly likely.
Although, there was an issue with the sonar.properties file that was preventing my MS SQL DB connection (using integrated security) causing the connection to close, and that was this line, the uncommented line works, the commented out line doesn’t work:
I just happened to notice the underscores instead of dots in the variable, which differs from the sonar.properties template. I guess I figured the template should have the correct variables, we shouldn’t have to fix the template that comes in the zip file.
It would be nice to have a comprehensive installation guide per OS installation (I know that’s a lot to ask for), or an installation script that contains all of the prerequisites and installs them if they’re missing, etc…, as much automation as possible to limit the possibility of user error. Could be a script that ask questions and takes the user input to formulate the conf files.
The downloaded v9.6.1 Zip didn’t have a Wrapper.exe in the bin, but the Windows Service “SonarQube” tries to point to the wrapper.exe file that is missing, so things like this need to be fixed before the release is published.
Could use much more examples, screenshots, etc…
I could dig up a lot of areas that could be improved, but I’m not on the payroll.
Changing the sonar.properties file with SONAR_JDBC_URL will make SonarQube ignore the property and use the embedded h2 database. You can verify that by seeing a warning at the bottom after you login SonarQube.
This is what I’m talking about with the SQ Documentation. This is the only information regarding the database, and it’s not working. There must be some other settings, configurations, or requirements to get the MS SQL DB to work with the JDBC driver that I’ll have to find elsewhere, but should be included in the Install documentation:
All of the above has been done, but still not able to get the server to spin up using MS SQL DB with Integrated Security nor with SQL Auth username & password.
Disabled firewall and still doesn’t want to connect to the MS SQL DB.
I found a related thread to my current issue here, but still not working for me: