SonarQube service won't start, receiving Error 1067:The process terminated unexpectedly

  • Recently installed SonarQube 8.3.1 with OpenJDK version 12.0.2
  • SonarQube service won’t start, receiving Error 1067:The process terminated unexpectedly
  • We have made the service account a local admin and receive the same result each time we try to start the service. Any assistance would be appreciated.

Hey there @awDM ,

the error code indicates that you are running a windows service that encounters a filesystem problem. there are multiple troubleshooting guides how to resolve this error as it is unrelated to sonarqube itself.

i would suggest that you:

  • remove the service in question temporarily
  • scan the local filesystem ( sfc /scannow)
  • reinstall the sonarqube service

if this does not help, please check if there are any logs written in the sonarqube log directory and provide them here

I removed the service and re-added it. Unfortunately is was still unsuccessful. Below is what I found in the logs.

The SonarQube service was launched, but failed to start.
–> Wrapper Started as Service
Launching a JVM…
Unable to execute Java command. The system cannot find the file specified. (0x2)
“java” -Dsonar.wrapped=true -Djava.awt.headless=true -Xms8m -Xmx32m -Djava.library.path="./lib" -classpath “…/…/lib/jsw/wrapper-3.2.3.jar;…/…/lib/common/activation-1.1.jar;…/…/lib/common/commons-codec-1.14.jar;…/…/lib/common/commons-csv-1.7.jar;…/…/lib/common/commons-dbcp2-2.7.0.jar;…/…/lib/common/commons-email-1.5.jar;…/…/lib/common/commons-io-2.6.jar;…/…/lib/common/commons-lang-2.6.jar;…/…/lib/common/commons-lang3-3.4.jar;…/…/lib/common/commons-logging-1.2.jar;…/…/lib/common/commons-pool2-2.7.0.jar;…/…/lib/common/core-3.1.0.jar;…/…/lib/common/diffutils-1.2.jar;…/…/lib/common/elasticsearch-6.8.4.jar;…/…/lib/common/elasticsearch-cli-6.8.4.jar;…/…/lib/common/elasticsearch-core-6.8.4.jar;…/…/lib/common/elasticsearch-secure-sm-6.8.4.jar;…/…/lib/common/elasticsearch-x-content-6.8.4.jar;…/…/lib/common/failureaccess-1.0.1.jar;…/…/lib/common/gson-2.8.6.jar;…/…/lib/common/guava-28.2-jre.jar;…/…/lib/common/hazelcast-3.12.6.jar;…/…/lib/common/HdrHistogram-2.1.9.jar;…/…/lib/common/hppc-0.7.1.jar;…/…/lib/common/httpclient-4.5.12.jar;…/…/lib/common/httpcore-4.4.13.jar;…/…/lib/common/jackson-annotations-2.10.3.jar;…/…/lib/common/jackson-core-2.10.3.jar;…/…/lib/common/jackson-databind-2.10.3.jar;…/…/lib/common/jackson-dataformat-cbor-2.8.11.jar;…/…/lib/common/jackson-dataformat-smile-2.8.11.jar;…/…/lib/common/jackson-dataformat-yaml-2.8.11.jar;…/…/lib/common/java-saml-2.5.0.jar;…/…/lib/common/java-saml-core-2.5.0.jar;…/…/lib/common/javax.mail-1.5.6.jar;…/…/lib/common/jbcrypt-0.4.jar;…/…/lib/common/jjwt-api-0.11.1.jar;…/…/lib/common/jjwt-impl-0.11.1.jar;…/…/lib/common/jjwt-jackson-0.11.1.jar;…/…/lib/common/jna-4.5.1.jar;…/…/lib/common/joda-time-2.10.3.jar;…/…/lib/common/jopt-simple-5.0.2.jar;…/…/lib/common/jsr305-3.0.2.jar;…/…/lib/common/jul-to-slf4j-1.7.30.jar;…/…/lib/common/log4j-api-2.8.2.jar;…/…/lib/common/log4j-to-slf4j-2.8.2.jar;…/…/lib/common/logback-access-1.2.3.jar;…/…/lib/common/logback-classic-1.2.3.jar;…/…/lib/common/logback-core-1.2.3.jar;…/…/lib/common/lucene-analyzers-common-7.7.2.jar;…/…/lib/common/lucene-backward-codecs-7.7.2.jar;…/…/lib/common/lucene-core-7.7.2.jar;…/…/lib/common/lucene-grouping-7.7.2.jar;…/…/lib/common/lucene-highlighter-7.7.2.jar;…/…/lib/common/lucene-join-7.7.2.jar;…/…/lib/common/lucene-memory-7.7.2.jar;…/…/lib/common/lucene-misc-7.7.2.jar;…/…/lib/common/lucene-queries-7.7.2.jar;…/…/lib/common/lucene-queryparser-7.7.2.jar;…/…/lib/common/lucene-sandbox-7.7.2.jar;…/…/lib/common/lucene-spatial-7.7.2.jar;…/…/lib/common/lucene-spatial-extras-7.7.2.jar;…/…/lib/common/lucene-spatial3d-7.7.2.jar;…/…/lib/common/lucene-suggest-7.7.2.jar;…/…/lib/common/lz4-1.3.0.jar;…/…/lib/common/mybatis-3.5.4.jar;…/…/lib/common/nanohttpd-2.3.1.jar;…/…/lib/common/netty-buffer-4.1.32.Final.jar;…/…/lib/common/netty-codec-4.1.32.Final.jar;…/…/lib/common/netty-codec-http-4.1.32.Final.jar;…/…/lib/common/netty-common-4.1.32.Final.jar;…/…/lib/common/netty-handler-4.1.32.Final.jar;…/…/lib/common/netty-resolver-4.1.32.Final.jar;…/…/lib/common/netty-transport-4.1.32.Final.jar;…/…/lib/common/okhttp-3.14.7.jar;…/…/lib/common/okio-1.17.2.jar;…/…/lib/common/parent-join-client-6.8.4.jar;…/…/lib/common/percolator-client-6.8.4.jar;…/…/lib/common/picocontainer-2.15.jar;…/…/lib/common/protobuf-java-3.11.4.jar;…/…/lib/common/scribejava-apis-6.9.0.jar;…/…/lib/common/scribejava-core-6.9.0.jar;…/…/lib/common/slf4j-api-1.7.30.jar;…/…/lib/common/snakeyaml-1.26.jar;…/…/lib/common/sonar-auth-common-8.3.1.34397.jar;…/…/lib/common/sonar-auth-github-8.3.1.34397.jar;…/…/lib/common/sonar-auth-gitlab-8.3.1.34397.jar;…/…/lib/common/sonar-auth-ldap-8.3.1.34397.jar;…/…/lib/common/sonar-auth-saml-8.3.1.34397.jar;…/…/lib/common/sonar-ce-8.3.1.34397.jar;…/…/lib/common/sonar-ce-common-8.3.1.34397.jar;…/…/lib/common/sonar-ce-task-8.3.1.34397.jar;…/…/lib/common/sonar-ce-task-projectanalysis-8.3.1.34397.jar;…/…/lib/common/sonar-channel-4.2.jar;…/…/lib/common/sonar-classloader-1.0.jar;…/…/lib/common/sonar-core-8.3.1.34397.jar;…/…/lib/common/sonar-db-core-8.3.1.34397.jar;…/…/lib/common/sonar-db-dao-8.3.1.34397.jar;…/…/lib/common/sonar-db-migration-8.3.1.34397.jar;…/…/lib/common/sonar-duplications-8.3.1.34397.jar;…/…/lib/common/sonar-main-8.3.1.34397.jar;…/…/lib/common/sonar-markdown-8.3.1.34397.jar;…/…/lib/common/sonar-plugin-api-8.3.1.34397-all.jar;…/…/lib/common/sonar-plugin-api-impl-8.3.1.34397.jar;…/…/lib/common/sonar-process-8.3.1.34397.jar;…/…/lib/common/sonar-scanner-protocol-8.3.1.34397.jar;…/…/lib/common/sonar-server-common-8.3.1.34397.jar;…/…/lib/common/sonar-update-center-common-1.23.0.723.jar;…/…/lib/common/sonar-webserver-8.3.1.34397.jar;…/…/lib/common/sonar-webserver-api-8.3.1.34397.jar;…/…/lib/common/sonar-webserver-auth-8.3.1.34397.jar;…/…/lib/common/sonar-webserver-core-8.3.1.34397.jar;…/…/lib/common/sonar-webserver-es-8.3.1.34397.jar;…/…/lib/common/sonar-webserver-webapi-8.3.1.34397.jar;…/…/lib/common/sonar-webserver-ws-8.3.1.34397.jar;…/…/lib/common/sonar-ws-8.3.1.34397.jar;…/…/lib/common/stax2-api-3.1.4.jar;…/…/lib/common/staxmate-2.0.1.jar;…/…/lib/common/t-digest-3.2.jar;…/…/lib/common/tomcat-annotations-api-8.5.53.jar;…/…/lib/common/tomcat-embed-core-8.5.53.jar;…/…/lib/common/transport-6.8.4.jar;…/…/lib/common/transport-netty4-client-6.8.4.jar;…/…/lib/common/woodstox-core-5.0.3.jar;…/…/lib/common/woodstox-core-lgpl-4.4.1.jar;…/…/lib/common/xmlsec-2.1.4.jar;…/…/lib/sonar-application-8.3.1.34397.jar;…/…/lib/sonar-shutdowner-8.3.1.34397.jar” -Dwrapper.key=“ZgSWZ_jiS0i9B0Cw” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=5008 -Dwrapper.version=“3.2.3” -Dwrapper.native_library=“wrapper” -Dwrapper.service=“TRUE” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.sonar.application.App
Critical error: wait for JVM process failed

Thank you for the logs. did you run a filesystem check? Can you also check if you have the environment variables JAVA_HOME, JAVA_JDK or JAVA_JRE are set correctly? This could also be the order of the PATH environment variable. You have to make sure that the Java path is defined before c:\windows\system32