Kumar
Kumar

Reputation: 51

Error while trying to connect to local router on artifactory 7.4.3

When executing the Artifactory version 7.4.3, I see below error, and I changed as per the jfrog artifactory could not validate router error but still same error, can someone please advise. Thanks.

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 file:

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

Below is the error from router-service.log, i don't find the shared node ip in router-service.log

[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

after updating the system.yaml file:

shared:
  node:
     ip: 172.24.18.44

router-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 ] - System configuration encryption report: shared.newrelic.licenseKey: does not exist in the config file shared.security.joinKeyFile: file '/apps/artifactory-pro-7.4.3/var/etc/security/join.key' - already encrypted 2020-05-19T04:36:48.563Z [jfrou] [INFO ] [660aef287984ef11] [bootstrap.go:78 ] [main ] - JFrog Router Service ID: jfrou@01e8nfmn4nqdr5ay9q2225f6v6 2020-05-19T04:36:48.563Z [jfrou] [INFO ] [660aef287984ef11] [bootstrap.go:79 ] [main ] - JFrog Router Node ID: tsrca24l 2020-05-19T04:37:22.945Z [jfrou] [INFO ] [660aef287984ef11] [join_executor.go:148 ] [main ] - Cluster join: Retry 5: Service registry ping failed, will retry. Error: Get http://localhost:8040/access/api/v1/system/ping: context deadline exceeded

Upvotes: 0

Views: 19235

Answers (1)

Prasanna Raghavendra
Prasanna Raghavendra

Reputation: 765

@kumar the system.yaml is not accurate. The node section should be indented under shared as below. You can remove the security section completely.

shared:
    node:
        ip: <your ip>

Upvotes: 1

Related Questions