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

          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

          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.

          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.

          Code changed in jenkins
          User: Matt Blair
          Path:
          debian/debian/jenkins.postinst
          http://jenkins-ci.org/commit/jenkins/cab3d5daa7d8486ec6da3eed2be8424f12bfb046
          Log:
          [FIXED JENKINS-20407] /var/run/jenkins may not exist

          Test for the existence of /var/run/jenkins before trying to chown it in
          the Debian post-install script.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Matt Blair Path: debian/debian/jenkins.postinst http://jenkins-ci.org/commit/jenkins/cab3d5daa7d8486ec6da3eed2be8424f12bfb046 Log: [FIXED JENKINS-20407] /var/run/jenkins may not exist Test for the existence of /var/run/jenkins before trying to chown it in the Debian post-install script.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3036

          Result = SUCCESS

          dogfood added a comment - Integrated in jenkins_main_trunk #3036 Result = SUCCESS

          Unfortunately this breaks out automated jenkins installation.
          Release 1.539 still seems to have this problem and there is new newer release at "deb http://pkg.jenkins-ci.org/debian binary/".

          Marc Schoechlin added a comment - Unfortunately this breaks out automated jenkins installation. Release 1.539 still seems to have this problem and there is new newer release at "deb http://pkg.jenkins-ci.org/debian binary/".

          The changelog shows that this is fixed in 1.540.
          http://jenkins-ci.org/changelog

          Richard Mortimer added a comment - The changelog shows that this is fixed in 1.540. http://jenkins-ci.org/changelog

          Code changed in jenkins
          User: Wedge Jarrad
          Path:
          debian/jenkins.postinst
          http://jenkins-ci.org/commit/packaging/71118ff85401fd8415d887393eee3abc51d9498f
          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.

          Originally-From: jenkins-ci.org/commit/core/12abd62afe2e7068787d9ce2cb36e52d9109b10d

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wedge Jarrad Path: debian/jenkins.postinst http://jenkins-ci.org/commit/packaging/71118ff85401fd8415d887393eee3abc51d9498f 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. Originally-From: jenkins-ci.org/commit/core/12abd62afe2e7068787d9ce2cb36e52d9109b10d

          Code changed in jenkins
          User: Matt Blair
          Path:
          debian/jenkins.postinst
          http://jenkins-ci.org/commit/packaging/ab3fd690319afb0557eef50cb418c8d70b3bca33
          Log:
          [FIXED JENKINS-20407] /var/run/jenkins may not exist

          Test for the existence of /var/run/jenkins before trying to chown it in
          the Debian post-install script.

          Originally-From: jenkins-ci.org/commit/core/cab3d5daa7d8486ec6da3eed2be8424f12bfb046

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Matt Blair Path: debian/jenkins.postinst http://jenkins-ci.org/commit/packaging/ab3fd690319afb0557eef50cb418c8d70b3bca33 Log: [FIXED JENKINS-20407] /var/run/jenkins may not exist Test for the existence of /var/run/jenkins before trying to chown it in the Debian post-install script. Originally-From: jenkins-ci.org/commit/core/cab3d5daa7d8486ec6da3eed2be8424f12bfb046

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

              Created:
              Updated:
              Resolved: