I have installed sonarqube 7.9.3 on ubuntu 14.01 and java version is javac 11.07 i am getting below error when i run tail -f soar.log
2020.07.12 12:37:23 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-7.9.3/elasticsearch]: /opt/sonarqube-7.9.3/elasticsearch/bin/elasticsearch
2020.07.12 12:37:23 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.07.12 12:37:23 INFO app[][o.e.p.PluginsService] no modules loaded
2020.07.12 12:37:23 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.07.12 12:37:25 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.07.12 12:37:25 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.07.12 12:37:25 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
Hi @smart_admin
welcome to the community 
there is not that much information in the log you provided. can you maybe post the content of es.log
and web.log
as well? If these log files are not there you can try to increase the log level as documented here
I have installed sonarqube 7.9.3 on ubuntu 14.01 and java version is javac 11.07 i am getting below error when i run tail -f soar.log
As per Myy last post you have asked meto give this es.log so i have mention that also below
2020.07.12 12:37:23 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-7.9.3/elasticsearch]: /opt/sonarqube-7.9.3/elasticsearch/bin/elasticsearch
2020.07.12 12:37:23 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.07.12 12:37:23 INFO app[][o.e.p.PluginsService] no modules loaded
2020.07.12 12:37:23 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.07.12 12:37:25 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.07.12 12:37:25 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.07.12 12:37:25 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
root@k8smaster:/opt/sonarqube-7.9.3/logs# tail -f es.log
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.0.jar:6.8.0]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:103) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.0.jar:6.8.0]
... 6 more
I have created one user name as sonar but still i am getting the same error plese let me know waht else i can do
Hi @smart_admin ,
thanks for the logs. i think the message in the es.log
spoilers the startup error a little:
you have to create a dedicated user that runs sonarqube as stated here.
in general please don’t create new threads if you want to answer to an existing one and for log entries the output of tail -f
will only result in the last few lines of a file and not the complete log
have a good day