尝试连接到 artifactory 7.4.3 上的本地路由器时出错

Error while trying to connect to local router on artifactory 7.4.3

在执行 Artifactory 7.4.3 版本时,我看到以下错误,并且我按照 进行了更改,但仍然是同样的错误,请有人指教。谢谢。

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

路由器-service.log

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: 配置文件中不存在 shared.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:超出上下文截止日期

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

shared:
    node:
        ip: <your ip>