Your message dated Tue, 09 Mar 2021 12:48:28 +0000
with message-id <[email protected]>
and subject line Bug#984569: fixed in groonga 11.0.0-2
has caused the Debian Bug report #984569,
regarding groonga-server-common: does not migrate statoverrides to new username
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
984569: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984569
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: groonga-server-common
Version: 11.0.0-1
Severity: serious
User: [email protected]
Usertags: piuparts
Control: affects -1 + groonga-httpd groonga-server-gqtp
Hi,
during a test with piuparts I noticed your package causes failures while
upgrading from 'buster'.
It installed fine in 'buster', then the upgrade to 'bullseye' fails.
>From the attached log (scroll to the bottom...):
dpkg: unrecoverable fatal error, aborting:
unknown system user 'groonga' in statoverride file; the system user got
removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
The error does not happen immediately while upgrading your package,
but when doing some certain dpkg actions later on that choke on the
unknown user.
I'd suggest something like this in postinst configure,
between the calls to create_database and fixperms:
...
create_database
if dpkg --compare-versions "$2" lt-nl "11.0.0-2~" ; then
dpkg-statoverride --list | \
while read u g m p
do
if [ "$u" = "groonga" ]; then
dpkg-statoverride --remove $p
dpkg-statoverride --update --add _groonga $g $m $p
fi
done
fi
fixperms
...
Do not add it to add_system_user, it needs to be run once
even if the renaming of groonga to _gronga has already happened.
There are also a few more issues during the upgrade:
Setting up groonga-server-common (9.0.0-1+deb10u1) ...
Adding system user `groonga' (UID 150) ...
Adding new group `groonga' (GID 150) ...
Adding new user `groonga' (UID 150) with group `groonga' ...
Creating home directory `/var/lib/groonga' ...
dpkg-statoverride: warning: --update given but /var/run/groonga does not exist
* the statoverride on /var/run/groonga is useless since the directory
is not (and cannot be) shipped by any package, therefore dpkg does not
create the directory (and fix its ownership/permissions)
Setting up groonga-server-common (11.0.0-1) ...
/var/lib/dpkg/info/groonga-server-common.postinst: 9: pgrep: not found
/var/lib/dpkg/info/groonga-server-common.postinst: 12: pgrep: not found
Removing user `groonga' ...
Warning: group `nogroup' has no more members.
userdel: group groonga not removed because it is not the primary group of
user groonga.
Done.
Allowing use of questionable username.
Adding system user `_groonga' (UID 150) ...
Adding new user `_groonga' (UID 150) with group `groonga' ...
Not creating home directory `/var/lib/groonga'.
* there is missing a Depends: procps for using pgrep
cheers,
Andreas
groonga-httpd_11.0.0-1.log.gz
Description: application/gzip
--- End Message ---
--- Begin Message ---
Source: groonga
Source-Version: 11.0.0-2
Done: Kentaro Hayashi <[email protected]>
We believe that the bug you reported is fixed in the latest version of
groonga, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Kentaro Hayashi <[email protected]> (supplier of updated groonga package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 09 Mar 2021 20:40:08 +0900
Source: groonga
Architecture: source
Version: 11.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Groonga Project <[email protected]>
Changed-By: Kentaro Hayashi <[email protected]>
Closes: 984569
Changes:
groonga (11.0.0-2) unstable; urgency=medium
.
* debian/control,debian/groonga-server-common.postinst
Support statoverride migration to bullseye (Closes: #984569)
Checksums-Sha1:
ba9a72520ec608bef956fb3d6eba88ee6b30a293 3217 groonga_11.0.0-2.dsc
332de3b2bf04e823bb399dd4ac6992e9146f58da 102924 groonga_11.0.0-2.debian.tar.xz
6cbcf8f1b2467211affb1b8b146182441be475b8 7442 groonga_11.0.0-2_source.buildinfo
Checksums-Sha256:
95b12d972530725fc19521fd14a269a79016ffb3431c848ed1d2472134456177 3217
groonga_11.0.0-2.dsc
5735b6d38dd12b932d66807ab69656258e4b7336f701e607902cab669c5ca2d8 102924
groonga_11.0.0-2.debian.tar.xz
c8da52a9292dfeb4dfd674c28f713ff74fbe7d2b6636048f3b354370d647afb0 7442
groonga_11.0.0-2_source.buildinfo
Files:
e02c8968050a0e0a8aaa5a3c9f76d1e4 3217 database optional groonga_11.0.0-2.dsc
bd9d2544509ca25e380729a45916c882 102924 database optional
groonga_11.0.0-2.debian.tar.xz
aeed5ee26ffdb32b9e8c3e8d0e9e29d9 7442 database optional
groonga_11.0.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEcZ6y2T2+nE0h+6Bk9/t1xWbtIOMFAmBHapQACgkQ9/t1xWbt
IOPqXxAAuTpN5cFF5ec+7eEEpSoFakF8aNcUUOpLYt8RoyM727mIzHQ16WljY9Th
5CLghLSWJ4FTFv5f34ASOf2etRq2Jr+sMMbyNei8Lce4UWNcioHhUV9Rx0lwZg9q
iIaclgqb9gUIPNPjn2QlTQQxi74snBJ6hj34WOCoyat4DzT/XYK65Se/HH5nnghX
/yT07vOSZ/qiiPCawxRiwFufBnsXHS0XOW97a2JnSflTrKLyZHum6kfFzmLoLngi
ZzsL44pjyROTPg2EBzMIfnOwZnFDAJNJ7Oy4tArV2m5VA/Tpz6D6aPAsrViNnUbG
CtRsrto6P95EAZ5XIjNWjmVrjD90WgS840YX5xmtb0IPCSlieCH0vgytnlgqvkAv
0lLrTfSAb7nXo4l8MEZ6iNYLeh75RDPapc5cnToC+r3qSqU9kFDAZEoTF0KANfVL
fLjrM6jMCUtf8+3LanfqMj4IpFHVoKZLhKL1JvXQJ6jxgvSx0or0D6iSOw7/0qpP
7umel4EQFUPGZQyxMrXkUiRe4VlIMhVxEC4uEu6BVic1mL7f9l+yZw3dGxh6b3S5
tIX0dk2sTSiLZrUzpt8Ag+JzkYa/bqBcu9WCRjykQGQ3ZA2Yyqfv6ckLzCDTxAd2
nWJNHvt6oNV+Z/9+CmL55leppb4WRpVbE3Ssshdrf68cX7HGHAI=
=XXr4
-----END PGP SIGNATURE-----
--- End Message ---