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

o2gm4chl  于 2021-10-10  发布在  Java
关注(0)|答案(2)|浏览(855)

服务注册表ping失败,将重试。错误:获取“http://localhost:8040/access/api/v1/system/ping“:拨号tcp[::1]:8040:连接:连接被拒绝
应用程序正在远程计算机上运行,日志在多个位置的URL中显示localhost。我们试图更改system.yaml文件,并为节点添加ip。我们试图更改system.yaml文件中的ip和端口,以及前端文件夹中服务器的bundle.js。
主机文件中也没有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
mm5n2pyu

mm5n2pyu1#

附加的日志不包含您所指的错误,但我假设它类似于:

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   ###

############################################################### 

它只是启动流程的一部分——等待access服务完成启动的服务。
您是否遇到其他问题?

6g8kf2rb

6g8kf2rb2#

@zafar-我认为您遇到了这个问题:jfrog artifactory无法验证路由器错误
您能用以下内容更新system.yaml(将在var/etc/文件夹中)并重试吗?如果没有system.yaml,请添加一个以用户artifactory作为文件所有者的文件。

shared:
    node:
        ip: <your ipv4 IP>

相关问题