Wrapper stopped error in sonarqube developer version

i am trying to install sonarqube version 10 but not at all working could you plz help me which developer edition is good to work upon?kindly help

i try to install now developer version 9 and running fine when i checked the status but error logs show wrapper stopped can you plz look into this priority

<-[2]+ Stopped tail -f sonar.20240322.log
[root@ip-10-32-73-179 logs]# tail sonar.20240322.log
2024.03.22 13:24:40 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2024.03.22 13:24:40 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2024.03.22 13:24:40 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2024.03.22 13:24:40 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped- Wrapper Stopped
→ Wrapper Started as Daemon
Launching a JVM…

Welcome :slight_smile:

to understand what’s going on we need to check the logs, see

[es] indicates it’s related to elastic search (es.log).
Post your log files with sensible parts redacted like sonarqube hostname … etc.

Gilbert

es.log

024.03.25 00:00:09 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]]]).
2024.03.25 00:00:12 INFO es[o.e.n.Node] stopping …
2024.03.25 00:00:12 INFO es[o.e.n.Node] stopped
2024.03.25 00:00:12 INFO es[o.e.n.Node] closing …
2024.03.25 00:00:12 INFO es[o.e.n.Node] closed
2024.03.25 00:00:15 INFO es[o.e.n.Node] version[7.17.8], pid[30628], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/4.14.320-243.544.amzn2.x86_64/amd64], JVM[Amazon.com Inc./OpenJDK 64-Bit Server VM/17.0.7/17.0.7+7-LTS]
2024.03.25 00:00:15 INFO es[o.e.n.Node] JVM home [/usr/lib/jvm/java-17-amazon-corretto.x86_64]
2024.03.25 00:00:15 INFO es[o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube-9.9.0.65466/temp, -XX:ErrorFile=/opt/sonarqube-9.9.0.65466/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-9.9.0.65466/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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube-9.9.0.65466/elasticsearch, -Des.path.conf=/opt/sonarqube-9.9.0.65466/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2024.03.25 00:00:16 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2024.03.25 00:00:16 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2024.03.25 00:00:16 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2024.03.25 00:00:16 INFO es[o.e.p.PluginsService] loaded module [reindex]
2024.03.25 00:00:16 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2024.03.25 00:00:16 INFO es[o.e.p.PluginsService] no plugins loaded
2024.03.25 00:00:16 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [26.1gb], net total_space [39.9gb], types [xfs]
2024.03.25 00:00:16 INFO es[o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2024.03.25 00:00:16 INFO es[o.e.n.Node] node name [sonarqube], node ID [3L5qfy_KQuO9w_SHxu8mSg], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2024.03.25 00:00:19 INFO es[o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=512mb}]
2024.03.25 00:00:19 INFO es[o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2024.03.25 00:00:19 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2024.03.25 00:00: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
2024.03.25 00:00:20 INFO es[o.e.n.Node] initialized
2024.03.25 00:00:20 INFO es[o.e.n.Node] starting …
2024.03.25 00:00:20 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:38613}, bound_addresses {127.0.0.1:38613}
2024.03.25 00:00:20 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2024.03.25 00:00:20 INFO es[o.e.c.c.Coordinator] cluster UUID [rUEBuQ64QG2qQOIvQDbwsQ]
2024.03.25 00:00:21 INFO es[o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{3L5qfy_KQuO9w_SHxu8mSg}{op3s6AIiQuS4H4_wKMLBAw}{127.0.0.1}{127.0.0.1:38613}{cdfhimrsw} elect leader, BECOME_MASTER_TASK, FINISH_ELECTION], term: 111440, version: 2980973, delta: master node changed {previous , current [{sonarqube}{3L5qfy_KQuO9w_SHxu8mSg}{op3s6AIiQuS4H4_wKMLBAw}{127.0.0.1}{127.0.0.1:38613}{cdfhimrsw}]}
2024.03.25 00:00:21 INFO es[o.e.c.s.ClusterApplierService] master node changed {previous , current [{sonarqube}{3L5qfy_KQuO9w_SHxu8mSg}{op3s6AIiQuS4H4_wKMLBAw}{127.0.0.1}{127.0.0.1:38es.log

Can you post the other logfiles (sonar.log, web.log …) as well ?

sonar.log
[root@ip-10-32-73-179 logs]# tail -f sonar.20240325.log
2024.03.25 09:40:57 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2024.03.25 09:40:59 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2024.03.25 09:40:59 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube-9.3.0.51899]: /usr/lib/jvm/java-11-openjdk-11.0.22.0.7-1.amzn2.0.1.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube-9.3.0.51899/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.3.0.51899.jar:/opt/sonarqube-9.3.0.51899/lib/jdbc/postgresql/postgresql-42.3.1.jar org.sonar.server.app.WebServer /opt/sonarqube-9.3.0.51899/temp/sq-process12272173504999960423properties
2024.03.25 09:41:03 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2024.03.25 09:41:03 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2024.03.25 09:41:03 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2024.03.25 09:41:03 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
← 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.

web.log
2024.03.25 00:00:01 INFO web[o.s.p.ProcessEntryPoint] Starting web
2024.03.25 00:00:03 ERROR web[o.a.c.c.StandardService] Failed to initialize connector [Connector[HTTP/1.1-9000]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:1076)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:843)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:440)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:72)
at org.sonar.server.app.WebServer.start(WebServer.java:53)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:102)
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:459)
at java.base/sun.nio.ch.Net.bind(Net.java:448)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:221)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1161)
at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:222)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:599)
at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:80)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:1074)
… 12 common frames omitted
2024.03.25 00:00:03 ERROR web[o.s.s.a.EmbeddedTomcat] Fail to start web server
org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-9000]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:843)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:440)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:72)
at org.sonar.server.app.WebServer.start(WebServer.java:53)

Sonarqube 9.9.x LTS needs to run with Java 17, see

ok let me try 17 .

sonar.log after installing java 17

root@ip-10-32-73-179 logs]# tail -f sonar.2024032
sonar.20240322.log sonar.20240323.log sonar.20240324.log sonar.20240325.log
[root@ip-10-32-73-179 logs]# tail -f sonar.2024032
sonar.20240322.log sonar.20240323.log sonar.20240324.log sonar.20240325.log
[root@ip-10-32-73-179 logs]# tail -f sonar.20240325.log
Unable to start JVM: No such file or directory (2)
JVM exited while loading the application.
JVM Restarts disabled. Shutting down.
← Wrapper Stopped
→ Wrapper Started as Daemon
Launching a JVM…
Unable to start JVM: No such file or directory (2)
JVM exited while loading the application.
JVM Restarts disabled. Shutting down.
← Wrapper Stopped

when i try to give java path in wrapper.conf . sonar is running now. but still i am not getting login page

es.log:
root@ip-10-32-73-179 logs]# tail -n 100 es.log
2024.03.25 10:37:28 INFO es[o.e.n.Node] JVM home [/opt/jdk-17]
2024.03.25 10:37:28 INFO es[o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube-9.3.0.51899/temp, -XX:ErrorFile=…/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-9.3.0.51899/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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube-9.3.0.51899/elasticsearch, -Des.path.conf=/opt/sonarqube-9.3.0.51899/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2024.03.25 10:38:07 INFO es[o.e.n.Node] version[7.16.3], pid[26425], build[default/tar/4e6e4eab2297e949ec994e688dad46290d018022/2022-01-06T23:43:02.825887787Z], OS[Linux/5.10.210-201.852.amzn2.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/17/17+35-2724]
2024.03.25 10:38:07 INFO es[o.e.n.Node] JVM home [/opt/jdk-17]
2024.03.25 10:38:07 INFO es[o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube-9.3.0.51899/temp, -XX:ErrorFile=…/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-9.3.0.51899/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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube-9.3.0.51899/elasticsearch, -Des.path.conf=/opt/sonarqube-9.3.0.51899/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2024.03.25 10:39:12 INFO es[o.e.n.Node] version[7.16.3], pid[30502], build[default/tar/4e6e4eab2297e949ec994e688dad46290d018022/2022-01-06T23:43:02.825887787Z], OS[Linux/5.10.210-201.852.amzn2.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/17/17+35-2724]
2024.03.25 10:39:12 INFO es[o.e.n.Node] JVM home [/opt/jdk-17]
2024.03.25 10:39:12 INFO es[o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=/opt/sonarqube-9.3.0.51899/temp, -XX:ErrorFile=…/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-9.3.0.51899/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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube-9.3.0.51899/elasticsearch, -Des.path.conf=/opt/sonarqube-9.3.0.51899/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=false]
2024.03.25 10:39:57 INFO es[o.e.n.Node] version[7.16.3], pid[770], build[default/tar/4e6e4eab2297e949ec994e688dad46290d018022/2022-01-06T23:43:02.825887787Z], OS[Linux/5.10.210-201.852.amzn2.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/17/17+35-2724]
2024.03.25 10:40:41 INFO es[o.e.n.Node] version[7.16.3], pid[3279], build[default/tar/4e6e4eab2297e949ec994e688dad46290d018022/2022-01-06T23:43:02.825887787Z], OS[Linux/5.10.210-201.852.amzn2.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/17/17+35-2724]
2024.03.25 10:40:41 INFO es[o.e.n.Node] JVM home [/opt/jdk-17]

sonar.log
[root@ip-10-32-73-179 logs]# tail sonar.20240325.log
← 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.

2024.03.25 11:17:09 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-9.3.0.51899/temp
2024.03.25 11:17:09 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:33807]
2024.03.25 11:17:09 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-9.3.0.51899/elasticsearch]: /opt/sonarqube-9.3.0.51899/elasticsearch/bin/elasticsearch
2024.03.25 11:17:09 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
[root@ip-10-32-73-179 logs]#

can you help me on priority.
I have sonarqube sonarqube-9.3.0.51899 developer version as i have subsciption for 1 year

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.3 → 9.9.4 → 10.4 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
Ann

can help me where to set echo $SONAR_JAVA_PATH
as when i install 9.9 developer version . i am not able to see wrapper.conf


– The result is failed.
Mar 26 14:05:30 ip-10-32-73-179.ec2.internal sonar.sh[15777]: Java not found. Please make sure that the environmental variable SONAR_JAVA_PATH points to a Java executable
Mar 26 14:05:30 ip-10-32-73-179.ec2.internal systemd[1]: Unit sonar.service entered failed state.
Mar 26 14:05:30 ip-10-32-73-179.ec2.internal systemd[1]: sonar.service failed.
Mar 26 14:05:31 ip-10-32-73-179.ec2.internal systemd[1]: sonar.service holdoff time over, scheduling restart.
Mar 26 14:05:31 ip-10-32-73-179.ec2.internal systemd[1]: Stopped SonarQube service.
– Subject: Unit sonar.service has finished shutting down
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit sonar.service has finished shutting down.
Mar 26 14:05:31 ip-10-32-73-179.ec2.internal systemd[1]: start request repeated too quickly for sonar.service
Mar 26 14:05:31 ip-10-32-73-179.ec2.internal systemd[1]: Failed to start SonarQube service.
– Subject: Unit sonar.service has failed
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit sonar.service has failed.

– The result is failed.
Mar 26 14:05:31 ip-10-32-73-179.ec2.internal systemd[1]: Unit sonar.service entered failed state.
Mar 26 14:05:31 ip-10-32-73-179.ec2.internal systemd[1]: sonar.service failed.

The Tanuki service wrapper with wrapper.conf is not used anymore by Sonarqube.
By default Sonarqube will use the Java executable in the PATH.
You may set a specific Java version for Sonarqube via environment variable SONAR_JAVA_PATH,
see