SonarQube stops within a few seconds...

19,095 views
Skip to first unread message

Daya Sharma

unread,
Dec 21, 2017, 12:50:32 AM12/21/17
to SonarQube

SonarQube gets started normally but within a few seconds it's status goes to not running.....


It goes like

[root@host-10-10-12-71 logs]# sudo service sonar start

Starting SonarQube...

Started SonarQube.

[root@host-10-10-12-71 logs]# sudo service sonar status

SonarQube is running (17354).

[root@host-10-10-12-71 logs]# sudo service sonar status

SonarQube is running (17354).

[root@host-10-10-12-71 logs]# sudo service sonar status

SonarQube is running (17354).

[root@host-10-10-12-71 logs]# sudo service sonar status

SonarQube is running (17354).

[root@host-10-10-12-71 logs]# sudo service sonar status

SonarQube is running (17354).

[root@host-10-10-12-71 logs]# sudo service sonar status

SonarQube is not running...



This is what I could find through the logs :


2017.12.21 10:59:40 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /root/SonarQube/sonarqube-6.7/temp

2017.12.21 10:59:40 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001

2017.12.21 10:59:40 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/root/SonarQube/sonarqube-6.7/elasticsearch]: /roo$

2017.12.21 10:59:40 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

2017.12.21 10:59:41 INFO  app[][o.e.p.PluginsService] no modules loaded

2017.12.21 10:59:41 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]

2017.12.21 10:59:44 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1

2017.12.21 10:59:44 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped

2017.12.21 10:59:44 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

<-- Wrapper Stopped


If anyone could help me resolve this issue, thanks in advance

Eric Hartmann

unread,
Dec 21, 2017, 1:10:19 AM12/21/17
to Daya Sharma, SonarQube
Hi,

You may have more information about this issue in es.log.
Since you are using Linux, did you use a dedicated account for running SonarQube and not using root account ?

Cheers,

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/8bb07470-3ce4-4d69-b40d-3caedcbc80df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Eric HARTMANN | SonarSource

daya...@cleartrip.com

unread,
Dec 21, 2017, 2:26:21 AM12/21/17
to SonarQube
Heyy, silly of me, I was making access though a root account.
After accessing as a normal user, it works properly.
Thanks

michae...@gstockco.com

unread,
Mar 21, 2018, 10:56:37 AM3/21/18
to SonarQube
I had the same issue if you run it as root it is an issue and it changes the rights on the files as well, I had to chown -R the files and run as non root and all was good.

samb...@gmail.com

unread,
May 2, 2018, 6:52:38 AM5/2/18
to SonarQube
Hello Eric Hartmann,

I am facing same issue even when I run as non root user(ec2-user). can u help me? 
Sonar version is 7.1
[ec2-user@ip-172-30-1-0 linux-x86-64]$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
[ec2-user@ip-172-30-1-0 linux-x86-64]$ tail -f /opt/sonar/logs/sonar.log
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2018.05.02 10:48:12 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2018.05.02 10:48:12 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.05.02 10:48:12 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonar/elasticsearch]: /opt/sonar/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonar/temp/conf/es
2018.05.02 10:48:12 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.05.02 10:48:13 INFO  app[][o.e.p.PluginsService] no modules loaded
2018.05.02 10:48:13 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.05.02 10:48:16 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
2018.05.02 10:48:16 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.05.02 10:48:16 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

Eric Hartmann

unread,
May 2, 2018, 10:57:43 AM5/2/18
to samb...@gmail.com, SonarQube
Hi,

Are you sure to run SonarQube with a non root user ?
Please add your es.log file where we can understand why it's not starting.

Cheers,

Eric HARTMANN | SonarSource


Eric Hartmann

unread,
May 3, 2018, 2:27:27 PM5/3/18
to samba sivareddy, SonarQube
Hi Samba,

Please keep the mailing list when replying.

Your error is in this log :
es[][o.e.b.BootstrapChecks] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]


Cheers,

Eric HARTMANN | SonarSource


On Thu, May 3, 2018 at 8:08 PM samba sivareddy <samb...@gmail.com> wrote:
Hello Eric,

I used m4.large instance on AWS and changed  vm.max_map_count nd  fs.file-max
sysctl vm.max_map_count
sysctl fs.file-max
ulimit -n
ulimit -u

sudo sysctl -w vm.max_map_count=262144
sudo sysctl -w fs.file-max=65536
ulimit -n 65536
ulimit -u 2048

es.log
====

2018.05.03 18:04:45 INFO  es[][o.e.n.Node] initializing ...
2018.05.03 18:04:45 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [7.2gb], net total_space [9.9gb], spins? [unknown], types [rootfs]
2018.05.03 18:04:45 INFO  es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2018.05.03 18:04:45 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [tNLgcEdrRfKhe_7apQmFcg]
2018.05.03 18:04:45 INFO  es[][o.e.n.Node] version[5.6.3], pid[11830], build[1a2f265/2017-10-06T20:33:39.012Z], OS[Linux/3.10.0-862.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_171/25.171-b11]
2018.05.03 18:04:45 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonar/elasticsearch]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] loaded module [aggs-matrix-stats]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] loaded module [ingest-common]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2018.05.03 18:04:46 INFO  es[][o.e.p.PluginsService] no plugins loaded
2018.05.03 18:04:48 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen]
2018.05.03 18:04:49 INFO  es[][o.e.n.Node] initialized
2018.05.03 18:04:49 INFO  es[][o.e.n.Node] starting ...
2018.05.03 18:04:49 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2018.05.03 18:04:49 WARN  es[][o.e.b.BootstrapChecks] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
2018.05.03 18:04:52 INFO  es[][o.e.c.s.ClusterService] new_master {sonarqube}{tNLgcEdrRfKhe_7apQmFcg}{jzeNC5viS3y2KTpTDxJ-tw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: zen-disco-elected-as-master ([0] nodes joined)
2018.05.03 18:04:52 INFO  es[][o.e.n.Node] started
2018.05.03 18:04:52 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2018.05.03 18:04:57 INFO  es[][o.e.n.Node] stopping ...
2018.05.03 18:04:57 INFO  es[][o.e.n.Node] stopped
2018.05.03 18:04:57 INFO  es[][o.e.n.Node] closing ...
2018.05.03 18:04:57 INFO  es[][o.e.n.Node] closed


Thanks,
Samba.

--
Thanks,
Samba

samb...@gmail.com

unread,
May 11, 2018, 5:25:10 PM5/11/18
to SonarQube
Hi Eric,

By using larger instance solved issue 'elasticsearch process is too low'. But facing issue on ubuntu server even with m4.large instanceo.. es.log says "java.lang.RuntimeException: can not run elasticsearch as root".  But I am not running as root.

ubuntu@ip-172-31-25-19:/opt/sonarqube/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.

ubuntu@ip-172-31-25-19:/opt/sonarqube/bin/linux-x86-64$ tail -f /opt/sonarqube/logs/es.log
2018.05.11 21:19:55 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.3.jar:5.6.3]
2018.05.11 21:19:55 WARN  es[][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.3.jar:5.6.3]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.3.jar:5.6.3]
        ... 6 more

Thanks,
Samba

Eric Hartmann

unread,
May 12, 2018, 5:10:51 AM5/12/18
to samba sivareddy, SonarQube
Hi Samba,

As soon as you are using sudo without any arguments, you'll launch SonarQube as root.
Just use your current account.

Cheers,

Eric HARTMANN | SonarSource

Sajidur Rahman

unread,
May 22, 2018, 6:46:48 PM5/22/18
to SonarQube

Hi Eric,

I'm trying to install SonarQube version 6.7.3 in my Macbook pro, but I'm getting some errors kind-of similar to the one discussed in this thread. According to your earlier suggestion, I tried to run without being a root user. The following is what I get from my sonar.log file:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2018.05.22 18:37:02 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/temp

WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: /Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/temp/conf/es/elasticsearch.yml
java.nio.file.AccessDeniedException: /Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/temp/conf/es/elasticsearch.yml
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:170)
at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:165)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.sonar.process.FileUtils2.deleteDirectoryImpl(FileUtils2.java:127)
at org.sonar.process.FileUtils2.deleteDirectory(FileUtils2.java:112)
at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:117)
at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:101)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96)
at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62)
at org.sonar.application.App.start(App.java:55)
at org.sonar.application.App.main(App.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.lang.Thread.run(Thread.java:748)
<-- Wrapper Stopped
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

After that, I tried to run as sudo, but I'm getting the following error from es.log file:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2018.05.22 18:41:58 ERROR es[][o.e.b.Bootstrap] Exception
java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.3.jar:5.6.3]
2018.05.22 18:41:58 WARN  es[][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.3.jar:5.6.3]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.3.jar:5.6.3]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.3.jar:5.6.3]
... 6 more
---------------------------------------------------------------------------------------------------------------------
Following is the error logged in sonar.log file:
-----------------------------------------------------------------------------------------
running SonarQube...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2018.05.22 18:41:55 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/temp
jvm 1    | 2018.05.22 18:41:55 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1    | 2018.05.22 18:41:55 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/elasticsearch]: /Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/elasticsearch/bin/elasticsearch -Epath.conf=/Users/sajid/Documents/Research/Blindspots-part2/sonarqube-6.7.3/temp/conf/es
jvm 1    | 2018.05.22 18:41:55 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2018.05.22 18:41:56 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2018.05.22 18:41:56 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | 2018.05.22 18:41:58 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
jvm 1    | 2018.05.22 18:41:58 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1    | 2018.05.22 18:41:58 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped
-------------------------------------------------------------------------------------------------------------------------------------------------

This is my current settings uncommented in sonar.properties file:

sonar.jdbc.username=sonarqube
sonar.jdbc.password=mypassword
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.web.host=127.0.0.1
sonar.web.context=/sonar
sonar.web.port=9001
sonar.search.javaOpts=-Xms512m \
 -Xmx512m \
 -XX:+HeapDumpOnOutOfMemoryError

I'm at loss now, please suggest me how I can make it running. Thanks!

samba sivareddy

unread,
May 22, 2018, 7:05:19 PM5/22/18
to Sajidur Rahman, SonarQube
Hi Sajidur Rahman,
I solved the issue by adding sonar user and run sonarqube as sonar user.
Adding user on ubuntu 
1. adduser sonar
2. usermod -aG sudo sonar
3. cd /opt
4. chown -R sonar:sonar sonar
5. sudo -u sonar /bin/bash

Thanks,
Samba.

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/8szSQhgSqXs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/27129227-8f6e-440a-ad34-6093bb59bd02%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Samba

Eric Hartmann

unread,
May 23, 2018, 11:13:28 AM5/23/18
to samba sivareddy, sajidr...@gmail.com, SonarQube
Hi,

I do think Samba's suggestion is the good one, since you've started SonarQube with root account some files are no more readable with your current account "chown" them to your account will fix your issue Sajidur.

Cheers,
Eric HARTMANN | SonarSource

To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Samba

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages