我最近在我的Ubuntu 18.04服务器上安装了SonarQube。安装后,我能够成功启动服务并访问门户网站。重启后,服务将不再启动。
SonarQube:6.7.4 / 7.1(我已尝试过两者)
Java:
openjdk 9-Ubuntu
OpenJDK运行时环境(构建9-Ubuntu + 0-9b181-4)
OpenJDK 64位服务器VM(构建9-Ubuntu + 0-9b181-4,混合模式)
PostgreSQL:psql(PostgreSQL)10.4(Ubuntu 10.4-0ubuntu0.18.04)
Ubuntu:18.04
--> 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.
2018.06.12 20:41:05 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2018.06.12 20:41:06 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.06.12 20:41:06 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
2018.06.12 20:41:06 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2018.06.12 20:41:06 INFO app[][o.e.p.PluginsService] no modules loaded
2018.06.12 20:41:06 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/opt/sonarqube/lib/common/netty-common-4.1.13.Final.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x00007ff47b6639df, pid=5467, tid=5514
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-Ubuntu+0-9b181-4)
# Java VM: OpenJDK 64-Bit Server VM (9-Ubuntu+0-9b181-4, mixed mode, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
# Problematic frame:
# J 3314 c2 com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer.calcHash([II)I (115 bytes) @ 0x00007ff47b6639df [0x00007ff47b6638a0+0x000000000000013f]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /opt/sonarqube/elasticsearch/core.5467)
#
# An error report file with more information is saved as:
# /opt/sonarqube/elasticsearch/hs_err_pid5467.log
Compiled method (c2) 8169 3314 4 com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer::calcHash (115 bytes)
total in heap [0x00007ff47b663710,0x00007ff47b663c20] = 1296
relocation [0x00007ff47b663880,0x00007ff47b6638a0] = 32
main code [0x00007ff47b6638a0,0x00007ff47b663b20] = 640
stub code [0x00007ff47b663b20,0x00007ff47b663b38] = 24
oops [0x00007ff47b663b38,0x00007ff47b663b40] = 8
metadata [0x00007ff47b663b40,0x00007ff47b663b48] = 8
scopes data [0x00007ff47b663b48,0x00007ff47b663ba8] = 96
scopes pcs [0x00007ff47b663ba8,0x00007ff47b663c08] = 96
dependencies [0x00007ff47b663c08,0x00007ff47b663c10] = 8
nul chk table [0x00007ff47b663c10,0x00007ff47b663c20] = 16
Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
2018.06.12 20:41:15 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 134
2018.06.12 20:41:15 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.06.12 20:41:15 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
更新:更正了标题中的Ubuntu版本号。