【问题标题】:jfrog-xray fails to start (fresh installation)jfrog-xray 无法启动(全新安装)
【发布时间】:2019-06-13 04:02:22
【问题描述】:

我正在redhat上安装jfrog-xray(2.8.6版)。

我已按照安装说明安装到裸机(与 docker 相比),安装似乎很顺利。

但是,当尝试启动所有服务时,似乎它们都没有启动。

以下是 ./xray.sh satus 命令产生的内容:

Checking Xray services...
=========================
Checking xray-server...                           grep: account: No such file or directory
grep: is: No such file or directory
grep: currently: No such file or directory
grep: not: No such file or directory
grep: available.: No such file or directory
The process appears to be dead but pidfile still exists
Checking xray-indexer...                          grep: account: No such file or directory
grep: is: No such file or directory
grep: currently: No such file or directory
grep: not: No such file or directory
grep: available.: No such file or directory
The process appears to be dead but pidfile still exists
Checking xray-persist...                          grep: account: No such file or directory
grep: is: No such file or directory
grep: currently: No such file or directory
grep: not: No such file or directory
grep: available.: No such file or directory
The process appears to be dead but pidfile still exists
Checking xray-analysis...                         grep: account: No such file or directory
grep: is: No such file or directory
grep: currently: No such file or directory
grep: not: No such file or directory
grep: available.: No such file or directory
The process appears to be dead but pidfile still exists

当我查看 xray-server (sudo journalctl -u xray-server) 的日志条目时,我得到以下输出:

-- Logs begin at Sun 2019-06-09 08:14:36 AEST, end at Thu 2019-06-13 13:55:13 AEST. --
Jun 08 22:15:32 server systemd[1]: Starting LSB: xray-server...
Jun 08 22:15:32 server xray-server[5621]: Starting service as user xray...
Jun 08 22:15:34 server su[5626]: (to xray) root on none
Jun 08 22:15:38 server xray-server[5621]: Service started
Jun 08 22:15:38 server systemd[1]: Started LSB: xray-server.
Jun 12 15:39:27 server systemd[1]: Stopping LSB: xray-server...
Jun 12 15:39:27 server xray-server[13836]: Service not running
Jun 12 15:39:27 server systemd[1]: xray-server.service: control process exited, code=exited status=1
Jun 12 15:39:27 server systemd[1]: Stopped LSB: xray-server.
Jun 12 15:39:27 server systemd[1]: Unit xray-server.service entered failed state.
Jun 12 15:39:27 server systemd[1]: xray-server.service failed.

【问题讨论】:

  • 当我阅读这些状态行时,在我看来,每个服务的 pid 文件中都写有“帐户当前不可用”。 (可能带有“错误:”或前面的东西。)

标签: artifactory jfrog-xray


【解决方案1】:

我们进行了卸载,然后重新安装,一切正常。 我认为问题是我们在安装后过早地重启了服务器(几乎是马上),所以服务可能正在做某事。

【讨论】:

    【解决方案2】:

    在你的机器上安装 grep 并尝试

    【讨论】:

    • 不幸的是 grep 已经安装了。我相信 grep 是生成该特定行的命令。
    最近更新 更多