Help getting SQ devel edition for windows 10 working

problems getting sonarqube devel edition running on my win10 laptop.
i will be analyzing C code. here’s the install steps i followed.

  1. I installed postgresql on a local linux server at 192.168.0.13; I can see that it’s running.

  2. I added address of postgres DB to windows sonar.properties:

  3. sonar.jdbc.url=jdbc:postgresql://192.168.0.13/sonarqube?currentSchema=my_schema

  4. I downloaded sonarscanner sonar-scanner-4.3.0.2102-windows

  5. I install java 11.0.7 and updated env variables

  6. I tried to run StartSonar.bat and I get this output in cmdshell:

StartSonar.bat

wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...

jvm 1 | Wrapper (Version 3.2.3) [http://wrapper.tanukisoftware.org](https://urldefense.proofpoint.com/v2/url?u=http-3A__wrapper.tanukisoftware.org&d=DwMFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=ws_Qr-42jrrWlNvjBxBsCgBZR5Aq9Un6_yha3ysReCo&m=E_m8L52bzcKC_L7cj630BEfrcEelyl5oc7L9gyG-je8&s=HXrEqGf6X68Op8E7k8LWV81WOzZSoTnQvl8aI4L-2Hs&e=)
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2020.06.17 11:31:06 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\tools\sq\sonarqube-8.3.1.34397\temp
jvm 1 | 2020.06.17 11:31:06 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /[127.0.0.1:9001](https://urldefense.proofpoint.com/v2/url?u=http-3A__127.0.0.1-3A9001&d=DwMFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=ws_Qr-42jrrWlNvjBxBsCgBZR5Aq9Un6_yha3ysReCo&m=E_m8L52bzcKC_L7cj630BEfrcEelyl5oc7L9gyG-je8&s=ah01Yg1xsX-oD0EYF1PawzOAtSR641wFQR7WwRMTNnE&e=)

jvm 1 | 2020.06.17 11:31:06 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\tools\sq\sonarqube-8.3.1.34397\elasticsearch]: C:\Program Files\Java\jdk-11.0.7\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\tools\sq\sonarqube-8.3.1.34397\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Des.enforce.bootstrap.checks=true -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\tools\sq\sonarqube-8.3.1.34397\elasticsearch -Des.path.conf=C:\tools\sq\sonarqube-8.3.1.34397\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch

jvm 1 | 2020.06.17 11:31:06 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

jvm 1 | Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

jvm 1 | 2020.06.17 11:31:07 INFO app[][o.e.p.PluginsService] no modules loaded

jvm 1 | 2020.06.17 11:31:07 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]

jvm 1 | 2020.06.17 11:31:18 INFO app[][o.s.a.SchedulerImpl] Process[es] is up

jvm 1 | 2020.06.17 11:31:18 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [C:\tools\sq\sonarqube-8.3.1.34397]: C:\Program Files\Java\jdk-11.0.7\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\tools\sq\sonarqube-8.3.1.34397\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](https://urldefense.proofpoint.com/v2/url?u=http-3A__java.io&d=DwMFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=ws_Qr-42jrrWlNvjBxBsCgBZR5Aq9Un6_yha3ysReCo&m=E_m8L52bzcKC_L7cj630BEfrcEelyl5oc7L9gyG-je8&s=Z3Fq0koHsY6aIYFp-aYvg2QrCVv2CctgNkmqxCgXSLU&e=)=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/ **common** /*;C:\tools\sq\sonarqube-8.3.1.34397\lib\jdbc\postgresql\postgresql-42.2.11.jar org.sonar.server.app.WebServer C:\tools\sq\sonarqube-8.3.1.34397\temp\sq-process7223852742545264736properties

**jvm 1 | 2020.06.17 11:31:20 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped**

jvm 1 | 2020.06.17 11:31:20 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped

jvm 1 | 2020.06.17 11:31:20 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

**wrapper | <-- Wrapper Stopped**
  1. I tried to go to localhost:9000 in browser but it’s not running
  2. i attached sonarq log file.sonar.log (68.0 KB)
  • Can you tell me what is stopping my sonarq server from running?
  • How does scanner run to scan the source code?
  • Do I have to do something to tell server that scanner has completed?

thanks,
Rod in USlogs_zip.zip (12.4 KB)

Hi @Rod1,

Thanks for posting and welcome to the community! :smiley:

It looks like your web server isn’t starting, which could be for a number of reasons; could you zip up the entire logs directory and add it to this post so I can check all the log files?

Regards,

Cameron.

ll PROTECTED 関係者外秘

done. I added logs_zip to the issue.

Thanks for response.

Rod

you can close this ticket if you want. i moved over to ubuntu 20 and got SQ running with docker containers. and i will be using in on linux and not windows 10. i may have other problems and i’ll open another ticket if needed.

Hi @Rod1,

Glad you’re up and running; thanks for letting me know.

Regards,

Cameron.