Package: munin
Version: 2.0.73-1
Followup-For: Bug #956711

I have this issue too, and was able to diagnose the cause and (probably) why
the autopkgtest did not discover it.

The relevant portion of the postinit script is this:

```
case "$1" in
        configure)
                if [ -z "$2" ] ; then
                        initperms
                        apache_install "$@"
                fi
                ;;
esac
```

So, it only runs the `initperms` on new installs (`$2` is the previous
version, if any).

This is a problem specific to upgrades of existing installs AFAICT.

Running `sudo bash -x /var/lib/dpkg/info/munin.postinst configure` gets
through enough of the init script to do the permissions fix before crapping
out on the debhelper stuff (which expects a proper set of env vars that
aren't set).

-- System Information:
Debian Release: 12.11
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'testing-security'), (500, 'oldstable-updates'), (500, 
'oldstable-security'), (500, 'testing'), (500, 'oldstable'), (490, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.22+bpo-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages munin depends on:
ii  cron [cron-daemon]           3.0pl1-162
ii  debconf [debconf-2.0]        1.5.82
ii  fonts-dejavu-core            2.37-6
ii  init-system-helpers          1.65.2
ii  libdate-manip-perl           6.91-1
pn  libdigest-md5-perl           <none>
ii  libfile-copy-recursive-perl  0.45-4
ii  libhtml-template-perl        2.97-2
ii  libio-socket-inet6-perl      2.73-1
ii  liblog-log4perl-perl         1.57-1
ii  librrds-perl                 1.7.2-4+b8
pn  libstorable-perl             <none>
ii  liburi-perl                  5.17-1
ii  munin-common                 2.0.73-1
ii  netbase                      6.4
ii  perl [libtime-hires-perl]    5.36.0-7+deb12u2
ii  rrdtool                      1.7.2-4+b8
ii  systemd-sysv                 252.38-1~deb12u1

Versions of packages munin recommends:
ii  libcgi-fast-perl  1:2.15-1
pn  munin-doc         <none>
ii  munin-node        2.0.73-1

Versions of packages munin suggests:
ii  apache2 [httpd]                     2.4.62-1~deb12u2
ii  elinks [www-browser]                0.13.2-1+b4
ii  google-chrome-stable [www-browser]  137.0.7151.103-1
ii  libapache2-mod-fcgid                1:2.3.9-4
ii  libnet-ssleay-perl                  1.92-2+b1
ii  lighttpd [httpd]                    1.4.69-1
ii  links [www-browser]                 2.28-1+b2
ii  lynx [www-browser]                  2.9.0dev.12-1
ii  w3m [www-browser]                   0.5.3+git20230121-2

-- Configuration Files:
/etc/munin/apache24.conf changed [not included]

-- debconf information excluded

Reply via email to