Sonar won't boot

Sonar 8.2.0, ubuntu java 11

Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2020.03.31 12:28:33 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2020.03.31 12:28:33 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9200
2020.03.31 12:28:33 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2020.03.31 12:28:34 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.03.31 12:28:34 INFO app[o.e.p.PluginsService] no modules loaded
2020.03.31 12:28:34 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.03.31 12:28:37 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.03.31 12:28:37 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2020.03.31 12:28:37 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

What do your logfiles say? See the docs on Troubleshooting

> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> TERM trapped.  Shutting down.
> 2020.03.31 13:40:54 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
> 2020.03.31 13:40:54 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9200
> 2020.03.31 13:40:54 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
> 2020.03.31 13:40:54 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
> OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
> 2020.03.31 13:40:54 INFO  app[][o.e.p.PluginsService] no modules loaded
> 2020.03.31 13:40:54 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
> 2020.03.31 13:40:56 INFO  app[][o.s.a.SchedulerImpl] Stopping SonarQube
> 2020.03.31 13:40:56 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
> 2020.03.31 13:40:56 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
> 2020.03.31 13:40:56 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> TERM trapped.  Shutting down.
> 2020.03.31 13:41:20 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
> 2020.03.31 13:41:20 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9200
> 2020.03.31 13:41:21 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
> 2020.03.31 13:41:21 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
> OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
> 2020.03.31 13:41:22 INFO  app[][o.e.p.PluginsService] no modules loaded
> 2020.03.31 13:41:22 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
> 2020.03.31 13:41:22 INFO  app[][o.s.a.SchedulerImpl] Stopping SonarQube
> 2020.03.31 13:41:22 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
> 2020.03.31 13:41:22 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
> 2020.03.31 13:41:22 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> TERM trapped.  Shutting down.
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> TERM trapped.  Shutting down.
> 2020.03.31 13:41:34 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
> 2020.03.31 13:41:35 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9200
> 2020.03.31 13:41:35 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
> 2020.03.31 13:41:35 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
> OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
> 2020.03.31 13:41:36 INFO  app[][o.e.p.PluginsService] no modules loaded
> 2020.03.31 13:41:36 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
> 2020.03.31 13:41:36 INFO  app[][o.s.a.SchedulerImpl] Stopping SonarQube
> 2020.03.31 13:41:36 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
> 2020.03.31 13:41:36 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
> 2020.03.31 13:41:36 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...
> TERM trapped.  Shutting down.
> Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> 
> <-- Wrapper Stopped
> --> Wrapper Started as Daemon
> Launching a JVM...

and the others? :smiley:

There should be an es.log file. Anything interesting there?

non, is the only log

Hm. :confused: Not sure why that would be.

I assume right now you’re running ./sonar.sh start – any more interesting output if you run ./sonar.sh console?

To be honest, if this is a new installation, I’d recommend trashing your install directory and… trying again. If there aren’t other logfiles generating in your logs directory, there’s not much troubleshooting we’ll be able to do.

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 | 2020.03.31 13:52:22 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
jvm 1 | 2020.03.31 13:52:22 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9200
jvm 1 | 2020.03.31 13:52:23 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
jvm 1 | 2020.03.31 13:52:23 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1 | 2020.03.31 13:52:23 INFO app[o.e.p.PluginsService] no modules loaded
jvm 1 | 2020.03.31 13:52:23 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | ERROR: [1] bootstrap checks failed
jvm 1 | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
jvm 1 | 2020.03.31 13:52:31 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
jvm 1 | 2020.03.31 13:52:31 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2020.03.31 13:52:31 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped

Do you see the error in the logs? Have you read the Platform Notes for Linux?