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

Broken Debian upgrades because postinst doesn't check for present group/user

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      Package upgrade from 1.559 to 1.560 on Debian systems fails with:

      dpkg: error processing jenkins (--configure):
      subprocess installed post-installation script returned error exit status 1

      due to the:

      addgroup --system --quiet jenkins

      call in postinst without checking whether corresponding group already exists.

      Problem introduced as of:

      commit 7216aab0d3f7215be7d71109936ad4b3aa0a583b
      Author: Peter Eisentraut <peter@eisentraut.org>
      Date: Sun Nov 3 08:12:17 2013 -0500
      debian: Use a configurable group for the Jenkins user
      Typical Debian practice is to have one equally-named group per system
      user. Make that for the jenkins user by default, but allow it to be
      overridden in /etc/default/jenkins, same as for the user name.

      This change also deleted the check for the existing Jenkins user (for whatever reason, but that's also broken).

      I'm working on a fix/PR right now.

          [JENKINS-22710] Broken Debian upgrades because postinst doesn't check for present group/user

          Michael Prokop created issue -
          Michael Prokop made changes -
          Labels New: debian
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-22328 [ JENKINS-22328 ]
          Daniel Beck made changes -
          Link Original: This issue is duplicated by JENKINS-22328 [ JENKINS-22328 ]
          Mathis Dirksen-Thedens made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 154822 ] New: JNJira + In-Review [ 195044 ]

            Unassigned Unassigned
            mika Michael Prokop
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: