[DRE-maint] Bug#855579: gitlab: fails to purge - command in postrm not found: dropdb

Andreas Beckmann anbe at debian.org
Mon Feb 20 11:13:37 UTC 2017


Package: gitlab
Version: 8.13.11+dfsg-3
Severity: important
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to purge due
to a command not found. According to policy 7.2 you cannot rely on the
depends being available during purge, only the essential packages are
available for sure.

Filing this as important because a.) it's a clear policy violation (to
not clean up at purge) b.) having a piuparts clean archive is a release
goal since lenny and c.) this package being piuparts buggy blocks
packages depending on it from being tested by piuparts (and thus
possibly the detection of more severe problems).

>From the attached log (scroll to the bottom...):

14m44.1s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpY3p0OD', 'dpkg', '--purge', 'gitlab']
14m44.4s DUMP: 
  (Reading database ... 4521 files and directories currently installed.)
  Purging configuration files for gitlab (8.13.11+dfsg-3) ...
  userdel: gitlab mail spool (/var/mail/gitlab) not found
  bash: dropdb: command not found
  dpkg: error processing package gitlab (--purge):
   subprocess installed post-removal script returned error exit status 127
  Errors were encountered while processing:
   gitlab
14m44.4s DEBUG: Command failed (status=1), but ignoring error: ['chroot', '/tmp/piupartss/tmpY3p0OD', 'dpkg', '--purge', 'gitlab']

and retrying the purge afterwards shows another error:

14m44.4s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpY3p0OD', 'dpkg', '--purge', '--pending']
14m44.6s DUMP: 
  (Reading database ... 4418 files and directories currently installed.)
  Purging configuration files for gitlab (8.13.11+dfsg-3) ...
  userdel: user 'gitlab' does not exist
  dpkg: error processing package gitlab (--purge):
   subprocess installed post-removal script returned error exit status 6
  Errors were encountered while processing:
   gitlab
14m44.6s ERROR: Command failed (status=1): ['chroot', '/tmp/piupartss/tmpY3p0OD', 'dpkg', '--purge', '--pending']


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gitlab_8.13.11+dfsg-3.log.gz
Type: application/gzip
Size: 177518 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170220/55e2be70/attachment-0001.bin>


More information about the Pkg-ruby-extras-maintainers mailing list