Bug#708864: Munin breaks Apache config on removal

2013-07-28 Thread Matthias Schmitz
Hi Jurij,

On Sun, May 19, 2013 at 10:35:39AM +0100, Jurij Smakov wrote:
 Package: munin
 Version: 2.0.14-1
 Severity: important
 
 As illustrated by the following transcript, removing munin and
 friends results in a dangling symlink
 
 /etc/apache2/conf.d/munin - ../../munin/apache.conf
 
 which breaks apache configuration.
thanks for this report! This happens because of an wrong test in
munin.postrm. Instead of testing that a symlink exists we tested if a
file exists. I fixed it in the git repository now the symlink is
deleted on purge of munin.

best wishes,
Matthias


signature.asc
Description: PGP signature


Bug#708864: Munin breaks Apache config on removal

2013-05-19 Thread Jurij Smakov
Package: munin
Version: 2.0.14-1
Severity: important

As illustrated by the following transcript, removing munin and friends 
results in a dangling symlink

/etc/apache2/conf.d/munin - ../../munin/apache.conf

which breaks apache configuration.

jurij@paddy:~$ sudo apt-get install munin
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following extra packages will be installed:
  munin-common munin-doc munin-node munin-plugins-core munin-plugins-extra
Suggested packages:
  libapache2-mod-fcgid munin-plugins-java liblwp-useragent-determined-perl 
libnet-irc-perl mysql-client smartmontools ethtool libdbd-pg-perl 
libdbd-mysql-perl
  libcache-cache-perl libtext-csv-xs-perl logtail libnet-netmask-perl 
libnet-telnet-perl conntrack
The following NEW packages will be installed:
  munin munin-common munin-doc munin-node munin-plugins-core munin-plugins-extra
0 upgraded, 6 newly installed, 0 to remove and 117 not upgraded.
Need to get 0 B/1,129 kB of archives.
After this operation, 2,891 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Selecting previously unselected package munin-common.
(Reading database ... 237491 files and directories currently installed.)
Unpacking munin-common (from .../munin-common_2.0.14-1_all.deb) ...
Selecting previously unselected package munin.
Unpacking munin (from .../munin_2.0.14-1_all.deb) ...
Selecting previously unselected package munin-doc.
Unpacking munin-doc (from .../munin-doc_2.0.14-1_all.deb) ...
Selecting previously unselected package munin-plugins-core.
Unpacking munin-plugins-core (from .../munin-plugins-core_2.0.14-1_all.deb) ...
Selecting previously unselected package munin-node.
Unpacking munin-node (from .../munin-node_2.0.14-1_all.deb) ...
Selecting previously unselected package munin-plugins-extra.
Unpacking munin-plugins-extra (from .../munin-plugins-extra_2.0.14-1_all.deb) 
...
Processing triggers for man-db ...
Setting up munin-common (2.0.14-1) ...
Setting up munin (2.0.14-1) ...
[ ok ] Reloading web server config: apache2.
Setting up munin-doc (2.0.14-1) ...
Setting up munin-plugins-core (2.0.14-1) ...
Setting up munin-node (2.0.14-1) ...
Initializing plugins..done.
[ ok rting munin-node..[] Stopping Munin-Node: stopped beforehand.
[ ok ] Starting Munin-Node: done.
[ ok ] Starting Munin-Node: started beforehand.
Setting up munin-plugins-extra (2.0.14-1) ...
jurij@paddy:~$ ls -al /etc/apache2/conf.d/munin 
lrwxrwxrwx 1 root root 23 May 19 10:29 /etc/apache2/conf.d/munin - 
../../munin/apache.conf
jurij@paddy:~$ sudo apt-get --purge remove munin-common munin-doc munin-node 
munin-plugins-core munin-plugins-extra
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdate-manip-perl libio-multiplex-perl libipc-shareable-perl 
liblog-dispatch-perl liblog-log4perl-perl libnet-cidr-perl libnet-server-perl 
libnet-snmp-perl rrdtool
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  munin* munin-common* munin-doc* munin-node* munin-plugins-core* 
munin-plugins-extra*
0 upgraded, 0 newly installed, 6 to remove and 117 not upgraded.
After this operation, 2,891 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 237933 files and directories currently installed.)
Removing munin ...
Purging configuration files for munin ...
The generated web site or accumulated data won't be removed.
dpkg: warning: while removing munin, directory '/var/cache/munin/www' not empty 
so not removed
dpkg: warning: while removing munin, directory '/var/lib/munin' not empty so 
not removed
dpkg: warning: while removing munin, directory '/etc/munin/munin-conf.d' not 
empty so not removed
Removing munin-plugins-extra ...
Removing munin-node ...
[ ok ] Stopping Munin-Node: done.
Purging configuration files for munin-node ...
Removing munin-plugins-core ...
dpkg: warning: while removing munin-plugins-core, directory 
'/etc/munin/plugins' not empty so not removed
Removing munin-common ...
Removing munin-doc ...
Processing triggers for man-db ...
jurij@paddy:~$ sudo /etc/init.d/apache2 restart
apache2: Syntax error on line 265 of /etc/apache2/apache2.conf: Could not open 
configuration file /etc/apache2/conf.d/munin: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
 failed!
jurij@paddy:~$ ls -al /etc/apache2/conf.d/munin 
lrwxrwxrwx 1 root root 23 May 19 10:29 /etc/apache2/conf.d/munin - 
../../munin/apache.conf
jurij@paddy:~$ 

Best regards,
-- 
Jurij Smakov   ju...@wooyd.org
Key: http://www.wooyd.org/pgpkey/  KeyID: C99E03CC


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org