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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #3036

          Result = SUCCESS

          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3036 Result = SUCCESS
          Hide
          scoopex 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/".

          Show
          scoopex 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/".
          Hide
          oldelvet Richard Mortimer added a comment -

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

          Show
          oldelvet Richard Mortimer added a comment - The changelog shows that this is fixed in 1.540. http://jenkins-ci.org/changelog
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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

            People

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

              Dates

              Created:
              Updated:
              Resolved: