Problem starting SonarQube

Hello, I encountered a problem after my installation of sonarqube server. It keeps on failing to start successfully.

These are the errors in the logs:

For sonar.log
19

The are the config parameters:
sonar.jdbc.username=
sonar.jdbc.password=
sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonarqube;integratedSecurity=true
sonar.web.javaOpts=-server
sonar.web.javaAdditionalOpts=-server
sonar.web.host=127.0.0.1
sonar.web.context=/sonarqube
sonar.web.port=9000

Please can you advise? I have been trying to get this fixed for three days straight now but no headway.

A post was split to a new topic: SonarQube shuts back down

Hi,

Welcome to the community!

Your log indicates a problem with file system permissions

Unable to create directory /var/sonarqube/data

Does the user running SonarQube have permissions to create that directory?

 
Ann

Hello,

Yes it does. I created a user called ‘sonarqube’, a database called ‘sonarqube’, and granted the user access to it.

Hi,

Perhaps you could create the directory manually and chown it to your sonarqube user?

 
Ann

Please can you elaborate on your suggestion?
I actually created the database manually.
Thanks

Hi,

Your error is

Unable to create directory /var/sonarqube/data

So create it manually

cd /var
sudo mkdir sonarqube/data
sudo chown -R sonarqube sonarqube

 
HTH,
Ann

oh okay
that’s what you meant,
thanks