1

我从官方网站下载了 artifactory 并使用在我的 CentOS 服务器上安装了 rpmsudo yum install -y jfrog-artifactory-pro-7.2.1.rpm

但是,它引发了与路由器服务相关的错误:

来自 router-service.log 的片段

: Failed joining the cluster; Error: Error response from service registry, status code: 400; message: Could not validate router Check-url: http://::1:8082/router/api/v1/system/ping; detail: I/O error on GET request for "http:///:1:8082/router/api/v1/system/ping": URI does not specify a valid host name: http:///:1:8082/router/api/v1/system/ping; nested exception is org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: http:///:1:8082/router/api/v1/system/ping

来自 artifactory-service.log 的片段

Caused by: org.jfrog.common.RetryException: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
    at org.jfrog.access.client.AccessServerStartupValidator.convertToRetryException(AccessServerStartupValidator.java:54)
    at io.vavr.API$Match$Case0.apply(API.java:5135)
    at io.vavr.API$Match.option(API.java:5105)
    at io.vavr.control.Try.mapFailure(Try.java:602)
    at org.jfrog.access.client.AccessServerStartupValidator.pingAccess(AccessServerStartupValidator.java:44)
    at org.jfrog.common.ExecutionUtils.handleFunctionExecution(ExecutionUtils.java:99)
    ... 7 common frames omitted
Caused by: org.jfrog.access.client.AccessClientException: Unable to connect to Access server: Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

我可以卷曲,但在浏览器中尝试时,出现 500 错误:

curl -I http://localhost:8081/artifactory
HTTP/1.1 302 Found
Location: /artifactory/
Transfer-Encoding: chunked
Date: Fri, 13 Mar 2020 15:41:19 GMT

浏览器中的错误:

{
  "errors" : [ {
    "status" : 500,
    "message" : "Artifactory failed to initialize: check Artifactory logs for errors."
  } ]
}

所有端口都允许使用 localhost。

4

0 回答 0