Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
sonarqube-9.9.0.65466 -
how is SonarQube deployed: zip, Docker, Helm
zip -
what are you trying to achieve
-
what have you tried so far to achieve this
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
sonar.log
2023.07.19 13:21:53 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-9.9.0.65466/temp
2023.07.19 13:21:53 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:41017]
2023.07.19 13:21:54 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube-9.9.0.65466/elasticsearch]: /opt/sonarqube-9.9.0.65466/elasticsearch/bin/elasticsearch
2023.07.19 13:21:54 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.07.19 13:22:04 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2023.07.19 13:22:04 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube-9.9.0.65466]: /usr/lib/jvm/java-17-openjdk-17.0.6.0.9-0.3.ea.el8.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube-9.9.0.65466/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.9.0.65466.jar:/opt/sonarqube-9.9.0.65466/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube-9.9.0.65466/temp/sq-process7500580893807083464properties
2023.07.19 13:22:12 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.07.19 13:22:12 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
es.log
2023.07.19 13:23:25 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{O-mmgnrqS9KWwMeMRUi0uQ}{00uvUo8xQtqFzCE6fnCyiQ}{127.0.0.1}{127.0.0.1:40809}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 4871, version: 56287, delta: master node changed {previous [], current [{sonarqube}{O-mmgnrqS9KWwMeMRUi0uQ}{00uvUo8xQtqFzCE6fnCyiQ}{127.0.0.1}{127.0.0.1:40809}{cdfhimrsw}]}
2023.07.19 13:23:25 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{O-mmgnrqS9KWwMeMRUi0uQ}{00uvUo8xQtqFzCE6fnCyiQ}{127.0.0.1}{127.0.0.1:40809}{cdfhimrsw}]}, term: 4871, version: 56287, reason: Publication{term=4871, version=56287}
2023.07.19 13:23:25 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.07.19 13:23:25 INFO es[][o.e.n.Node] started
2023.07.19 13:23:26 INFO es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2023.07.19 13:23:27 INFO es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[projectmeasures][3], [projectmeasures][2], [metadatas][0]]]).
2023.07.19 13:23:36 INFO es[][o.e.n.Node] stopping ...
2023.07.19 13:23:36 INFO es[][o.e.n.Node] stopped
2023.07.19 13:23:36 INFO es[][o.e.n.Node] closing ...
2023.07.19 13:23:36 INFO es[][o.e.n.Node] closed
2023.07.19 13:23:40 INFO es[][o.e.n.Node] version[7.17.8], pid[56027], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/4.18.0-408.el8.x86_64/amd64], JVM[Red Hat, Inc./OpenJDK 64-Bit Server VM/17.0.6-ea/17.0.6-ea+9-LTS]
2023.07.19 13:23:40 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-17-openjdk-17.0.6.0.9-0.3.ea.el8.x86_64]
2023.07.19 13:23:40 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]
2023.07.19 13:23:40 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2023.07.19 13:23:40 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2023.07.19 13:23:40 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2023.07.19 13:23:40 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2023.07.19 13:23:40 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2023.07.19 13:23:40 INFO es[][o.e.p.PluginsService] no plugins loaded
2023.07.19 13:23:40 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube-9.9.0.65466 (/dev/xvdb1)]], net usable_space [45.8gb], net total_space [48.9gb], types [ext4]
2023.07.19 13:23:40 INFO es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2023.07.19 13:23:41 INFO es[][o.e.n.Node] node name [sonarqube], node ID [O-mmgnrqS9KWwMeMRUi0uQ], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.07.19 13:23:45 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}]
2023.07.19 13:23:45 INFO es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.07.19 13:23:45 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.07.19 13:23:46 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.07.19 13:23:46 INFO es[][o.e.n.Node] initialized
2023.07.19 13:23:46 INFO es[][o.e.n.Node] starting ...
2023.07.19 13:23:46 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:37795}, bound_addresses {127.0.0.1:37795}
2023.07.19 13:23:47 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.07.19 13:23:47 INFO es[][o.e.c.c.Coordinator] cluster UUID [ljaBjGDnRIWyCIyhKThXEQ]
2023.07.19 13:23:47 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{O-mmgnrqS9KWwMeMRUi0uQ}{_MTBrbITQtG8kMLpdtgCvw}{127.0.0.1}{127.0.0.1:37795}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 4872, version: 56307, delta: master node changed {previous [], current [{sonarqube}{O-mmgnrqS9KWwMeMRUi0uQ}{_MTBrbITQtG8kMLpdtgCvw}{127.0.0.1}{127.0.0.1:37795}{cdfhimrsw}]}
2023.07.19 13:23:47 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{O-mmgnrqS9KWwMeMRUi0uQ}{_MTBrbITQtG8kMLpdtgCvw}{127.0.0.1}{127.0.0.1:37795}{cdfhimrsw}]}, term: 4872, version: 56307, reason: Publication{term=4872, version=56307}
2023.07.19 13:23:47 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.07.19 13:23:47 INFO es[][o.e.n.Node] started
2023.07.19 13:23:47 INFO es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2023.07.19 13:23:51 INFO es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[projectmeasures][0], [metadatas][0]]]).
2023.07.19 13:23:59 INFO es[][o.e.n.Node] stopping ...
2023.07.19 13:23:59 INFO es[][o.e.n.Node] stopped
2023.07.19 13:23:59 INFO es[][o.e.n.Node] closing ...
2023.07.19 13:23:59 INFO es[][o.e.n.Node] closed
2023.07.19 13:24:04 INFO es[][o.e.n.Node] version[7.17.8], pid[56375], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/4.18.0-408.el8.x86_64/amd64], JVM[Red Hat, Inc./OpenJDK 64-Bit Server VM/17.0.6-ea/17.0.6-ea+9-LTS]
2023.07.19 13:24:04 INFO es[][o.e.n.Node] JVM home [/usr/lib/jvm/java-17-openjdk-17.0.6.0.9-0.3.ea.el8.x86_64]
2023.07.19 13:24:04 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]
2023.07.19 13:24:04 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2023.07.19 13:24:04 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2023.07.19 13:24:04 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2023.07.19 13:24:04 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2023.07.19 13:24:04 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2023.07.19 13:24:04 INFO es[][o.e.p.PluginsService] no plugins loaded
SonarQube was working normally and users were added to use AD account login. Last time successful login using AD account was 9 days back. Since then no one used it. Today I tried to login and received error “AD authentication failed”. I didn’t find anything in logs and I changed log mode to Debug and restarted the service. Since then SonarQube doesn’t start and errors are repeated in logs files as given above in sonar.log & ec.log
Please help