Problem Statement
The logback.xml file is a configuration file that defines the logging behaviour of the Artifactory services. It will be located under $JFROG_HOME/artifactory/var/etc/<microservices>/logback.xml file. [Here <microservice> will be artifactory, access and mc]
When the logback.xml file is corrupted or has permission issues, you will notice errors similar to the below in console.log file during the initialisation of the Artifactory service.
You will also notice that the Frontend Microservice is failing due to the connection being refused on port 8070 in either the frontend-service.log or by executing the Health check command
curl -XGET http://localhost:8046/router/api/v1/topology/health
Solution
If the logback.xml file is corrupted, one of the solutions to remediate this issue is to delete the logback.xml file and perform Artifactory restart. This will help Artifactory to recreate the logback.xml file.
It would also be required to validate the ownership and permission allocated to the logback.xml file. The ownership of the logback.xml file should be the same as the $JFROG_HOME/artifactory/var directory.
The logback.xml file is a configuration file that defines the logging behaviour of the Artifactory services. It will be located under $JFROG_HOME/artifactory/var/etc/<microservices>/logback.xml file. [Here <microservice> will be artifactory, access and mc]
When the logback.xml file is corrupted or has permission issues, you will notice errors similar to the below in console.log file during the initialisation of the Artifactory service.
11:44:33,333 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@fcab829 - XML_PARSING - Parsing fatal error on line 489 and column 7 11:44:33,333 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@fcab829 - org.xml.sax.SAXParseException; systemId: file:/opt/jfrog/artifactory/var/etc/artifactory/logback.xml; lineNumber: 489; columnNumber: 7; The element type "configuration" must be terminated by the matching end-tag "</configuration>".
You will also notice that the Frontend Microservice is failing due to the connection being refused on port 8070 in either the frontend-service.log or by executing the Health check command
curl -XGET http://localhost:8046/router/api/v1/topology/health
Solution
If the logback.xml file is corrupted, one of the solutions to remediate this issue is to delete the logback.xml file and perform Artifactory restart. This will help Artifactory to recreate the logback.xml file.
It would also be required to validate the ownership and permission allocated to the logback.xml file. The ownership of the logback.xml file should be the same as the $JFROG_HOME/artifactory/var directory.