How to resolve a "Service registry ping failed" error after an Artifactory upgrade

How to resolve a "Service registry ping failed" error after an Artifactory upgrade

AuthorFullName__c
Andrey Granovsky
articleNumber
000004974
FirstPublishedDate
2021-01-12T17:00:53Z
lastModifiedDate
2025-08-06
VersionNumber
10
Description
In this article we will learn how to resolve an issue where Artifactory failed to start due to "Error while trying to connect to local router".

Cause of the issue
This is happening since access.xml and artifactory.xml files which should be located in $JFROG_HOME/artifactory/app/access/tomcat/conf/Catalina/localhost and $JFROG_HOME/artifactory/app/artifactory/tomcat/conf/Catalina/localhost directories are missing.
Since these files are missing, Access service is not able to start while you don't see an indication in access-service.log. In addition, you will not see any updates in tomcat log trying to start Access.

The following errors can be noticed in console.log:
failed fetching external topology from Access: bad response status: 404 Not Found
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]

 

Resolution
In order to resolve the issue, you may want to perform the following steps: 
  1. Stop Artifactory service
  2. Navigate to $JFROG_HOME/artifactory/app/artifactory/tomcat/conf/Catalina/localhost directory - this directory should have the artifactory.xml file, next navigate to the $JFROG_HOME/artifactory/app/access/tomcat/conf/Catalina/localhost directory to get the access.xml file. Those files responsible for Access and Artifactory startup. If they are missing
  3. *Copy the missing files to the mentioned directory (download explanation below)
  4. Verify that the owner and group are “artifactory” for these files
  5. Start Artifactory service
*The missing files can be copied from the .tar.gz or .zip files of Artifactory (Linux/Windows download) on our download page.
Download the relevant version of Artifactory, unzip it, copy artifactory.xml from app/artifactory/tomcat/conf/Catalina/localhost directory and the access.xml from the app/access/tomcat/conf/Catalina/localhost.
 

Note. In some cases, the issue may be caused by blocked ports on the Artifactory host, please make sure that all the relevant ports are available, information on the exposed ports in Artifactory 7.x, Xray 3.x, and Mission Control 4.x can be found here.