Hi Tobias, Thank you very much. Now I seem to get it.
But I have 503 error: “Service Unavailable”
From apache2 log, error message is:
[Wed May 12 09:24:57.543738 2021] [proxy_http:error] [pid 2012245] [client [127.0.0.1:54614](http://127.0.0.1:54614)] AH01114: HTTP: failed to make connection to backend: private_sonar
[Wed May 12 09:24:57.762993 2021] [proxy:error] [pid 2012246] (111)Connection refused: AH00957: HTTP: attempt to connect to [127.0.0.1:9000](http://127.0.0.1:9000) (private_sonar) failed
[Wed May 12 09:24:57.763041 2021] [proxy_http:error] [pid 2012246] [client [127.0.0.1:54616](http://127.0.0.1:54616)] AH01114: HTTP: failed to make connection to backend: private_sonar, referer: [http://public_sonar/](http://public_sonar/)
From Sonarqube log, I have:
<-- Wrapper Stopped
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) [http://wrapper.tanukisoftware.org](http://wrapper.tanukisoftware.org)
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2021.05.12 09:40:05 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2021.05.12 09:40:05 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: [127.0.0.1:9001](http://127.0.0.1:9001), TCP: [127.0.0.1:40737](http://127.0.0.1:40737)]
2021.05.12 09:40:05 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME
2021.05.12 09:40:05 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /opt/sonarqube/logs/sonarqube.log
2021.05.12 09:40:12 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2021.05.12 09:40:12 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2021.05.12 09:40:12 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
So the problem is that sonar is running normally.
I need your further help. Thanks in advance.
Regards,
Shawn