Default Administrator credentials are still being used. Make sure to change the password or deactivate the account

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube-8.6.0.39681
  • what are you trying to achieve
    I am trying to start Sonar on console.
    I extracted sonarqube-developer-8.6.0.39681.zip and trying to start service
    sonarqube-8.6.0.39681\bin\windows-x86-64>StartSonar.bat
  • what have you tried so far to achieve this

I am the first time user to Sonar, trying to analyze VC++ code with MFC support. I see the above message as " Default Administrator credentials are still being used. Make sure to change the password or deactivate the account.". But I could not proceed further, I could not resolve the issue.

Please help.

Below is the entire log. It tried to start service and stopped automatically.

wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM…
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2021.01.19 18:58:36 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonar\sonarqube-8.6.0.39681\temp
jvm 1 | 2021.01.19 18:58:36 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:55170]
jvm 1 | 2021.01.19 18:58:36 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\sonar\sonarqube-8.6.0.39681\elasticsearch]: C:\Java\openlogic-openjdk-11.0.8+10-win-x64\jdk\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=C:\sonar\sonarqube-8.6.0.39681\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:\sonar\sonarqube-8.6.0.39681\elasticsearch -Des.path.conf=C:\sonar\sonarqube-8.6.0.39681\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1 | 2021.01.19 18:58:36 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1 | 2021.01.19 18:58:51 INFO app[o.s.a.SchedulerImpl] Process[es] is up
jvm 1 | 2021.01.19 18:58:51 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [C:\sonar\sonarqube-8.6.0.39681]: C:\Java\openlogic-openjdk-11.0.8+10-win-x64\jdk\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonar\sonarqube-8.6.0.39681\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 -Xmx2G -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/;C:\sonar\sonarqube-8.6.0.39681\lib\jdbc\h2\h2-1.4.199.jar org.sonar.server.app.WebServer C:\sonar\sonarqube-8.6.0.39681\temp\sq-process13590794222416757585properties
jvm 1 | 2021.01.19 18:59:30 WARN app[startup] ####################################################################################################################
jvm 1 | 2021.01.19 18:59:30 WARN app[startup] Default Administrator credentials are still being used. Make sure to change the password or deactivate the account.
jvm 1 | 2021.01.19 18:59:30 WARN app[startup] ####################################################################################################################
jvm 1 | 2021.01.19 18:59:37 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1 | 2021.01.19 18:59:37 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2021.01.19 18:59:37 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped

Please help resolve this step and move forward.

1 Like

That is probably not what caused startup to fail. Check any other log files (such as a web.log file) in your /logs/ directory.

Thank you for directing me further. I could resolve the issue.

Error is due to insufficient disk spaces. Elastic Search required more than 4GB disk space.

I see the following error in Web Log:

2021.01.19 20:21:12 ERROR web[o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
org.sonar.server.es.ElasticsearchException: Fail to execute es request
at org.sonar.server.es.EsClient.execute(EsClient.java:278)

Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=cluster_block_exception, reason=index [rules] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];]

I see the below log in the es.log file

2021.01.19 20:20:51 WARN es[o.e.d.r.a.d.RestGetAction] [types removal] Specifying types in document get requests is deprecated, use the /{index}/_doc/{id} endpoint instead.
2021.01.19 20:21:00 WARN es[o.e.c.r.a.DiskThresholdMonitor] flood stage disk watermark [95%] exceeded on [mgE25qwASRmC1acsiu2Ysg][sonarqube][C:\sonar\sonarqube-8.6.0.39681\data\es7\nodes\0] free: 4gb[2.1%], all indices on this node will be marked read-only

Thank you.

I am also getting the same error

I am also getting the same error
web.log file
Caused by: java.io.IOException: org.h2.message.DbException: Connection is broken: “session closed” [90067-199]
at org.h2.message.DbException.convertToIOException(DbException.java:646)
at org.h2.store.LobStorageRemoteInputStream.read(LobStorageRemoteInputStream.java:73)
at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:290)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)
at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)
at java.base/java.io.BufferedReader.read1(BufferedReader.java:212)
at java.base/java.io.BufferedReader.read(BufferedReader.java:287)
at org.h2.util.IOUtils.copyAndCloseInput(IOUtils.java:201)
at org.h2.jdbc.JdbcClob.getSubString(JdbcClob.java:148)
… 39 common frames omitted

Hi,

I’m facing the same issue on my mac. What is the solution for this???