0

在执行 Artifactory 版本 7.4.3 时,我看到以下错误,我根据jfrog artifactory could not validate router 错误进行了更改, 但仍然是同样的错误,请有人指教。谢谢。

failed initializing Access client: Cluster join: Service registry ping failed; context deadline exceeded. last error: Error while trying to connect to local router at address 'http://localhost:8046/access': Get http://localhost:8046/access/api/v1/system/ping: dial tcp 127.0.0.1:8046: connect: connection refused

System.Yaml 文件:

shared:
## Security Configuration
security:
    ## Maximum time to wait for key files (master.key and join.key)
    #bootstrapKeysReadTimeoutSecs: 120
    ## Join key value for joining the cluster (takes precedence over 'joinKeyFile')
    #joinKey: "<Your joinKey>"
    ## Join key file location
    #joinKeyFile: "<For example: JFROG_HOME/artifactory/var/etc/security/join.key>"
    ## Master key file location
    ## Generated by the product on first startup if not provided
    #masterKeyFile: "<For example: JFROG_HOME/artifactory/var/etc/security/master.key>"

## Node Settings
node:
    ## Default: auto resolved by startup script
    ip: 172.24.18.44
    ## Sets this node as primary in HA installation
    #primary: true
    ## A unique id to identify this node.
    ## Default: auto generated at startup.
    #id: "art1"
    ## Sets this node as part of HA installation
    #haEnabled: true

以下是来自 router-service.log 的错误,我在 router-service.log 中找不到共享节点 ip

[join_executor.go:148          ] [main                ] - Cluster join: Retry 120: Service registry ping failed, will retry. Error: Could not parse error from service registry, status code: 404

更新 system.yaml 文件后:

shared:
  node:
     ip: 172.24.18.44

路由器服务日志

2020-05-19T04:36:48.559Z [jfrou] [INFO ] [660aef287984ef11] [bootstrap.go:73               ] [main                ] - JFrog Router IP: 172.24.18.44

2020-05-19T04:36:48.562Z [jfrou] [INFO] [660aef287984ef11] [bootstrap.go:165] [main] - 系统配置加密报告:shared.newrelic.licenseKey:在共享的配置文件中不存在。 security.joinKeyFile:文件'/apps/artifactory-pro-7.4.3/var/etc/security/join.key' - 已加密 2020-05-19T04:36:48.563Z [jfrou] [INFO] [660aef287984ef11] [ bootstrap.go:78] [main] - JFrog 路由器服务 ID:jfrou@01e8nfmn4nqdr5ay9q2225f6v6 2020-05-19T04:36:48.563Z [jfrou] [INFO] [660aef287984ef11] [bootstrap.go:79] [main] - JFrog 路由器节点 ID:tsrca24l 2020-05-19T04:37:22.945Z [jfrou] [INFO] [660aef287984ef11] [join_executor.go:148] [main] - 集群加入:重试 5:服务注册表 ping 失败,将重试。错误:获取http://localhost:8040/access/api/v1/system/ping : 超出上下文期限

4

1 回答 1

1

@kumarsystem.yaml不准确。该node部分应在共享下缩进,如下所示。您可以完全删除安全部分。

shared:
    node:
        ip: <your ip>
于 2020-05-20T07:49:16.653 回答