服务注册表 ping 失败,将重试。错误:获取"http://localhost:8040/access/api/v1/system/ping":拨打 tcp [::1]:连接:连接被拒绝



服务注册表ping失败,将重试。错误:Get "http://localhost:8040/access/api/v1/system/ping": dial tcp [::1]:8040: connect: connection refused

应用程序在远程机器上运行,日志在多个地方的url中显示localhost。我们试图改变体制。并添加节点的IP。我们尝试更改系统中的IP和PORT。.

服务器的bundle.js文件。

在hosts文件中也没有localhost条目

我们也检查了artifactory.xml和access.xml,没有发现任何奇怪的东西。在一个地方,有人要求将文件的所有者更改为"artifactory",但我不能更改文件的所有者,因为文件的所有者是Linux机器的系统所有者/登录用户。

前一个类似的问题得到了回答,但没有任何解决方案。如果需要更多的输入或尝试修复它,请分享。

2:12:29.162L[org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol init] - Initializing ProtocolHandle"http-nio-8081"] 
2021-07-27T12:12:29.258L[org.apache.cat.util.net.NioSelectorPool] [org.apache.cat.util.net.NioSelectorPool getSharedSelector] - Using a shared selector for servlet write/read 
2021-07-27T12:12:29.430L[org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol init] - Initializing ProtocolHandle"http-nio-127.0.0.1-8091"] 
2021-07-27T12:12:29.431L[org.apache.cat.util.net.NioSelectorPool] [org.apache.cat.util.net.NioSelectorPool getSharedSelector] - Using a shared selector for servlet write/read 
2021-07-27T12:12:29.450L[org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol init] - Initializing ProtocolHandle"http-nio-127.0.0.1-8040"] 
2021-07-27T12:12:29.451L[org.apache.cat.util.net.NioSelectorPool] [org.apache.cat.util.net.NioSelectorPool getSharedSelector] - Using a shared selector for servlet write/read 
2021-07-27T12:12:29.485L[org.apache.catalina.core.StandardService] [org.apache.catalina.core.StandardService startInternal] - Starting service [Catalina] 
2021-07-27T12:12:29.486L[org.apache.catalina.core.StandardEngine] [org.apache.catalina.core.StandardEngine startInternal] - Starting Servlet engine: [Apache cat/8.5.66] 
2021-07-27T12:12:29.609L[org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - Deploying deployment descripto/localhome/myUser/jfrog/artifactory/app/artifactory/cat/conf/Catalina/localhost/artifactory.xml] 
2021-07-27T12:12:29.609L[org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - Deploying deployment descripto/localhome/myUser/jfrog/artifactory/app/artifactory/cat/conf/Catalina/localhost/access.xml] 
2021-07-27T12:12:29.730L5m[ct] [WARNING]  ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - A docBase [/localhome/myUser/jfrog/artifactory/app/artifactory/cat/webapps/access.war] inside the host appBase has been specified, and will be ignored 
2021-07-27T12:12:29.731L5m[ct] [WARNING]  ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - A docBase [/localhome/myUser/jfrog/artifactory/app/artifactory/cat/webapps/artifactory.war] inside the host appBase has been specified, and will be ignored 
2021-07-27T1
0:12:45.207Z [o.a.c.h.HaNodeProperties:65] [ocalhost-startStop-2] - Artifactory is running in non-clustered mode.
2021-07-27T10:12:46.531Z [security_keys.go: ]ain ] - Master key is missing. Pending for 25 seconds with s eouinit]
2021-07-27T10:12:46.854Zain ] - pinging artifactory, attempt number 10
2021-07-27T10:12:46.863Zain ] - pinging artifactory attempt number failed with code : ECONNREFUSED
2021-07-27T10:13:17.857Z server.go:5]ain ] - Starting server on localhost:8049
2021-07-27T10:13:17.857Z server.go:5]ain ] - Starting server on :8082
2021-07-27T10:13:17.857Z server.go:5]ain ] - Starting server on localhost:8046
2021-07-27T10:13:17.857Z provider_aggregator.go: ]ain ] - Starting provider *file.Provider {"Watch":true,"Filename":"","Constraints":null,"Trace":false,"TemplateVersion":0,"DebugLogGeneratedTemplate":false,"Directory":"/localhome/myUser/jfrog/artifactory/var/data/router/traefik/routes","TraefikFile":""}
2021-07-27T10:13:17.860Z server_configuration.go:6  ]ain ] - Server configuration reloaded on :8082
2021-07-27T10:13:17.860Z server_configuration.go:6  ]ain ] - Server configuration reloaded on localhost:8046
2021-07-27T10:13:17.860Z server_configuration.go:6  ]ain ] - Server configuration reloaded on localhost:8049
2021-07-27T10:13:17.860Z ain.go:47  ]ain ] - Router (jfrou) service initialization completed in 57.650 seconds. Listening on port: 8082
2021-07-27T10:13:18.094Z ERROR][22 ] ]ain ] - ArtifactoryClient::http [get] request /api/system/ping failed with4 code
2021-07-27T10:13:18.725Z [.AccessWithRouterRegistrar:111] [pool-13-thread-  ] - Access Server successfully registered on Router on URL: http://localhost:8046
2021-07-27T10:13:19.108Z ERROR][22 ] ]ain ] - ArtifactoryClient::http [get] request /api/system/ping failed with4 code
ERROR][22 ] ]ain ] - ArtifactoryClient::http [get] request /api/system/ping failed with4 code   

过去4个月我们的系统运行良好,我们看到在日志中检测到一些"更新"。-我们假设JFROG已经对映像进行了更新。

我们一遍又一遍地看到以下错误(来自docker日志)。

我们唯一能看到的是":localhost"正在尝试连接::1 -而不是像其他所有东西一样使用ip4 -

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

然后我们去查看访问日志文件-它抱怨它不能与路由器通信-所以8040端口访问失败,它试图通过8046端口访问路由器。

这些盒子被"触摸"了;这个问题自然而然地出现了。重启容器似乎没有做任何事情,我们已经尝试在系统中添加IP。(因为我们看到的问题是路由器实际上并没有启动——端口8046没有显示为已启动。)

catalina logs show nothing

试图打开JFROG的支持,因为这些都是授权的盒子,也没有得到太多的帮助(除了升级到8????)

如果别人有什么变化,就去找"为什么";路由器/访问总是使用本地主机(当许可证和其他配置是主机名绑定时-然后不够聪明地使用它找到的IPV4条目?)-将它推送到docker并说"摆脱该条目";这是不会削减它-这工作很好,直到上周…然后砰的一声,停了。

我怀疑是隐藏的东西,即许可证,而不是即时随机配置问题

将IP设置为0.0.0.0在windows中为我工作。

附带的日志不包含您所指的错误,但我认为它类似于:

2021-07-27T15:04:22.880Z [jfevt] [INFO ] [61e09fae00e74a7 ] [access_thin_client.go:103     ] [main                ] - Cluster join: Retry 5: 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 127.0.0.1:8046: connect: connection refused [startup]

如果您在底部看到以下日志,则表示启动成功,您可以忽略此日志消息:

###############################################################
###   All services started successfully in 43.304 seconds   ###
###############################################################

这只是启动流程的一部分-服务等待访问服务完成启动。

还有其他问题吗?

相关内容

最新更新