Resolution

ARTIFACTORY: How to resolve the panic runtime error in the Router service when Artifactory starts up

AuthorFullName__c
Ino Choi
articleNumber
000005580
ft:sourceType
Salesforce
FirstPublishedDate
2023-02-15T12:07:02Z
lastModifiedDate
2023-02-15T12:07:02Z
VersionNumber
1
This issue can occur when there is an issue with the TEMP directory in the Artifactory host machine. By default, Artifactory will use the “/tmp” directory as the default TEMP directory to write temporary files to operate. Below is an example of where Artifactory makes reference to the TEMP directory,
[$JFROG_HOME/artifactory/app]# grep -nr "/tmp" *

Binary file artifactory/tomcat/webapps/access.war matches
Binary file artifactory/tomcat/webapps/artifactory/WEB-INF/lib/spring-beans-5.3.20.jar matches
Binary file artifactory/tomcat/webapps/artifactory/WEB-INF/lib/jruby-stdlib-9.2.20.1-jfrog-4.jar matches
Binary file artifactory/tomcat/webapps/access/WEB-INF/lib/spring-beans-5.3.20.jar matches
Binary file artifactory/tomcat/webapps/mc/WEB-INF/lib/spring-beans-5.3.20.jar matches
Binary file bin/diagnostics/diagnosticsUtil matches
bin/artifactory.sh:175:        # Install license file if exists in /tmp
bin/artifactory.sh:176:        if ls /tmp/art*.lic 1> /dev/null 2>&1; then
bin/artifactory.sh:177:            logger "Found /tmp/art*.lic. Using t..."
bin/artifactory.sh:178:            cp -v /tmp/art*.lic $ART_ETC/artifactory.lic
bin/migrationComposeInfo.yaml:63:      work/access=access/tmp
bin/migrationRpmInfo.yaml:97:      work/access=access/tmp
bin/migrationDockerInfo.yaml:61:      work/access=access/tmp
Binary file event/bin/jf-event matches

It’s possible that the permission to this directory has been changed and the Artifactory user does not have the permission to write to the directory. Or the TEMP directory may have been mounted to a different disk/partition that prevents the Artifactory user from writing to the directory.

Below is the default permission on the “/tmp” directory.
$ ls -al /
drwxrwxrwt.  14 root root 4096 Feb  9 22:16 tmp

After correcting the permission to the TEMP directory, restart Artifactory and it should resolve the issue.