Sonarqube is not running - Linux ec2

Hi ,

I am getting below error while running the sonarqube 9.9.3 version in linux. Please find the logs below. When I start the sonar.sh file it shows “Removed stale pid file: ./SonarQube.pid”. I am using postgresql15 as database, with JDK version 17

es.log

2023.11.22 08:10:33 INFO es[o.e.n.Node] version[7.17.8], pid[31914], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/6.1.61-85.141.amzn2023.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot™ 64-Bit Server VM/17.0.9/17.0.9+11-LTS-201]
2023.11.22 08:10:33 INFO es[o.e.n.Node] JVM home [/usr/local/jdk-17.0.9]
2023.11.22 08:10:33 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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -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.11.22 08:10:34 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2023.11.22 08:10:34 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2023.11.22 08:10:34 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2023.11.22 08:10:34 INFO es[o.e.p.PluginsService] loaded module [reindex]
2023.11.22 08:10:34 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2023.11.22 08:10:34 INFO es[o.e.p.PluginsService] no plugins loaded
2023.11.22 08:10:34 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [5.2gb], net total_space [7.9gb], types [xfs]
2023.11.22 08:10:34 INFO es[o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2023.11.22 08:10:34 INFO es[o.e.n.Node] node name [sonarqube], node ID [PfUj2e4hRieD0axsGnBf2g], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.11.22 08:10:37 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.11.22 08:10:38 INFO es[o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.11.22 08:10:38 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.11.22 08:10:38 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.11.22 08:10:38 INFO es[o.e.n.Node] initialized
2023.11.22 08:10:38 INFO es[o.e.n.Node] starting …
2023.11.22 08:10:38 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:43303}, bound_addresses {127.0.0.1:43303}
2023.11.22 08:10:38 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.11.22 08:10:38 ERROR es[o.e.b.Bootstrap] node validation exception
[1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2023.11.22 08:10:38 INFO es[o.e.n.Node] stopping …
2023.11.22 08:10:38 INFO es[o.e.n.Node] stopped
2023.11.22 08:10:38 INFO es[o.e.n.Node] closing …
2023.11.22 08:10:38 INFO es[o.e.n.Node] closed

sonar.log

2023.11.22 08:10:31 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.11.22 08:10:31 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:43303]
2023.11.22 08:10:31 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.11.22 08:10:31 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.11.22 08:10:39 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78
2023.11.22 08:10:39 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.11.22 08:10:39 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Hi,

This is the problem:

And this is the instructions on how to fix this issue: Prerequisites and overview

Hi Felipe

Thanks thats worked. But now the error looks different. Can you check it once please

==================
2023.11.22 12:51:37 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.11.22 12:51:37 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:45803]
2023.11.22 12:51:37 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2023.11.22 12:51:37 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.11.22 12:51:39 INFO es[o.e.n.Node] version[7.17.8], pid[30662], build[default/tar/120eabe1c8a0cb2ae87cffc109a5b65d213e9df1/2022-12-02T17:33:09.727072865Z], OS[Linux/6.1.61-85.141.amzn2023.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot™ 64-Bit Server VM/17.0.9/17.0.9+11-LTS-201]
2023.11.22 12:51:39 INFO es[o.e.n.Node] JVM home [/usr/local/jdk-17.0.9]
2023.11.22 12:51:39 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, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -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.11.22 12:51:40 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2023.11.22 12:51:40 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2023.11.22 12:51:40 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2023.11.22 12:51:40 INFO es[o.e.p.PluginsService] loaded module [reindex]
2023.11.22 12:51:40 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2023.11.22 12:51:40 INFO es[o.e.p.PluginsService] no plugins loaded
2023.11.22 12:51:40 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [5.2gb], net total_space [7.9gb], types [xfs]
2023.11.22 12:51:40 INFO es[o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2023.11.22 12:51:40 INFO es[o.e.n.Node] node name [sonarqube], node ID [-tu_qPcVQ6WVH9C21v-U3A], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2023.11.22 12:51:44 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.11.22 12:51:44 INFO es[o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2023.11.22 12:51:44 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2023.11.22 12:51:44 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.11.22 12:51:44 INFO es[o.e.n.Node] initialized
2023.11.22 12:51:44 INFO es[o.e.n.Node] starting …
2023.11.22 12:51:44 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:45803}, bound_addresses {127.0.0.1:45803}
2023.11.22 12:51:45 INFO es[o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2023.11.22 12:51:45 INFO es[o.e.c.c.Coordinator] cluster UUID [mz1xdKGmRb28wKH3SXxBtw]
2023.11.22 12:51:45 INFO es[o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{-tu_qPcVQ6WVH9C21v-U3A}{SNGne1fmRQ-fXNZOLeWHNA}{127.0.0.1}{127.0.0.1:45803}{cdfhimrsw} elect leader, BECOME_MASTER_TASK, FINISH_ELECTION], term: 2, version: 3, delta: master node changed {previous , current [{sonarqube}{-tu_qPcVQ6WVH9C21v-U3A}{SNGne1fmRQ-fXNZOLeWHNA}{127.0.0.1}{127.0.0.1:45803}{cdfhimrsw}]}
2023.11.22 12:51:45 INFO es[o.e.c.s.ClusterApplierService] master node changed {previous , current [{sonarqube}{-tu_qPcVQ6WVH9C21v-U3A}{SNGne1fmRQ-fXNZOLeWHNA}{127.0.0.1}{127.0.0.1:45803}{cdfhimrsw}]}, term: 2, version: 3, reason: Publication{term=2, version=3}
2023.11.22 12:51:45 INFO es[o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2023.11.22 12:51:45 INFO es[o.e.n.Node] started
2023.11.22 12:51:45 INFO es[o.e.g.GatewayService] recovered [0] indices into cluster_state
2023.11.22 12:51:45 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2023.11.22 12:51:45 INFO app[o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [/opt/sonarqube]: /usr/local/jdk-17.0.9/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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.3.79811.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process18216757718539171586properties
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.3.79811.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.11.22 12:51:45 INFO web[o.s.p.ProcessEntryPoint] Starting Web Server
2023.11.22 12:51:47 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 9.9.3.79811 / 4fefd8061afc12c43078b4cee31db2e4618b4fd6
2023.11.22 12:51:47 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost/sonarqube
2023.11.22 12:51:47 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Starting…
2023.11.22 12:51:47 INFO web[c.z.h.p.HikariPool] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@659a2455
2023.11.22 12:51:47 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Start completed.
2023.11.22 12:51:48 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2023.11.22 12:51:48 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2023.11.22 12:51:49 INFO web[o.s.s.p.d.m.h.MigrationHistoryTableImpl] Creating table schema_migrations
2023.11.22 12:51:49 WARN web[o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl’: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to create table schema_migrations
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27-org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl’: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to create table schema_migrations
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:187)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80)
at org.sonar.server.platform.platformlevel.PlatformLevel2.start(PlatformLevel2.java:103)
at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:196)
at org.sonar.server.platform.PlatformImpl.startLevel2Container(PlatformImpl.java:169)
at org.sonar.server.platform.PlatformImpl.init(PlatformImpl.java:77)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:72)
at org.sonar.server.app.WebServer.start(WebServer.java:55)
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:104)
Caused by: java.lang.IllegalStateException: Failed to create table schema_migrations
at org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl.start(MigrationHistoryTableImpl.java:48)
at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
… 44 common frames omitted
Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for schema public
Position: 14
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2366)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:356)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:496)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:413)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:333)
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:319)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:295)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:290)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl.execute(MigrationHistoryTableImpl.java:71)
at org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl.createTable(MigrationHistoryTableImpl.java:59)
at org.sonar.server.platform.db.migration.history.MigrationHistoryTableImpl.start(MigrationHistoryTableImpl.java:45)
… 48 common frames omitted
2023.11.22 12:51:49 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated…
2023.11.22 12:51:49 INFO web[c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed.
2023.11.22 12:51:49 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [sonarqube] appears to have started a thread named [HikariPool-1 connection closer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
2023.11.22 12:51:49 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.11.22 12:51:49 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process
2023.11.22 12:51:49 INFO app[o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.11.22 12:51:49 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143
2023.11.22 12:51:49 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.11.22 12:51:49 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Resolved it by granting privileges to sonar user