fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
Running SonarQube... wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... wrapper | JVM exited while loading the application. jvm 1 | Unrecognized option: --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED jvm 1 | Error: Could not create the Java Virtual Machine. jvm 1 | Error: A fatal exception has occurred. Program will exit. wrapper | JVM Restarts disabled. Shutting down. wrapper | <-- Wrapper Stopped
初步猜测可能是jdk版本问题,于是就是官网查了下,然后果然看到了这样一句”You must be able to install Java (Oracle JRE 11 or OpenJDK 11) on the machine where you plan to run SonarQube.”。 由于我现在服务器上还是安装的jdk8,暂时也不想升jdk11,所以就去找了下可以用jdk8的版本,最终下载了sonarqube-6.6。 不过在启动后又出现了新的问题,信息如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--> Wrapper Started as Daemon Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2022.03.26 12:25:13 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/soft/sonarqube-6.6/temp 2022.03.26 12:25:13 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2022.03.26 12:25:13 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/soft/sonarqube-6.6/e/elasticsearch/bin/elasticsearch -Epath.conf=/opt/soft/sonarqube-6.6/temp/conf/es 2022.03.26 12:25:13 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running 2022.03.26 12:25:14 INFO app[][o.e.p.PluginsService] no modules loaded 2022.03.26 12:25:14 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2022.03.26 12:25:17 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1 2022.03.26 12:25:17 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped 2022.03.26 12:25:17 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped <-- Wrapper Stopped
]: /opt/soft/jdk1.8.0_261/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/soft/sonarqube-6.6/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:./lib/server/*:/opt/soft/sonarqube-6.6/lib/jdbc/h2/h2-1.3.176.jar org.sonar.server.app.WebServer /opt/soft/sonarqube-6.6/temp/sq-process8738477899699194234properties Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e0000000, 44695552, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 44695552 bytes for committing reserved memory. # An error report file with more information is saved as: # /opt/soft/sonarqube-6.6/hs_err_pid19910.log 2022.03.26 12:36:31 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [web]: 1 2022.03.26 12:36:31 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped