we had a system running fine for the last 4 months, we see there was some "update detected in the logs " - we are assuming that JFROG has done an update to the image.
we have the following errors (from docker logs) over and over again.
the only thing we can see is that the ":localhost" is trying to connect on ::1 - rather than use ip4 like everything else does -
2021-08-31T16:24:43.534Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory, attempt number 40
2021-08-31T16:24:43.536Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory attempt number 40 failed with code : ECONNREFUSED
2021-08-31T16:24:44.206Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 60 Elapsed 29.12 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:24:47.090Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 45: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:24:47.471Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 45: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:24:49.214Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 70 Elapsed 34.13 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:24:52.093Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 50: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:24:52.275Z [jfrou] [INFO ] [5bfc52e1713f01a5] [join_executor.go:165 ] [main ] - Cluster join: Retry 5: Service registry ping failed, will retry. Error: Get "http://localhost:8040/access/api/v1/system/ping": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
2021-08-31T16:24:52.473Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 50: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:24:53.563Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory, attempt number 50
2021-08-31T16:24:53.564Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory attempt number 50 failed with code : ECONNREFUSED
2021-08-31T16:24:54.225Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 80 Elapsed 39.14 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:24:57.095Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 55: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:24:57.476Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 55: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:24:59.235Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 90 Elapsed 44.15 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:25:02.098Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 60: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:25:02.478Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 60: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:25:03.589Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory, attempt number 60
2021-08-31T16:25:03.590Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory attempt number 60 failed with code : ECONNREFUSED
2021-08-31T16:25:04.246Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 100 Elapsed 49.16 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:25:07.100Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 65: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:25:07.481Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 65: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:25:09.258Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 110 Elapsed 54.17 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:25:12.103Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 70: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:25:12.483Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 70: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:25:13.615Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory, attempt number 70
2021-08-31T16:25:13.617Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory attempt number 70 failed with code : ECONNREFUSED
2021-08-31T16:25:14.270Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 120 Elapsed 59.19 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:25:17.105Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 75: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:25:17.486Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 75: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:25:19.282Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 130 Elapsed 1.07 minutes failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:25:22.108Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 80: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2021-08-31T16:25:22.488Z [jfmd ] [INFO ] [2908f702d61ab45b] [accessclient.go:57 ] [main ] - Cluster join: Retry 80: Service registry ping failed, will retry. 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 [::1]:8046: connect: connection refused [access_client]
2021-08-31T16:25:23.642Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory, attempt number 80
2021-08-31T16:25:23.644Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory attempt number 80 failed with code : ECONNREFUSED
2021-08-31T16:25:24.289Z [jfac ] [WARN ] [e6b16cb1bbc84c40] [o.j.c.ExecutionUtils:165 ] [pool-6-thread-2 ] - Retry 140 Elapsed 1.15 minutes failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
2021-08-31T16:25:27.110Z [jfevt] [INFO ] [3e5b610962c1f4aa] [access_thin_client.go:103 ] [main ] - Cluster join: Retry 85: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
^C
then we went an looked at the log files for access - its complaining that it cant talk to router - so access fails on port 8040 and its trying to get to router on port 8046.
these boxes were "touched" and the issue appeared spontaneously. Restarting the container doesnt seem to do anything, we have tried adding IP in system.yaml and it makes no different (since the issue as we can see it is that router doesnt actually start - port 8046 doesnt show up as a started.
catalina logs show nothing
tried to open support with JFROG since these are licensed boxes and didnt get much help there either (other than upgrade to 8????)
any change others have go and figured out "why" the router/access are always using localhost (when the license and other configuration are hostname bound - and then not being smart enough to use the IPV4 entry it finds ?) - pushing it to docker and saying "get rid of that entry" is not going to cut it - this was working fine until last week.. and then boom, stopped.
I suspect is something buried i.e license, rather than a instant random configuration issue