which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) -sonarqube-8.4.2.36762, no extensions, no plugins, TFS2019/SQL Server 2016
what are you trying to achieve - Start SonarQube with sonarqube.properties modified to settings for our local server environment
what have you tried so far to achieve this - After successfully starting SonarQube, and accessing the default web page, I attempted to make changes to properties.config to point at my SQL Server database. Executing StartSonar.bat now fails.
in the sonarqube install directory is a logs directory. can you share the content of all the files in there? i think we can get more answers in the web.log file
Thank you for your response and any help you can provide.
The entire contents of the logs folder are attached. This set of logs reflects the results of trying to run StartSonar.bat, after changing my sonar.properties file to configure it for our TFS environment.
Thank you very much for your help. I was using an AD service account, but have now created a local login, which cleared that error. The JVM window now stays open, as expected.
New problem - the website does not come up. I have attached new logs, taken now that the DB login works.
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x020x000x010x000x010xfc0x030x03"0xa60xac+0xaf0x890xc30x1fAk20xaf00x99Q0xef0xa50x0c0xa30xe10xa50x8a0x160xc7&0x0dP>w0x090xd40]. HTTP method names must be tokens
do you try to access sonarqube via https? if yes then please let a reverse proxy handle TLS as sonarqube can only communicate via http.
If this is not the case can you state your browser, OS locale and configured authentication methode?
Hi Tobias! Sorry for the delayed response.
Thank you for helping me to locate that error in the log. I am not sure what to do to fix that. We do not intend to access SonarQube via https, at this time.
I have tried to access it via both https: and http: I have used Firefox, Chrome, and IE, all in their most current versions. The OS is Windows Server 2012, and authentication method is Active Directory, current user credentials. I also tried to run the browsers ‘as administrator’
Hmm can you try to check the route to sonarqube? maybe there is a mitm proxy configured in your environment or something like this?
Because the invalid characters in the error message look like a TLS request header
I was able to get the page to display before I edited the config file. After editing the config file to fit our environment, the sonarqube service starts/runs and the log says the web page is up. The page error is This site can’t be reached [my server] refused to connect.
I have attached copies of the latest log files again. Thanks for your help!
sonar.properties.txt (19.9 KB) Sorry for confusing the issue. To clarify - initially, I was able to get sonarqube installed with the out-of-box settings, and the default web-page started. I then made the necessary changes to the settings in the sonar.properties file to get sonarqube to point at our TFS server and database. After many unsuccessful attempts to get the web page to come back up, I reached out to you on this community. Your active directory suggestion got me past the first problem. All of our dialogue since is focused on getting the web page to come up.
I attached my sonar.properties file (converted to .txt) and today’s logs.
but the protocol error you had in this post is gone?
from what i can see in your config, you should use a ip address of the network interface you want to expose sonarqube to on the property sonar.web.host and not the FQDN. also i see that you set the sonar.web.context to /sonarqube and in the access.log you try to access only / without the web context, so maybe try to navigate to http://192.168.200.111:9000/sonarqube and see if you can view the sonarqube interface there.
as a last note: please change your database password as you posted it in the sonar.properties file and this is a public forum