Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20407

Installation of Debian package v1.538 fails: chown: cannot access `/var/run/jenkins': No such file or directory

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • None

      Latest version of Jenkins Debian package (1.538) fails to install:

      Setting up jenkins (1.538) ...
      chown: cannot access `/var/run/jenkins': No such file or directory
      dpkg: error processing jenkins (--configure):
      subprocess installed post-installation script returned error exit status 1

      The Debian package doesn't provide the /var/run/jenkins directory but modifies it in the postinst maintainer script without checking whether it's present.

      Workaround for installation:

      mkdir /var/run/jenkins

          [JENKINS-20407] Installation of Debian package v1.538 fails: chown: cannot access `/var/run/jenkins': No such file or directory

          Michael Prokop created issue -

          David Vo added a comment - - edited

          I am seeing this same issue too, while installing jenkins as part of a cookbook.

          David Vo added a comment - - edited I am seeing this same issue too, while installing jenkins as part of a cookbook.

          Brad M added a comment -

          Seen this also. Debian 6.0.7. Workaround worked thanks

          Brad M added a comment - Seen this also. Debian 6.0.7. Workaround worked thanks

          I've just ran into this on Raring, too.

          Hannes Schmidt added a comment - I've just ran into this on Raring, too.

          Love Nyberg added a comment -

          I also got this on Debian 7,

          #> dpkg --configure -a
          Setting up jenkins (1.538) ...
          chown: cannot access `/var/run/jenkins': No such file or directory
          dpkg: error processing jenkins (--configure):
           subprocess installed post-installation script returned error exit status 1
          Errors were encountered while processing:
           jenkins
          

          workaround is working but should be done from installation script.

          Love Nyberg added a comment - I also got this on Debian 7, #> dpkg --configure -a Setting up jenkins (1.538) ... chown: cannot access `/ var /run/jenkins': No such file or directory dpkg: error processing jenkins (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: jenkins workaround is working but should be done from installation script.

          Pull request 956 removes /var/run/jenkins from debian/dirs but there are still references to the directory in other locations.

          https://github.com/jenkinsci/jenkins/pull/956

          Richard Mortimer added a comment - Pull request 956 removes /var/run/jenkins from debian/dirs but there are still references to the directory in other locations. https://github.com/jenkinsci/jenkins/pull/956
          Richard Mortimer made changes -
          Assignee New: Peter Eisentraut [ petere ]

          This is likely going to affect all users using Debian/Ubuntu packaging so needs resolving ASAP.

          Richard Mortimer added a comment - This is likely going to affect all users using Debian/Ubuntu packaging so needs resolving ASAP.
          Richard Mortimer made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Code changed in jenkins
          User: Wedge Jarrad
          Path:
          debian/debian/jenkins.postinst
          http://jenkins-ci.org/commit/jenkins/12abd62afe2e7068787d9ce2cb36e52d9109b10d
          Log:
          JENKINS-20407 Make sure dir exists before chmod

          Ensures that the directory /var/run/jenkins exists before the installer
          script attempts to chmod it.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wedge Jarrad Path: debian/debian/jenkins.postinst http://jenkins-ci.org/commit/jenkins/12abd62afe2e7068787d9ce2cb36e52d9109b10d Log: JENKINS-20407 Make sure dir exists before chmod Ensures that the directory /var/run/jenkins exists before the installer script attempts to chmod it.

            petere Peter Eisentraut
            mika Michael Prokop
            Votes:
            5 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: