Sonarqube Web server is running but not reachable

Hello,

I am having an issue with SonarQube Community 8 (currently version 8.1.0.31237). The web server is not reachable through the web interface on the default listening address (port 9000). However output and logs tells me the observer is online. And I’m connected on the server through ssh.

I try to reach the web interface with the server public IP (http://MYIP:9000/). SELINUX is disabled, No IPTABLES rules… and the cloud firewall rules (Security Group on AWS) are open.

I’ve Followed This Tutorial to instance SonarQube on a Centos server.
https://aws.amazon.com/blogs/devops/integrating-sonarqube-as-a-pull-request-approver-on-aws-codecommit/

in my configuration script i set the configuration line in sonar.properties with my custom values

echo 'sonar.jdbc.username=MYUSER' >> sonarqube/conf/sonar.properties
echo 'sonar.jdbc.password=MYPASSWORD' >> sonarqube/conf/sonar.properties
echo 'sonar.jdbc.url=jdbc:postgresql://xxxxxxxx.rds.amazonaws.com:5432/sonar' >> sonarqube/conf/sonar.properties
Server informations:
  • AWS EC2 Amazon Linux 2
cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
  • DB on AWS RDS on Postgresql engine 10.5

Java:

  • openjdk version “11.0.5” 2019-10-15 LTS
  • OpenJDK Runtime Environment Corretto-11.0.5.10.1 (build 11.0.5+10-LTS)
  • OpenJDK 64-Bit Server VM Corretto-11.0.5.10.1 (build 11.0.5+10-LTS, mixed mode)

bin/linux-x86-64/sonar.sh start
Starting SonarQube…
Started SonarQube.

sudo netstat -anlp |grep 9000
tcp6 0 0 :::9000 :::* LISTEN 4512/java

LOGS:

cat logs/sonar.log

–> 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.

2020.01.02 10:34:46 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /home/ec2-user/sonarqube/temp
2020.01.02 10:34:46 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.01.02 10:34:46 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/home/ec2-user/sonarqube/elasticsearch]: /home/ec2-user/sonarqube/elasticsearch/bin/elasticsearch
2020.01.02 10:34:46 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2020.01.02 10:34:46 INFO app[o.e.p.PluginsService] no modules loaded
2020.01.02 10:34:46 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.01.02 10:34:56 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2020.01.02 10:34:56 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/home/ec2-user/sonarqube]: /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/home/ec2-user/sonarqube/temp --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/:/home/ec2-user/sonarqube/lib/jdbc/postgresql/postgresql-42.2.8.jar org.sonar.server.app.WebServer /home/ec2-user/sonarqube/temp/sq-process5056019233815178744properties
2020.01.02 10:35:24 INFO app[o.s.a.SchedulerImpl] Process[web] is up
2020.01.02 10:35:24 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘ce’, ipcIndex=3, logFilenamePrefix=ce]] from [/home/ec2-user/sonarqube]: /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/home/ec2-user/sonarqube/temp --add-opens=java.base/java.util=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/:/home/ec2-user/sonarqube/lib/jdbc/postgresql/postgresql-42.2.8.jar org.sonar.ce.app.CeServer /home/ec2-user/sonarqube/temp/sq-process11564265999143104951properties
2020.01.02 10:35:29 INFO app[o.s.a.SchedulerImpl] Process[ce] is up
2020.01.02 10:35:29 INFO app[o.s.a.SchedulerImpl] SonarQube is up


cat logs/web.log

2020.01.02 10:34:57 INFO web[o.s.p.ProcessEntryPoint] Starting web
2020.01.02 10:34:58 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2020.01.02 10:34:58 INFO web[o.e.p.PluginsService] no modules loaded
2020.01.02 10:34:58 INFO web[o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2020.01.02 10:34:58 INFO web[o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2020.01.02 10:34:58 INFO web[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.01.02 10:35:00 INFO web[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2020.01.02 10:35:00 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 8.1.0.31237 / 492562ade8941108d7bd281ea9c1cebcf0c1fce3
2020.01.02 10:35:00 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://rds-sonar.c8f2b57aps1z.eu-central-1.rds.amazonaws.com:5432/sonar
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: /home/ec2-user/sonarqube
2020.01.02 10:35:01 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.9.1.1834 / 178899f274b2e5340ea158ab885608a8ea228b61
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin JaCoCo / 1.0.2.475 / b79a4724f3a9af1051266b4f8ca0460977295ead
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 8.1.0.13383 / 422e0b5c1b0035cfb39db94f36f6efecdcd89bfd
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarCSS / 1.1.1.1010 / 365e21fd0cb9035669fc59f6fec7c8fd28a7303b
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarFlex / 2.5.1.1831 / a0c44437f6abb0feec76edd073f91fec64db2a6c
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarGo / 1.6.0.719 / edcc6a9e42fcdd30bb6f84a779c6cd7009ec72fd
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarHTML / 3.2.0.2082 / 997a51b39c4d0a5399c73a8fb729030a69eb392b
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 6.1.0.11503 / e78f55aea499e1f368b32c5b0c6f996db984fcb8
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 5.14.0.18788 / 5722010157fd66ae9f3141184891501b4165f75a
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarKotlin / 1.5.0.315 / 4ff3a145a58f3f84f1b39846a205a129d742e993
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 3.3.0.5166 / 88e11dffb965aeef9d5bdd6d8413f394d35fecba
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 2.3.0.5351 / b816a5e837c8bcb31c74ce651044fb77cb7bee1f
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarRuby / 1.5.0.315 / 4ff3a145a58f3f84f1b39846a205a129d742e993
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarScala / 1.5.0.315 / 4ff3a145a58f3f84f1b39846a205a129d742e993
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 2.1.0.4359 / 268ba9581b700c4fb2bc194d4069d283da915213
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarVB / 8.1.0.13383 / 422e0b5c1b0035cfb39db94f36f6efecdcd89bfd
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 2.0.1.2020 / c5b84004face582d56f110e24c29bf9c6a679e69
2020.01.02 10:35:01 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Svn / 1.9.0.1295 / 942e075773975354e32691a60bfd968065703e04
2020.01.02 10:35:02 INFO web[o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2020.01.02 10:35:02 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@7e05bc26 [pattern=UrlPattern{inclusions=[/api/system/migrate_db., …], exclusions=[/api/components/update_key, …]}]
2020.01.02 10:35:02 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.01.02 10:35:03 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2020.01.02 10:35:04 INFO web[][o.s.s.e.IndexCreator] Create index [metadatas]
2020.01.02 10:35:04 INFO web[][o.s.s.e.IndexCreator] Create type metadatas/metadata
2020.01.02 10:35:05 INFO web[][o.s.s.e.IndexCreator] Create index [components]
2020.01.02 10:35:05 INFO web[][o.s.s.e.IndexCreator] Create type components/auth
2020.01.02 10:35:05 INFO web[][o.s.s.e.IndexCreator] Create index [projectmeasures]
2020.01.02 10:35:05 INFO web[][o.s.s.e.IndexCreator] Create type projectmeasures/auth
2020.01.02 10:35:05 INFO web[][o.s.s.e.IndexCreator] Create index [rules]
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create type rules/rule
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create index [issues]
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create type issues/auth
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create index [users]
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create type users/user
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create index [views]
2020.01.02 10:35:06 INFO web[][o.s.s.e.IndexCreator] Create type views/view
2020.01.02 10:35:06 INFO web[][o.s.s.s.LogServerId] Server ID: 57F4FF31-AW9czsLwO72Cllvlftem
2020.01.02 10:35:06 WARN web[][o.s.s.a.LogOAuthWarning] For security reasons, OAuth authentication should use HTTPS. You should set the property ‘Administration > Configuration > Server base URL’ to a HTTPS URL.
2020.01.02 10:35:06 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2020.01.02 10:35:06 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/permissions/search_templates
2020.01.02 10:35:06 INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2020.01.02 10:35:06 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2020.01.02 10:35:06 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2020.01.02 10:35:06 INFO web[][o.s.s.s.RegisterPlugins] Register plugins
2020.01.02 10:35:06 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2020.01.02 10:35:07 INFO web[][o.s.s.r.RegisterRules] Register rules
2020.01.02 10:35:15 INFO web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile css/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile scala/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile jsp/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile kotlin/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile go/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ruby/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile web/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile vbnet/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
2020.01.02 10:35:16 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
2020.01.02 10:35:16 INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2020.01.02 10:35:16 INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2020.01.02 10:35:16 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@70092dfa [pattern=UrlPattern{inclusions=[/api/issues/delete_comment.
, …], exclusions=[/api/authentication/login., …]}]
2020.01.02 10:35:16 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceReroutingFilter@59407193 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, …], exclusions=[]}]
2020.01.02 10:35:16 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@4f27c07 [pattern=UrlPattern{inclusions=[/sessions/init/
], exclusions=}]
2020.01.02 10:35:16 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@73f88d91 [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=}]
2020.01.02 10:35:16 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@7bf05b8e [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=}]
2020.01.02 10:35:16 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@108f5c4a [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=}]
2020.01.02 10:35:16 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@2de9ac32 [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=}]
2020.01.02 10:35:16 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [rules/rule/activeRule] …
2020.01.02 10:35:17 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [rules/rule/activeRule] done | time=1201ms
2020.01.02 10:35:17 INFO web[o.s.s.e.IndexerStartupTask] Indexing of types [rules/rule],[rules/rule/ruleExtension] …
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of types [rules/rule],[rules/rule/ruleExtension] done | time=5670ms
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [users/user] …
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [users/user] done | time=152ms
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [components/auth/component] …
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [components/auth/component] done | time=77ms
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [views/view] …
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [views/view] done | time=105ms
2020.01.02 10:35:23 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [issues/auth/issue] …
2020.01.02 10:35:24 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [issues/auth/issue] done | time=90ms
2020.01.02 10:35:24 INFO web[o.s.s.e.IndexerStartupTask] Indexing of types [components/auth],[projectmeasures/auth],[issues/auth] …
2020.01.02 10:35:24 INFO web[o.s.s.e.IndexerStartupTask] Indexing of types [components/auth],[projectmeasures/auth],[issues/auth] done | time=73ms
2020.01.02 10:35:24 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/auth/projectmeasure] …
2020.01.02 10:35:24 INFO web[o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/auth/projectmeasure] done | time=93ms
2020.01.02 10:35:24 INFO web[o.s.s.q.ProjectsInWarningDaemon] Counting number of projects in warning is not started as there are no projects in this situation.
2020.01.02 10:35:24 INFO web[o.s.s.p.p.PlatformLevelStartup] Running Community Edition
2020.01.02 10:35:24 INFO web[o.s.s.p.Platform] WebServer is operational


cat logs/es.log

2020.01.02 10:34:49 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [5.6gb], net total_space [7.9gb], types [xfs]
2020.01.02 10:34:49 INFO es[o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.01.02 10:34:49 INFO es[o.e.n.Node] node name [sonarqube], node ID [RBy6sDdgT7G314qEZ9QlUw]
2020.01.02 10:34:49 INFO es[o.e.n.Node] version[6.8.4], pid[4932], build[default/tar/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Linux/4.14.154-128.181.amzn2.x86_64/amd64], JVM[Amazon.com Inc./OpenJDK 64-Bit Server VM/11.0.5/11.0.5+10-LTS]
2020.01.02 10:34:49 INFO es[o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/home/ec2-user/sonarqube/temp, -XX:ErrorFile=…/logs/es_hs_err_pid%p.log, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/home/ec2-user/sonarqube/elasticsearch, -Des.path.conf=/home/ec2-user/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [mapper-extras]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [percolator]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [reindex]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [repository-url]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2020.01.02 10:34:50 INFO es[o.e.p.PluginsService] no plugins loaded
2020.01.02 10:34:52 WARN es[o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.01.02 10:34:53 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.01.02 10:34:53 INFO es[o.e.n.Node] initialized
2020.01.02 10:34:53 INFO es[o.e.n.Node] starting …
2020.01.02 10:34:53 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.01.02 10:34:53 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2020.01.02 10:34:56 INFO es[o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{RBy6sDdgT7G314qEZ9QlUw}{wK3NW7obTquZbY19E2S-aw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.01.02 10:34:56 INFO es[o.e.c.s.ClusterApplierService] new_master {sonarqube}{RBy6sDdgT7G314qEZ9QlUw}{wK3NW7obTquZbY19E2S-aw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{RBy6sDdgT7G314qEZ9QlUw}{wK3NW7obTquZbY19E2S-aw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.01.02 10:34:56 INFO es[o.e.n.Node] started
2020.01.02 10:34:56 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2020.01.02 10:35:04 INFO es[o.e.c.m.MetaDataCreateIndexService] [metadatas] creating index, cause [api], templates , shards [1]/[0], mappings
2020.01.02 10:35:04 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[metadatas][0]] …]).
2020.01.02 10:35:04 INFO es[o.e.c.m.MetaDataMappingService] [metadatas/v5tcXRIZR1KUm_rHqx221g] create_mapping [metadata]
2020.01.02 10:35:05 INFO es[o.e.c.m.MetaDataCreateIndexService] [components] creating index, cause [api], templates , shards [5]/[0], mappings
2020.01.02 10:35:05 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[components][4]] …]).
2020.01.02 10:35:05 INFO es[o.e.c.m.MetaDataMappingService] [components/bPzKY_0sTpqvnqCd94LANA] create_mapping [auth]
2020.01.02 10:35:05 INFO es[o.e.c.m.MetaDataCreateIndexService] [projectmeasures] creating index, cause [api], templates , shards [5]/[0], mappings
2020.01.02 10:35:05 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[projectmeasures][4]] …]).
2020.01.02 10:35:05 INFO es[o.e.c.m.MetaDataMappingService] [projectmeasures/7Duzq4V9Twyjg2lQXArMCQ] create_mapping [auth]
2020.01.02 10:35:05 INFO es[o.e.c.m.MetaDataCreateIndexService] [rules] creating index, cause [api], templates , shards [2]/[0], mappings
2020.01.02 10:35:06 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[rules][0]] …]).
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataMappingService] [rules/B1DMUjdkTJSFTD5wKswttQ] create_mapping [rule]
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataCreateIndexService] [issues] creating index, cause [api], templates , shards [5]/[0], mappings
2020.01.02 10:35:06 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[issues][4]] …]).
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataMappingService] [issues/v_LV7nbpQdSe76O3s2WFOQ] create_mapping [auth]
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataCreateIndexService] [users] creating index, cause [api], templates , shards [1]/[0], mappings
2020.01.02 10:35:06 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[users][0]] …]).
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataMappingService] [users/NbzyBYggSru924EC-iqXeQ] create_mapping [user]
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataCreateIndexService] [views] creating index, cause [api], templates , shards [5]/[0], mappings
2020.01.02 10:35:06 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[views][4]] …]).
2020.01.02 10:35:06 INFO es[o.e.c.m.MetaDataMappingService] [views/IKlk6mlmRFGGxvN896SGIw] create_mapping [view]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [30s] to [-1]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]
2020.01.02 10:35:23 INFO es[o.e.c.s.IndexScopedSettings] updating [index.refresh_interval] from [-1] to [30s]

If you have a solution …

Thanks

1 Like

Welcome to the community forum! Can you show us your aws Security Group policy, just to double-check ? Your SQ configuration looks fine.

Hello/Salut Pierre,

SG Configuration bellow :

  • Outbound : ALLOW ALL

Thanks

I fail to reproduce your issue. I started a fresh t2.medium Amazon2 instance with all defaults values, and installed java+sonarqube like this :

sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
sudo yum install -y unzip java-11-amazon-corretto-devel.x86_64
curl -O https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-8.1.0.31237.zip
unzip sonarqube-8.1.0.31237.zip
./sonarqube-8.1.0.31237/bin/linux-x86-64/sonar.sh console

Inbound rules :


Outbound rules :

And everything is fine. Could you try to start without PostgreSQL ? (comment out your sonar.jdbc in your sonar.properties)

Are you starting a new instance, or reusing a previous vm from another usage ?

Hello Pierre,

Final diagnostic was the company global firewall who blocks outgoing traffics. Haven’t try it first because i never had issues before. Issue Layer 8 I’m sorry.

Works fine with your install script, i tried without and with the jdbc config.

We can close this issue.

Thanks again and sorry for all this, bye

1 Like

Thanks for coming back to us with the final explanation. I’m glad you could get this sorted out.