SonarQube not working - Process[web] is stopped Process[es] is stopped SonarQube is stopped error

Using Windows 10, Java 11, sonarqube 8.7.1.42226 version. tried all troubleshooting steps found in internet - changing port numbers, increasing/decreasing sonar.web.javaOpts, sonar.ce.javaOpts memory values. Need urgent help on this.

Hi @Saravanan_M and welcome to the community :wave:

what do the server logs say? they can be found in SONARQUBE_HOME/logs/ and there should at least be an es.log file in there.

Here is es.log

2021.03.25 17:32:00 INFO es[o.e.n.Node] version[7.10.2], pid[4724], build[unknown/unknown/747e1cc71def077253878a59143c1f785afa92b9/2021-01-13T00:42:12.435326Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot™ 64-Bit Server VM/11.0.10/11.0.10+8-LTS-162]
2021.03.25 17:32:00 INFO es[o.e.n.Node] JVM home [C:\Program Files\Java\jdk-11.0.10]
2021.03.25 17:32:00 INFO es[o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\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, -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, -Djava.locale.providers=COMPAT, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\elasticsearch, -Des.path.conf=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\temp\conf\es]
2021.03.25 17:32:01 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2021.03.25 17:32:01 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2021.03.25 17:32:01 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2021.03.25 17:32:01 INFO es[o.e.p.PluginsService] loaded module [percolator]
2021.03.25 17:32:01 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2021.03.25 17:32:01 INFO es[o.e.p.PluginsService] no plugins loaded
2021.03.25 17:32:01 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[Windows (C:)]], net usable_space [23.2gb], net total_space [117.4gb], types [NTFS]
2021.03.25 17:32:01 INFO es[o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true]
2021.03.25 17:32:02 INFO es[o.e.n.Node] node name [sonarqube], node ID [lyWS6XWyQmOZHgsgOK3uFw], cluster name [sonarqube], roles [master, remote_cluster_client, data, ingest]
2021.03.25 17:32:07 INFO es[o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=false, g1gc_region_size=0b, heap_size=494.9mb}]
2021.03.25 17:32:07 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2021.03.25 17:32:07 WARN 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
2021.03.25 17:32:08 INFO es[o.e.n.Node] initialized
2021.03.25 17:32:08 INFO es[o.e.n.Node] starting …
2021.03.25 17:32:08 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:54472}, bound_addresses {127.0.0.1:54472}
2021.03.25 17:32:09 INFO es[o.e.c.c.Coordinator] cluster UUID [U74JjSaaRzCz8yASZBNDGg]
2021.03.25 17:32:09 INFO es[o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{lyWS6XWyQmOZHgsgOK3uFw}{RMRj2pN_SqWelSSDAflz7w}{127.0.0.1}{127.0.0.1:54472}{dimr}{rack_id=sonarqube} elect leader, BECOME_MASTER_TASK, FINISH_ELECTION], term: 16, version: 338, delta: master node changed {previous , current [{sonarqube}{lyWS6XWyQmOZHgsgOK3uFw}{RMRj2pN_SqWelSSDAflz7w}{127.0.0.1}{127.0.0.1:54472}{dimr}{rack_id=sonarqube}]}
2021.03.25 17:32:09 INFO es[o.e.c.s.ClusterApplierService] master node changed {previous , current [{sonarqube}{lyWS6XWyQmOZHgsgOK3uFw}{RMRj2pN_SqWelSSDAflz7w}{127.0.0.1}{127.0.0.1:54472}{dimr}{rack_id=sonarqube}]}, term: 16, version: 338, reason: Publication{term=16, version=338}
2021.03.25 17:32:09 INFO es[o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2021.03.25 17:32:09 INFO es[o.e.n.Node] started
2021.03.25 17:32:09 INFO es[o.e.g.GatewayService] recovered [7] indices into cluster_state
2021.03.25 17:32:12 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]]]).

And Sonar.log

→ Wrapper Started as Console
Launching a JVM…
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2021.03.25 17:31:56 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\temp
2021.03.25 17:31:56 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:54472]
2021.03.25 17:31:56 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\elasticsearch]: C:\Program Files\Java\jdk-11.0.10\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\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 -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 -Djava.locale.providers=COMPAT -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\elasticsearch -Des.path.conf=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2021.03.25 17:31:56 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Java HotSpot™ 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2021.03.25 17:32:12 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2021.03.25 17:32:12 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226]: C:\Program Files\Java\jdk-11.0.10\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/;C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\lib\jdbc\h2\h2-1.4.199.jar org.sonar.server.app.WebServer C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\temp\sq-process3451198321838706506properties
2021.03.25 17:32:45 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2021.03.25 17:32:45 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2021.03.25 17:32:45 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
← Wrapper Stopped

okay es.log looks good, now what about the web.log ?

web.log

2021.03.25 17:32:14 INFO web[o.s.p.ProcessEntryPoint] Starting web
2021.03.25 17:32:15 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2021.03.25 17:32:16 INFO web[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://127.0.0.1:9001]
2021.03.25 17:32:17 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 8.7.1.42226 / bb9cf2bea57608dacfbab18185f1476371a2e0f8
2021.03.25 17:32:17 INFO web[o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://127.0.0.1:9092/sonar
2021.03.25 17:32:17 INFO web[o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\data
2021.03.25 17:32:17 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2021.03.25 17:32:18 WARN web[o.s.db.dialect.H2] H2 database should be used for evaluation purpose only.
2021.03.25 17:32:19 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226
2021.03.25 17:32:19 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin C# Code Quality and Security / 8.18.0.27296 / 9aa523cd53b79837cfb707e036b65deb12b334bd
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin CSS Code Quality and Security / 1.3.2.1782 / e5e9afed0350d3a3f5a8d016565abd6af8a5ed96
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin CodeScan / 4.5.4 / 1c39687dff1ad83d5d0620919cbb8903c5742dec
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin CodeScan Lang / 4.5.4 / 1c39687dff1ad83d5d0620919cbb8903c5742dec
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Flex Code Quality and Security / 2.6.0.2294 / 64746e0c588ddd44f3216ae1ee02a01bcf6b2dac
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Go Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin HTML Code Quality and Security / 3.3.0.2534 / 18c0ca03dae915ebe9bc9bd71345b3290db1d5a5
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin JaCoCo / 1.1.0.898 / f65b288e6c2888393bd7fb72ad7ac1425f88eebf
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Java Code Quality and Security / 6.12.0.24852 / be1719d9a06eab7d4d8903dc3264a5839c73e26a
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin JavaScript/TypeScript Code Quality and Security / 7.2.0.14938 / 8f58cd77d8fb0f0d31ab14a9e5762eea438d01ee
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Kotlin Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin PHP Code Quality and Security / 3.15.0.7197 / d9ce5c6caa9e8e60e9100578ca035cbb5b1a2899
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Python Code Quality and Security / 3.2.0.7856 / d0e59d398e2f615bd40b8cd37d7685e5202fd980
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Ruby Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Scala Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin SonarXML / 2.0.1.2020 / c5b84004face582d56f110e24c29bf9c6a679e69
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin VB.NET Code Quality and Security / 8.18.0.27296 / 9aa523cd53b79837cfb707e036b65deb12b334bd
2021.03.25 17:32:27 WARN web[o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [346] milliseconds.
2021.03.25 17:32:27 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@60925afd [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, …], exclusions=[/api/components/update_key, …]}]
2021.03.25 17:32:27 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2021.03.25 17:32:28 INFO web[o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2021.03.25 17:32:30 INFO web[o.s.s.s.LogServerId] Server ID: BF41A1F2-AXhoB3ZcU-6buSTNPJzy
2021.03.25 17:32:30 WARN web[o.s.s.a.LogOAuthWarning] For security reasons, OAuth authentication should use HTTPS. You should set the property ‘Administration > Configuration > Server base URL’ to a HTTPS URL.
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/permissions/search_templates
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_bitbucketserver_projects
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/check_pat
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_azure_projects
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketserver_repos
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_azure_repos
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_organizations
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_repositories
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/get_github_client_id
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/get_binding
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/list
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/list_definitions
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/validate
2021.03.25 17:32:30 INFO web[o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2021.03.25 17:32:30 INFO web[o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2021.03.25 17:32:30 INFO web[o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired session tokens has removed 0 elements
2021.03.25 17:32:30 INFO web[o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired SAML message ids has removed 0 elements
2021.03.25 17:32:30 INFO web[o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2021.03.25 17:32:30 INFO web[o.s.s.s.RegisterPlugins] Register plugins
2021.03.25 17:32:30 INFO web[o.s.s.s.RegisterMetrics] Register metrics
2021.03.25 17:32:31 INFO web[o.s.s.r.RegisterRules] Register rules
2021.03.25 17:32:41 INFO web[o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2021.03.25 17:32:44 ERROR web[o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Rule with key ‘javascript:S3509’ not found
at com.google.common.base.Preconditions.checkState(Preconditions.java:589)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.lambda$updateOrCreateBuilder$6(BuiltInQProfileRepositoryImpl.java:200)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1085)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.updateOrCreateBuilder(BuiltInQProfileRepositoryImpl.java:197)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.lambda$toQualityProfileBuilders$5(BuiltInQProfileRepositoryImpl.java:176)
at java.base/java.util.HashMap.compute(HashMap.java:1228)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.toQualityProfileBuilders(BuiltInQProfileRepositoryImpl.java:174)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.lambda$toFlatList$2(BuiltInQProfileRepositoryImpl.java:132)
at org.sonar.core.util.stream.MoreCollectors.lambda$uniqueIndex$9(MoreCollectors.java:258)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1746)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.toFlatList(BuiltInQProfileRepositoryImpl.java:130)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.initialize(BuiltInQProfileRepositoryImpl.java:84)
at org.sonar.server.qualityprofile.BuiltInQProfileLoader.start(BuiltInQProfileLoader.java:37)
at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:49)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:87)
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:84)
at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:198)
at org.sonar.server.platform.PlatformImpl.access$400(PlatformImpl.java:46)
at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:122)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:370)
at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:122)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:354)
at java.base/java.lang.Thread.run(Thread.java:834)
2021.03.25 17:32:44 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process
2021.03.25 17:32:44 INFO web[o.s.s.n.NotificationDaemon] Notification service stopped
2021.03.25 17:32:45 INFO web[o.s.s.p.d.EmbeddedDatabase] Embedded database stopped

web.log

2021.03.25 17:32:14 INFO web[o.s.p.ProcessEntryPoint] Starting web
2021.03.25 17:32:15 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2021.03.25 17:32:16 INFO web[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://127.0.0.1:9001]
2021.03.25 17:32:17 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 8.7.1.42226 / bb9cf2bea57608dacfbab18185f1476371a2e0f8
2021.03.25 17:32:17 INFO web[o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://127.0.0.1:9092/sonar
2021.03.25 17:32:17 INFO web[o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226\data
2021.03.25 17:32:17 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2021.03.25 17:32:18 WARN web[o.s.db.dialect.H2] H2 database should be used for evaluation purpose only.
2021.03.25 17:32:19 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\Users\user1\OneDrive - XXX\Code Scan\sonarqube-8.7.1.42226\sonarqube-8.7.1.42226
2021.03.25 17:32:19 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin C# Code Quality and Security / 8.18.0.27296 / 9aa523cd53b79837cfb707e036b65deb12b334bd
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin CSS Code Quality and Security / 1.3.2.1782 / e5e9afed0350d3a3f5a8d016565abd6af8a5ed96
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin CodeScan / 4.5.4 / 1c39687dff1ad83d5d0620919cbb8903c5742dec
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin CodeScan Lang / 4.5.4 / 1c39687dff1ad83d5d0620919cbb8903c5742dec
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Flex Code Quality and Security / 2.6.0.2294 / 64746e0c588ddd44f3216ae1ee02a01bcf6b2dac
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Go Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin HTML Code Quality and Security / 3.3.0.2534 / 18c0ca03dae915ebe9bc9bd71345b3290db1d5a5
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin JaCoCo / 1.1.0.898 / f65b288e6c2888393bd7fb72ad7ac1425f88eebf
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Java Code Quality and Security / 6.12.0.24852 / be1719d9a06eab7d4d8903dc3264a5839c73e26a
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin JavaScript/TypeScript Code Quality and Security / 7.2.0.14938 / 8f58cd77d8fb0f0d31ab14a9e5762eea438d01ee
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Kotlin Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin PHP Code Quality and Security / 3.15.0.7197 / d9ce5c6caa9e8e60e9100578ca035cbb5b1a2899
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Python Code Quality and Security / 3.2.0.7856 / d0e59d398e2f615bd40b8cd37d7685e5202fd980
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Ruby Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin Scala Code Quality and Security / 1.8.2.1946 / e5d905c22abff18761b80fa66a2d92c2aeb6dcf7
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin SonarXML / 2.0.1.2020 / c5b84004face582d56f110e24c29bf9c6a679e69
2021.03.25 17:32:20 INFO web[o.s.s.p.ServerPluginManager] Deploy plugin VB.NET Code Quality and Security / 8.18.0.27296 / 9aa523cd53b79837cfb707e036b65deb12b334bd
2021.03.25 17:32:27 WARN web[o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [346] milliseconds.
2021.03.25 17:32:27 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@60925afd [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, …], exclusions=[/api/components/update_key, …]}]
2021.03.25 17:32:27 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2021.03.25 17:32:28 INFO web[o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2021.03.25 17:32:30 INFO web[o.s.s.s.LogServerId] Server ID: BF41A1F2-AXhoB3ZcU-6buSTNPJzy
2021.03.25 17:32:30 WARN web[o.s.s.a.LogOAuthWarning] For security reasons, OAuth authentication should use HTTPS. You should set the property ‘Administration > Configuration > Server base URL’ to a HTTPS URL.
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/permissions/search_templates
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_bitbucketserver_projects
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/check_pat
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_azure_projects
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketserver_repos
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_azure_repos
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_organizations
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_repositories
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/get_github_client_id
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/get_binding
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/list
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/list_definitions
2021.03.25 17:32:30 WARN web[o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_settings/validate
2021.03.25 17:32:30 INFO web[o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2021.03.25 17:32:30 INFO web[o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2021.03.25 17:32:30 INFO web[o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired session tokens has removed 0 elements
2021.03.25 17:32:30 INFO web[o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired SAML message ids has removed 0 elements
2021.03.25 17:32:30 INFO web[o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2021.03.25 17:32:30 INFO web[o.s.s.s.RegisterPlugins] Register plugins
2021.03.25 17:32:30 INFO web[o.s.s.s.RegisterMetrics] Register metrics
2021.03.25 17:32:31 INFO web[o.s.s.r.RegisterRules] Register rules
2021.03.25 17:32:41 INFO web[o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2021.03.25 17:32:44 ERROR web[o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Rule with key ‘javascript:S3509’ not found
at com.google.common.base.Preconditions.checkState(Preconditions.java:589)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.lambda$updateOrCreateBuilder$6(BuiltInQProfileRepositoryImpl.java:200)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1085)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.updateOrCreateBuilder(BuiltInQProfileRepositoryImpl.java:197)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.lambda$toQualityProfileBuilders$5(BuiltInQProfileRepositoryImpl.java:176)
at java.base/java.util.HashMap.compute(HashMap.java:1228)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.toQualityProfileBuilders(BuiltInQProfileRepositoryImpl.java:174)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.lambda$toFlatList$2(BuiltInQProfileRepositoryImpl.java:132)
at org.sonar.core.util.stream.MoreCollectors.lambda$uniqueIndex$9(MoreCollectors.java:258)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1746)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.toFlatList(BuiltInQProfileRepositoryImpl.java:130)
at org.sonar.server.qualityprofile.BuiltInQProfileRepositoryImpl.initialize(BuiltInQProfileRepositoryImpl.java:84)
at org.sonar.server.qualityprofile.BuiltInQProfileLoader.start(BuiltInQProfileLoader.java:37)
at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:49)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:87)
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:84)
at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:198)
at org.sonar.server.platform.PlatformImpl.access$400(PlatformImpl.java:46)
at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:122)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:370)
at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:122)
at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:354)
at java.base/java.lang.Thread.run(Thread.java:834)
2021.03.25 17:32:44 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process
2021.03.25 17:32:44 INFO web[o.s.s.n.NotificationDaemon] Notification service stopped
2021.03.25 17:32:45 INFO web[o.s.s.p.d.EmbeddedDatabase] Embedded database stopped.

@Tobias_Trabelsi can you pls check the log and suggest me?

can you check what version of the js language analyzer you have on your system?

it might be that the sonarqube installation got corrupt due to a sync issue with one drive. it is in general a bad idea to sync application data and even worse if this application data contains a database as it is in your case.

i assume that this is a evaluation environment as your setup does not seem production ready, so my advise would be to start with a clean zip installation from scratch. you can keep your configuration files, but should definitely re download the zip file used for installation. this will probably be the fastest resolution

I observed that it happens only when I copy below two jar files inside extensions->plugins folder in sonarqube.

sonar-codescanlang-plugin-4.5.4
sonar-salesforce-plugin-4.5.4

Otherwise, I can start the sonarqube without any trouble.
Can you pls suggest on this?

Hi @Saravanan_M ,

thanks for the update.

i think this is something you probably need to discuss with the creator of these plugins as they are not created nor maintained by sonarsource.
from a first glance i would guess that the plugin is not compatible with the sonarqube version you installed

from CodeScan Self-Hosted Downloads – CodeScan Knowledge Base

Compatible with SonarQube™ 7.9 - 8.4 and SonarJS versions prior to 6.2.

maybe you need to switch to sonar-codescanlang-plugin-4.5.4.1, but this again is something to ask the vendor of this plugin