Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20885

Artifactory is failing start after upgrade to latest versions (>=6.14.0) using rpm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 2 - Critical
    • Resolution: Done
    • Affects Version/s: 6.15.0, 6.16.0, 6.14.0
    • Fix Version/s: 6.17.0
    • Component/s: RPM
    • Labels:
    • Severity:
      Critical

      Description

      Artifactory failing to start after performing a rpm upgrade to the Artifactory version 6.14.0 or latest

      Steps to reproduce (Example) :

      ->Install Artifactory version 5.8.3 through rpm installation

       rpm -i jfrog-artifactory-pro-5.8.3.rpm
      

      -> Check permissions for '/var/opt/jfrog' and '/var/opt/jfrog/artifactory/' directories:

      sankardk]# ls -lart /var/opt/jfrog/
      total 16
      drwxr-xr-x. 3 root root 4096 Dec 16 17:54 ..
      drwxr-xr-x. 4 root root 4096 Dec 16 17:54 .
      drwxrwxr-x. 9 artifactory artifactory 4096 Dec 16 17:54 artifactory
      drwxr-xr-x. 2 artifactory artifactory 4096 Dec 16 17:54 run
      [root@sankar-test-case-120420 sankardk]# 
      [root@sankar-test-case-120420 sankardk]# ls -lart /var/opt/jfrog/artifactory/
      total 36
      lrwxrwxrwx. 1 artifactory artifactory 26 Dec 16 17:54 etc -> /etc/opt/jfrog/artifactory
      lrwxrwxrwx. 1 artifactory artifactory 29 Dec 16 17:54 tomcat -> /opt/jfrog/artifactory/tomcat
      lrwxrwxrwx. 1 artifactory artifactory 27 Dec 16 17:54 misc -> /opt/jfrog/artifactory/misc
      lrwxrwxrwx. 1 artifactory artifactory 30 Dec 16 17:54 webapps -> /opt/jfrog/artifactory/webapps
      drwxr-xr-x. 4 root root 4096 Dec 16 17:54 ..
      drwxr-xr-x. 3 artifactory artifactory 4096 Dec 16 17:54 work
      drwxr-x---. 2 artifactory artifactory 4096 Dec 16 17:54 support
      drwxr-x---. 2 artifactory artifactory 4096 Dec 16 17:54 backup
      drwxrwxr-x. 9 artifactory artifactory 4096 Dec 16 17:54 .
      drwxr-x---. 6 artifactory artifactory 4096 Dec 16 17:54 access
      drwxr-xr-x. 3 artifactory artifactory 4096 Dec 16 17:55 logs
      drwxr-xr-x. 2 artifactory artifactory 4096 Dec 16 17:55 temp
      drwxr-x---. 7 artifactory artifactory 4096 Dec 16 18:00 data

       

      -> Perform Artifactory upgrade

             rpm -U jfrog-artifactory-pro-6.16.0.rpm 
      

      -> Check permissions for '/var/opt/jfrog' and '/var/opt/jfrog/artifactory/' directories:

      sankardk]# ls -lart /var/opt/jfrog/
      total 16
      drwxr-xr-x. 2 artifactory artifactory 4096 Nov 28 13:47 run
      drwxr-xr-x. 3 root root 4096 Dec 16 17:54 ..
      drwxr-xr-x. 4 root root 4096 Dec 16 17:54 .
      drwxrwxr-x. 9 root root 4096 Dec 16 18:12 artifactory
      [root@sankar-test-case-120420 sankardk]# 
      [root@sankar-test-case-120420 sankardk]# ls -lart /var/opt/jfrog/artifactory/
      total 36
      drwxr-xr-x. 4 root root 4096 Dec 16 17:54 ..
      drwxr-xr-x. 3 artifactory artifactory 4096 Dec 16 17:54 work
      drwxr-x---. 2 artifactory artifactory 4096 Dec 16 17:54 support
      drwxr-x---. 2 artifactory artifactory 4096 Dec 16 17:54 backup
      drwxr-x---. 6 artifactory artifactory 4096 Dec 16 17:54 access
      drwxr-xr-x. 3 artifactory artifactory 4096 Dec 16 17:55 logs
      drwxr-xr-x. 2 artifactory artifactory 4096 Dec 16 17:55 temp
      drwxr-x---. 7 artifactory artifactory 4096 Dec 16 18:09 data
      lrwxrwxrwx. 1 root root 26 Dec 16 18:12 etc -> /etc/opt/jfrog/artifactory
      lrwxrwxrwx. 1 root root 27 Dec 16 18:12 misc -> /opt/jfrog/artifactory/misc
      lrwxrwxrwx. 1 root root 30 Dec 16 18:12 webapps -> /opt/jfrog/artifactory/webapps
      lrwxrwxrwx. 1 root root 29 Dec 16 18:12 tomcat -> /opt/jfrog/artifactory/tomcat
      drwxrwxr-x. 9 root root 4096 Dec 16 18:12 

       

      From above, we can see permissions for '/var/opr/jfrog/artifactory' directory and other sublinks getting changed from artifactory to root, due to this Artifactory service not coming up.

      Workaround:

      Update permissions "artifactory:artifactory" to the /var/opt/jfrog/artifactory directory, then we should be able to start the service.

              chown -R artifactory:artifactory artifactory

        Attachments

          Activity

            People

            Assignee:
            amithk Amith Kumar
            Reporter:
            sankark Sankar Kumar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-20885 -
                SYNCHRONIZED
                • Last Sync Date: