Upgraded SonarQube stopping automatically

Hello @ganncamp

I just uninstalled the previous chart and installed a new one by going through the official helm chart for sonarqube still I’m getting crashlooperror
I don’t know what i am missing.
Can you please help me here.

Regards
Atib Junaid

Hi Atib,

Can you share your logs?

 
Ann

Hi @ganncamp
I am trying to upgrade from 9.8 to 9.9 and its failing and my logs are similar.
Sonarqube is stopping automatically.

Can you please help here.
logs

2023.05.09 14:33:16 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.05.09 14:33:16 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:42599]
2023.05.09 14:33:16 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.05.09 14:33:16 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.05.09 14:33:17 INFO es[o.e.n.Node] version[7.17.8], pid[27], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/5.4.228-131.415.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.6/17.0.6+10]
2023.05.09 14:33:17 INFO es[o.e.n.Node] JVM home [/opt/java/openjdk]
2023.05.09 14:33:17 INFO es[o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=/opt/sonarqube/logs/es_hs_err_pid%p.log, -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, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx2G, -Xms2G, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [reindex]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] no plugins loaded
2023.05.09 14:33:18 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/nvme0n1p1)]], net usable_space [39.7gb], net total_space [49.9gb], types [xfs]
2023.05.09 14:33:18 INFO es[o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]
2023.05.09 14:33:18 INFO es[o.e.n.Node] node name [sonarqube], node ID [2Zwl9_2UTYOgVqEkPEsmRQ], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.05.09 14:33:20 INFO es[o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]
2023.05.09 14:33:20 INFO es[o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.05.09 14:33:20 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.05.09 14:33:20 INFO es[o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2023.05.09 14:33:20 INFO es[o.e.n.Node] initialized
2023.05.09 14:33:20 INFO es[o.e.n.Node] starting …
2023.05.09 14:33:20 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:42599}, bound_addresses {127.0.0.1:42599}
2023.05.09 14:33:20 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.05.09 14:33:20 INFO es[o.e.c.c.Coordinator] setting initial configuration to VotingConfiguration{2Zwl9_2UTYOgVqEkPEsmRQ}
2023.05.09 14:33:20 INFO es[o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw} elect leader, *BECOME_MASTER_TASK*, *FINISH_ELECTION*], term: 1, version: 1, delta: master node changed {previous , current [{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw}]}
2023.05.09 14:33:20 INFO es[o.e.c.c.CoordinationState] cluster UUID set to [hdU1M3kKRGaNeE5yimgieQ]
2023.05.09 14:33:20 INFO es[o.e.c.s.ClusterApplierService] master node changed {previous , current [{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
2023.05.09 14:33:20 INFO es[o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.05.09 14:33:20 INFO es[o.e.n.Node] started
2023.05.09 14:33:20 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.05.09 14:33:21 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2023.05.09 14:33:21 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --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 --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx1G -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.<em>|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process9949239869287124887properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube/lib/sonar-application-9.9.0.65466.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.05.09 14:33:21 INFO web[][o.s.p.ProcessEntryPoint] Starting Web Server
2023.05.09 14:33:22 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 9.9.0.65466 / ce743843018827cb30c05735e7971523de34bb48
2023.05.09 14:33:22 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://tf-postgres-to-sonarqube-non-prod.c0ncfhw2snjq.eu-central-1.rds.amazonaws.com:5432/sonardb
2023.05.09 14:33:22 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Starting…
2023.05.09 14:33:22 INFO web[][c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@2a9bc08f
2023.05.09 14:33:22 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Start completed.
2023.05.09 14:33:22 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2023.05.09 14:33:22 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is enabled
2023.05.09 14:33:22 INFO web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: enterprise-edition, ce-workers, developer-scanner, developer-server, governance, license, securityreport, monitoring, scim
2023.05.09 14:33:23 WARN web[][o.s.s.p.DatabaseServerCompatibility] The database must be manually upgraded. Please backup the database and browse /setup. For more information: [Upgrade guide](https://docs.sonarqube.org/latest/setup/upgrading)
2023.05.09 14:33:23 WARN app[][startup] ################################################################################
2023.05.09 14:33:23 WARN app[][startup] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
2023.05.09 14:33:23 WARN app[][startup] ################################################################################
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy ABAP Code Quality and Security / 3.11.0.4030 / efe73c1da897a69d2545e79710bec0909326dcdb
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Apex Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy C# Code Quality and Security / 8.51.0.59060 / e14c642f118958f22fd08841dc42f9aae480366a
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy CFamily Code Quality and Security / 6.41.0.60884 / 6efcc8197e558ca2a78cada46494e8afe8c821ff
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy COBOL Code Quality / 5.2.0.5949 / e2e398ef68a9ee212c8b991cf05ee1fae28e5326
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Configuration detection fot Code Quality and Security / 1.2.0.267 / 4f37ba9ffb37a96d5883e52ad392ed32c5c6eaab
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection Rules for Java / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection Rules for Python / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Flex Code Quality and Security / 2.8.0.3166 / 01f66bdddc678966c81a9064ed139156a6a89c97
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Go Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy HTML Code Quality and Security / 3.7.1.3306 / d720acc6860c6d8b69ec4d17570a398a1e216da1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy IaC Code Quality and Security / 1.11.0.2847 / 6892bd3a7320b3c110717acfdb18c4c7451069fd
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy JaCoCo / 1.3.0.1538 / 74a7798c7cea687c72ed9df40c93eb7ea2a58c49
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Java Code Quality and Security / 7.16.0.30901 / 4b1436558dfd5fc00c8d9aae8bb0364ba122c73e
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy JavaScript/TypeScript/CSS Code Quality and Security / 9.13.0.20537 / 68ff7657415044b86033814795ed95fc1f1558f1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Kotlin Code Quality and Security / 2.12.0.1956 / a6df1ae252bd62d63f8673c28f87ad14258a7904
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy OpenID Connect Authentication for SonarQube / 2.0.0 / null
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy PHP Code Quality and Security / 3.27.1.9352 / 3ddc5a03e1a7e3729d41e7c1a30a37d5715958c7
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy PL/I Code Quality and Security / 1.12.0.3443 / e9d43136dec6eea6c0129c12d2a019d141fdcc39
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy PL/SQL Code Quality and Security / 3.8.0.4948 / ab46f4c11644e5c9b17f0a5a1612d4b7362e04f3
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Python Code Quality and Security / 3.24.0.10784 / 30aa413d983f6c37b4298eba00555c3050009b52
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy RPG Code Quality / 3.3.0.3147 / 9cb6a4566eb55cc6b874220ab95f0504a952b560
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Ruby Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Scala Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Swift Code Quality and Security / 4.8.0.5759 / 3d5b95aaf19a398736a7f5eec314c3c05f7193d2
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy T-SQL Code Quality and Security / 1.7.0.5449 / 110c82f888b1f40e1c2a0d3165fcffd413af36a5
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Text Code Quality and Security / 2.0.1.611 / 53bfe3a68ae3886520d6a5c1c21dfdb564821ea1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy [VB.NET](http://vb.net/) Code Quality and Security / 8.51.0.59060 / e14c642f118958f22fd08841dc42f9aae480366a
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy VB6 Code Quality and Security / 2.9.0.3341 / 2066b6ff3d7c789fefa0b86c6f70e9c9eb08f852
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Analysis / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for C# / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for JS / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for Java / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for PHP / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for Python / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy XML Code Quality and Security / 2.7.0.3820 / 656bccc1910d50c8984536bd2dfd917066b858e6
2023.05.09 14:33:24 INFO web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2023.05.09 14:33:24 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [[http://localhost:9001](http://localhost:9001/)]
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2023.05.09 14:33:25 INFO web[][o.s.s.p.Platform] Database needs to be migrated. Please refer to [Upgrade guide](https://docs.sonarqube.org/latest/setup/upgrading)
2023.05.09 14:33:25 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@1753475d [pattern=UrlPattern{inclusions=[/api/system/migrate_db.</em>, …], exclusions=[/api/components/update_key, …]}]
2023.05.09 14:33:25 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Stopping SonarQube
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Sonarqube has been requested to stop
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Stopping [Compute Engine] process…
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Stopping [Web Server] process…
2023.05.09 14:34:37 INFO web[o.s.p.ProcessEntryPoint] Gracefully stopping process
2023.05.09 14:34:37 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated…
2023.05.09 14:34:37 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.05.09 14:34:37 INFO web[o.s.s.app.WebServer] Web Server stopped
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] Stopping [ElasticSearch] process…
2023.05.09 14:34:38 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Regards,
Muhammad Atib Junaid

Hello @hudson , @ganncamp

I am trying to upgrade from 9.8 to 9.9 and its failing and my logs are similar.
Sonarqube is stopping automatically.

Can you please help here.
logs

2023.05.09 14:33:16 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.05.09 14:33:16 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:42599]
2023.05.09 14:33:16 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.05.09 14:33:16 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.05.09 14:33:17 INFO  es[][o.e.n.Node] version[7.17.8], pid[27], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/5.4.228-131.415.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.6/17.0.6+10]
2023.05.09 14:33:17 INFO  es[][o.e.n.Node] JVM home [/opt/java/openjdk]
2023.05.09 14:33:17 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=/opt/sonarqube/logs/es_hs_err_pid%p.log, -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, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx2G, -Xms2G, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2023.05.09 14:33:17 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2023.05.09 14:33:17 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2023.05.09 14:33:17 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2023.05.09 14:33:17 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2023.05.09 14:33:17 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2023.05.09 14:33:17 INFO  es[][o.e.p.PluginsService] no plugins loaded
2023.05.09 14:33:18 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/nvme0n1p1)]], net usable_space [39.7gb], net total_space [49.9gb], types [xfs]
2023.05.09 14:33:18 INFO  es[][o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]
2023.05.09 14:33:18 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [2Zwl9_2UTYOgVqEkPEsmRQ], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.05.09 14:33:20 INFO  es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]
2023.05.09 14:33:20 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.05.09 14:33:20 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.05.09 14:33:20 INFO  es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2023.05.09 14:33:20 INFO  es[][o.e.n.Node] initialized
2023.05.09 14:33:20 INFO  es[][o.e.n.Node] starting ...
2023.05.09 14:33:20 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:42599}, bound_addresses {127.0.0.1:42599}
2023.05.09 14:33:20 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.05.09 14:33:20 INFO  es[][o.e.c.c.Coordinator] setting initial configuration to VotingConfiguration{2Zwl9_2UTYOgVqEkPEsmRQ}
2023.05.09 14:33:20 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw}]}
2023.05.09 14:33:20 INFO  es[][o.e.c.c.CoordinationState] cluster UUID set to [hdU1M3kKRGaNeE5yimgieQ]
2023.05.09 14:33:20 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
2023.05.09 14:33:20 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.05.09 14:33:20 INFO  es[][o.e.n.Node] started
2023.05.09 14:33:20 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.05.09 14:33:21 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2023.05.09 14:33:21 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --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 --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx1G -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process9949239869287124887properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube/lib/sonar-application-9.9.0.65466.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.05.09 14:33:21 INFO  web[][o.s.p.ProcessEntryPoint] Starting Web Server
2023.05.09 14:33:22 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 9.9.0.65466 / ce743843018827cb30c05735e7971523de34bb48
2023.05.09 14:33:22 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://tf-postgres-to-sonarqube-non-prod.c0ncfhw2snjq.eu-central-1.rds.amazonaws.com:5432/sonardb
2023.05.09 14:33:22 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Starting...
2023.05.09 14:33:22 INFO  web[][c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@2a9bc08f
2023.05.09 14:33:22 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Start completed.
2023.05.09 14:33:22 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2023.05.09 14:33:22 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is enabled
2023.05.09 14:33:22 INFO  web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: enterprise-edition, ce-workers, developer-scanner, developer-server, governance, license, securityreport, monitoring, scim
2023.05.09 14:33:23 WARN  web[][o.s.s.p.DatabaseServerCompatibility] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
2023.05.09 14:33:23 WARN  app[][startup] ################################################################################
2023.05.09 14:33:23 WARN  app[][startup] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
2023.05.09 14:33:23 WARN  app[][startup] ################################################################################
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy ABAP Code Quality and Security / 3.11.0.4030 / efe73c1da897a69d2545e79710bec0909326dcdb
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Apex Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy C# Code Quality and Security / 8.51.0.59060 / e14c642f118958f22fd08841dc42f9aae480366a
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy CFamily Code Quality and Security / 6.41.0.60884 / 6efcc8197e558ca2a78cada46494e8afe8c821ff
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy COBOL Code Quality / 5.2.0.5949 / e2e398ef68a9ee212c8b991cf05ee1fae28e5326
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Configuration detection fot Code Quality and Security / 1.2.0.267 / 4f37ba9ffb37a96d5883e52ad392ed32c5c6eaab
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection Rules for Java / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection Rules for Python / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Flex Code Quality and Security / 2.8.0.3166 / 01f66bdddc678966c81a9064ed139156a6a89c97
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Go Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy HTML Code Quality and Security / 3.7.1.3306 / d720acc6860c6d8b69ec4d17570a398a1e216da1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy IaC Code Quality and Security / 1.11.0.2847 / 6892bd3a7320b3c110717acfdb18c4c7451069fd
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JaCoCo / 1.3.0.1538 / 74a7798c7cea687c72ed9df40c93eb7ea2a58c49
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Java Code Quality and Security / 7.16.0.30901 / 4b1436558dfd5fc00c8d9aae8bb0364ba122c73e
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy JavaScript/TypeScript/CSS Code Quality and Security / 9.13.0.20537 / 68ff7657415044b86033814795ed95fc1f1558f1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Kotlin Code Quality and Security / 2.12.0.1956 / a6df1ae252bd62d63f8673c28f87ad14258a7904
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy OpenID Connect Authentication for SonarQube / 2.0.0 / null
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy PHP Code Quality and Security / 3.27.1.9352 / 3ddc5a03e1a7e3729d41e7c1a30a37d5715958c7
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy PL/I Code Quality and Security / 1.12.0.3443 / e9d43136dec6eea6c0129c12d2a019d141fdcc39
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy PL/SQL Code Quality and Security / 3.8.0.4948 / ab46f4c11644e5c9b17f0a5a1612d4b7362e04f3
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Python Code Quality and Security / 3.24.0.10784 / 30aa413d983f6c37b4298eba00555c3050009b52
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy RPG Code Quality / 3.3.0.3147 / 9cb6a4566eb55cc6b874220ab95f0504a952b560
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Ruby Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Scala Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Swift Code Quality and Security / 4.8.0.5759 / 3d5b95aaf19a398736a7f5eec314c3c05f7193d2
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy T-SQL Code Quality and Security / 1.7.0.5449 / 110c82f888b1f40e1c2a0d3165fcffd413af36a5
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Text Code Quality and Security / 2.0.1.611 / 53bfe3a68ae3886520d6a5c1c21dfdb564821ea1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy VB.NET Code Quality and Security / 8.51.0.59060 / e14c642f118958f22fd08841dc42f9aae480366a
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy VB6 Code Quality and Security / 2.9.0.3341 / 2066b6ff3d7c789fefa0b86c6f70e9c9eb08f852
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Analysis / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for C# / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for JS / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for Java / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for PHP / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for Python / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO  web[][o.s.s.p.ServerPluginManager] Deploy XML Code Quality and Security / 2.7.0.3820 / 656bccc1910d50c8984536bd2dfd917066b858e6
2023.05.09 14:33:24 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2023.05.09 14:33:24 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]
2023.05.09 14:33:25 WARN  web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN  web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN  web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2023.05.09 14:33:25 INFO  web[][o.s.s.p.Platform] Database needs to be migrated. Please refer to https://docs.sonarqube.org/latest/setup/upgrading
2023.05.09 14:33:25 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@1753475d [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
2023.05.09 14:33:25 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.05.09 14:34:37 INFO  app[][o.s.a.SchedulerImpl] Stopping SonarQube
2023.05.09 14:34:37 INFO  app[][o.s.a.SchedulerImpl] Sonarqube has been requested to stop
2023.05.09 14:34:37 INFO  app[][o.s.a.SchedulerImpl] Stopping [Compute Engine] process...
2023.05.09 14:34:37 INFO  app[][o.s.a.SchedulerImpl] Stopping [Web Server] process...
2023.05.09 14:34:37 INFO  web[][o.s.p.ProcessEntryPoint] Gracefully stopping process
2023.05.09 14:34:37 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated...
2023.05.09 14:34:37 INFO  web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.05.09 14:34:37 INFO  web[][o.s.s.app.WebServer] Web Server stopped
2023.05.09 14:34:38 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.05.09 14:34:38 INFO  app[][o.s.a.SchedulerImpl] Stopping [ElasticSearch] process...
2023.05.09 14:34:38 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.05.09 14:34:38 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.05.09 14:34:38 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

Regards,
Muhammad Atib Junaid

Hello,

You’ve now tried to hijack two different threads with nearly identical posts today. Don’t do that. Don’t hijack existing threads. Don’t post the same content to multiple threads.

When you have a question, post it - once - in a new thread.

Regarding your logs, I don’t see any errors. Have you read them? What do you make of the warnings?

 
Ann

I am trying to upgrade from 9.8 to 9.9 and its failing and my logs are similar.
Sonarqube is stopping automatically.

Can you please help here.
logs

2023.05.09 14:33:16 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.05.09 14:33:16 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:42599]
2023.05.09 14:33:16 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.05.09 14:33:16 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.05.09 14:33:17 INFO es[o.e.n.Node] version[7.17.8], pid[27], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/5.4.228-131.415.amzn2.x86_64/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.6/17.0.6+10]
2023.05.09 14:33:17 INFO es[o.e.n.Node] JVM home [/opt/java/openjdk]
2023.05.09 14:33:17 INFO es[o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=/opt/sonarqube/logs/es_hs_err_pid%p.log, -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, -Djna.tmpdir=/opt/sonarqube/temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Dcom.redhat.fips=false, -Des.enforce.bootstrap.checks=true, -Xmx2G, -Xms2G, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [reindex]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2023.05.09 14:33:17 INFO es[o.e.p.PluginsService] no plugins loaded
2023.05.09 14:33:18 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/nvme0n1p1)]], net usable_space [39.7gb], net total_space [49.9gb], types [xfs]
2023.05.09 14:33:18 INFO es[o.e.e.NodeEnvironment] heap size [2gb], compressed ordinary object pointers [true]
2023.05.09 14:33:18 INFO es[o.e.n.Node] node name [sonarqube], node ID [2Zwl9_2UTYOgVqEkPEsmRQ], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.05.09 14:33:20 INFO es[o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=256kb, suggested_max_allocation_size=256kb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=1mb}]
2023.05.09 14:33:20 INFO es[o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.05.09 14:33:20 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.05.09 14:33:20 INFO es[o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2023.05.09 14:33:20 INFO es[o.e.n.Node] initialized
2023.05.09 14:33:20 INFO es[o.e.n.Node] starting …
2023.05.09 14:33:20 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:42599}, bound_addresses {127.0.0.1:42599}
2023.05.09 14:33:20 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.05.09 14:33:20 INFO es[o.e.c.c.Coordinator] setting initial configuration to VotingConfiguration{2Zwl9_2UTYOgVqEkPEsmRQ}
2023.05.09 14:33:20 INFO es[o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw} elect leader, *BECOME_MASTER_TASK*, *FINISH_ELECTION*], term: 1, version: 1, delta: master node changed {previous , current [{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw}]}
2023.05.09 14:33:20 INFO es[o.e.c.c.CoordinationState] cluster UUID set to [hdU1M3kKRGaNeE5yimgieQ]
2023.05.09 14:33:20 INFO es[o.e.c.s.ClusterApplierService] master node changed {previous , current [{sonarqube}{2Zwl9_2UTYOgVqEkPEsmRQ}{OAFzqJ_DRI6MoSON2G5Ohg}{127.0.0.1}{127.0.0.1:42599}{cdfhimrsw}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
2023.05.09 14:33:20 INFO es[o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.05.09 14:33:20 INFO es[o.e.n.Node] started
2023.05.09 14:33:20 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.05.09 14:33:21 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2023.05.09 14:33:21 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --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 --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx1G -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.<em>|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process9949239869287124887properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube/lib/sonar-application-9.9.0.65466.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.05.09 14:33:21 INFO web[][o.s.p.ProcessEntryPoint] Starting Web Server
2023.05.09 14:33:22 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 9.9.0.65466 / ce743843018827cb30c05735e7971523de34bb48
2023.05.09 14:33:22 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://tf-postgres-to-sonarqube-non-prod.c0ncfhw2snjq.eu-central-1.rds.amazonaws.com:5432/sonardb
2023.05.09 14:33:22 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Starting…
2023.05.09 14:33:22 INFO web[][c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@2a9bc08f
2023.05.09 14:33:22 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Start completed.
2023.05.09 14:33:22 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2023.05.09 14:33:22 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is enabled
2023.05.09 14:33:22 INFO web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: enterprise-edition, ce-workers, developer-scanner, developer-server, governance, license, securityreport, monitoring, scim
2023.05.09 14:33:23 WARN web[][o.s.s.p.DatabaseServerCompatibility] The database must be manually upgraded. Please backup the database and browse /setup. For more information: [Upgrade guide](https://docs.sonarqube.org/latest/setup/upgrading)
2023.05.09 14:33:23 WARN app[][startup] ################################################################################
2023.05.09 14:33:23 WARN app[][startup] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
2023.05.09 14:33:23 WARN app[][startup] ################################################################################
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy ABAP Code Quality and Security / 3.11.0.4030 / efe73c1da897a69d2545e79710bec0909326dcdb
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Apex Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy C# Code Quality and Security / 8.51.0.59060 / e14c642f118958f22fd08841dc42f9aae480366a
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy CFamily Code Quality and Security / 6.41.0.60884 / 6efcc8197e558ca2a78cada46494e8afe8c821ff
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy COBOL Code Quality / 5.2.0.5949 / e2e398ef68a9ee212c8b991cf05ee1fae28e5326
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Configuration detection fot Code Quality and Security / 1.2.0.267 / 4f37ba9ffb37a96d5883e52ad392ed32c5c6eaab
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection Rules for Java / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Dataflow Bug Detection Rules for Python / 1.10.0.3046 / 0
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Flex Code Quality and Security / 2.8.0.3166 / 01f66bdddc678966c81a9064ed139156a6a89c97
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Go Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy HTML Code Quality and Security / 3.7.1.3306 / d720acc6860c6d8b69ec4d17570a398a1e216da1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy IaC Code Quality and Security / 1.11.0.2847 / 6892bd3a7320b3c110717acfdb18c4c7451069fd
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy JaCoCo / 1.3.0.1538 / 74a7798c7cea687c72ed9df40c93eb7ea2a58c49
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Java Code Quality and Security / 7.16.0.30901 / 4b1436558dfd5fc00c8d9aae8bb0364ba122c73e
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy JavaScript/TypeScript/CSS Code Quality and Security / 9.13.0.20537 / 68ff7657415044b86033814795ed95fc1f1558f1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Kotlin Code Quality and Security / 2.12.0.1956 / a6df1ae252bd62d63f8673c28f87ad14258a7904
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy OpenID Connect Authentication for SonarQube / 2.0.0 / null
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy PHP Code Quality and Security / 3.27.1.9352 / 3ddc5a03e1a7e3729d41e7c1a30a37d5715958c7
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy PL/I Code Quality and Security / 1.12.0.3443 / e9d43136dec6eea6c0129c12d2a019d141fdcc39
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy PL/SQL Code Quality and Security / 3.8.0.4948 / ab46f4c11644e5c9b17f0a5a1612d4b7362e04f3
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Python Code Quality and Security / 3.24.0.10784 / 30aa413d983f6c37b4298eba00555c3050009b52
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy RPG Code Quality / 3.3.0.3147 / 9cb6a4566eb55cc6b874220ab95f0504a952b560
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Ruby Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Scala Code Quality and Security / 1.11.0.3905 / e1f28bc000e04ca01881e84218d01d464a17a36f
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Swift Code Quality and Security / 4.8.0.5759 / 3d5b95aaf19a398736a7f5eec314c3c05f7193d2
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy T-SQL Code Quality and Security / 1.7.0.5449 / 110c82f888b1f40e1c2a0d3165fcffd413af36a5
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Text Code Quality and Security / 2.0.1.611 / 53bfe3a68ae3886520d6a5c1c21dfdb564821ea1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy [VB.NET](http://vb.net/) Code Quality and Security / 8.51.0.59060 / e14c642f118958f22fd08841dc42f9aae480366a
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy VB6 Code Quality and Security / 2.9.0.3341 / 2066b6ff3d7c789fefa0b86c6f70e9c9eb08f852
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Analysis / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for C# / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for JS / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for Java / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for PHP / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy Vulnerability Rules for Python / 9.9.0.19083 / 6139a53ee01a475a60f6e2944fff40f3fc00dbe1
2023.05.09 14:33:23 INFO web[][o.s.s.p.ServerPluginManager] Deploy XML Code Quality and Security / 2.7.0.3820 / 656bccc1910d50c8984536bd2dfd917066b858e6
2023.05.09 14:33:24 INFO web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2023.05.09 14:33:24 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [[http://localhost:9001](http://localhost:9001/)]
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] Description is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] Since is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/monitoring/metrics
2023.05.09 14:33:25 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/system/liveness
2023.05.09 14:33:25 INFO web[][o.s.s.p.Platform] Database needs to be migrated. Please refer to [Upgrade guide](https://docs.sonarqube.org/latest/setup/upgrading)
2023.05.09 14:33:25 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@1753475d [pattern=UrlPattern{inclusions=[/api/system/migrate_db.</em>, …], exclusions=[/api/components/update_key, …]}]
2023.05.09 14:33:25 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Stopping SonarQube
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Sonarqube has been requested to stop
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Stopping [Compute Engine] process…
2023.05.09 14:34:37 INFO app[o.s.a.SchedulerImpl] Stopping [Web Server] process…
2023.05.09 14:34:37 INFO web[o.s.p.ProcessEntryPoint] Gracefully stopping process
2023.05.09 14:34:37 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated…
2023.05.09 14:34:37 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.05.09 14:34:37 INFO web[o.s.s.app.WebServer] Web Server stopped
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] Stopping [ElasticSearch] process…
2023.05.09 14:34:38 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.05.09 14:34:38 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Regards,
Muhammad Atib Junaid

Hello @ganncamp

Sorry for that, i tried posting a new topic.
And later I saw your reply to the topic asking logs.

And i don’t have any information apart from those logs.

Iam currently using 9.8 and it’s running fine, and when I try upgrading to 9.9 its just stopped automatically.

Can you please give me some idea.

Regards,
Muhammad Atib Junaid

Hi,

I’ve combined all your posts here.

 
Ann

Hello @ganncamp
Thank you for combining to a single topic.

And still, sonarqube version 9.9 stops automatically with the above logs

Let me know if I’m missing something in my helm installation

Thank you in advance
Regards
Muhammad Atib Junaid

Hi Muhammad,

I still have the same question I’ve already asked twice:

 
Ann

Hello Ann

I am not getting any idea about the warnings what has to be done?

Yes i have read them, regarding the monitoring part.

But i am not getting how i can resolve it?

Regards,
Atib

HI,

Here’s the pertinent part:

Try that and see if it helps.

 
Ann

Hi @ganncamp

Database is already up to date.
/Setup says your database is updated.

Still it’s not running

Thank you

Atib

Hi Atib,

I guess the log you initially posted is from a different run than when you navigated to ${sonarqube-url}/setup and clicked the button? Because I would have expected to see the migration steps in the log. Instead, there’s this:

SonarQube didn’t shut itself down. An outside entity told it to shut down.

Do you perhaps have some external monitoring on SonarQube that might not be happy with how quickly it comes up?

 
Ann

Hello @ganncamp

Thanks for the update.
Here it stops only for version 9.9 and it works for 9.8

And i don’t have monitoring enabled.

Here I am bit confused, why it runs for 9.8 and not 9.9.

Is there any specific change which has to be checked before upgrading?

Regards,

Muhammad Atib Junaid

Hello @ganncamp

Sorry to bother you again
I am really in a confusion why this 9.9 version is not working and i could not see any more logs apart from what I shared.

Can you please have a look and let me know if i a m missing something

Regards,
Atib

Hi Atib,

I need to point you to the FAQ. Specifically:

I created a topic, when can I expect a response?

This is an open community with people volunteering their free time to provide assistance. We’re eager to contribute to the community, but you are not guaranteed a fast response.

Be patient

  • Wait a few days before bumping a topic that hasn’t received a response.
  • Do not @name mention individuals not involved in the topic.

Regarding your situation. You’ve posted a log which reflects a database that needs to be upgraded. You say you’ve done that. The log you’ve posted also reflects an external request to shut down, which you say you didn’t issue.

Please post a current log. We can go from there.

 
Ann

Hello,

Okay, I got it now.
I’ll be more patient from now.

Here when i check the database on version 9.8 https:yoursonarqube/setup it says
“Database is up-to-date”

and when i do a version upgrade and visit the page https:yoursonarqube/setup its not at all accessible.

“service unavailable”

I am sending you detail log again, after installing sonarqube with version 9.9.

It just wait for couple of minutes on
2023.05.15 16:01:02 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@1753475d [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, …], exclusions=[/api/components/update_key, …]}]
2023.05.15 16:01:02 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000

and process get stops automatically.
Is there any way, where i can upgrade the db on runtime, if its a db issue?

Or can i also try with 10.0 version ?

below are the logs.
sonarqube.log (16.1 KB)

Thank you in advance
Regards,
Atib

Hi Atib,

That log is exactly the same as what you posted earlier. It still reflects a database that needs upgrading. I’m asking for the full log from your most recent - post-upgrade - startup.

 
Ann

Hi,
Attaching you the logs for my previous
sonarqube_access.log (759.3 KB)
sonarqube_web (1).log (50.1 KB)
sonarqube_es.log (8.2 KB)
sonarqube_ce.log (29.1 KB)
sonarqube_app (1).log (2.7 KB)

This are the logs for 9.8 version downloaded from UI.

For the failed version, i have the only logs which i shared you previously.

Please let me know if any questions.

Regards,
Muhammad Atib Junaid