声纳启动出错,无法启动 JVM:没有这样的文件或目录 (2) [英] Error in sonar startup, Unable to start JVM: No such file or directory (2)

查看:18
本文介绍了声纳启动出错,无法启动 JVM:没有这样的文件或目录 (2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了 sonarqube 5.0.1 的奇怪问题,其中一台机器没有启动.这是错误日志 - sonar.log -

I am facing strange issue with sonarqube 5.0.1 , one one of the machine it is not starting. Here is the error log - sonar.log -

--> Wrapper Started as Daemon
Launching a JVM...
Unable to start JVM: No such file or directory (2)
JVM exited while loading the application.
JVM Restarts disabled.  Shutting down.
<-- Wrapper Stopped

机器是 x86_64 GNU/Linux - Centos 5.1.

Machine is x86_64 GNU/Linux - Centos 5.1.

这个盒子已经安装了java -

this box has java installed -

$java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

相同的 sonarqube 包可以在另一台机器上运行.

The same sonarqube package works on another machine.

知道这里可能是什么问题吗?

Any idea what could be the issue here?

谢谢.

推荐答案

问题出在 wrapper.conf 中,java wrapper 命令没有得到解决.如果我给出绝对路径 - 'wrapper.java.command=/path/to/my/jdk/bin/java'

Issue was in the wrapper.conf where the java wrapper command was not getting resolved. It worked if I give the absolute path - ‘wrapper.java.command=/path/to/my/jdk/bin/java’

这可能是主机环境的问题.不确定.

This could be an issue with an environment on a host.. not sure.

帮助我解决此问题的几件事 -

Few things that helped me in troubleshooting this -

  • 在 wrapper.conf 中日志级别更改为 DEBUG
  • 在 wrapper.conf 中给出的注释!

感谢大家的参与!感谢您的投入.

Thanks all for chiming in! Appreciate your inputs.

这篇关于声纳启动出错,无法启动 JVM:没有这样的文件或目录 (2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆