[OP-107] Purge does not work correctly Created: 09/Oct/14  Updated: 19/May/15  Resolved: 18/May/15

Status: Closed
Project: Opush
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1.0

Type: Bug Priority: Normal
Reporter: Emmanuel Surleau Assignee: Antoine DUPRAT
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rank: 6484

 Description   

Reproduction steps

  • apt-get install opush
  • apt-get purge opush

Current behaviour

  • The configuration, the logs and the pid files are not removed:
    dpkg: warning: while removing opush, directory '/var/run/opush' not empty so not removed
    dpkg: warning: while removing opush, directory '/var/log/opush' not empty so not removed
    dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed
    dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed
    

    NOK

Expected behaviour

The configuration, pid files and logs are removed as expected OK



 Comments   
Comment by Antoine DUPRAT [ 03/Mar/15 ]

QA: as describe in the ticket, no warning should be returned when purging the packages on Debian.

IMPACTS: only opush & opush-conf packaging.

Comment by Jenkins Continuous Integration Server [ 04/Mar/15 ]

SUCCESS: Integrated in opush-master #197
OP-107 Remove Opush related folders when purging opush & opush-conf packages (thilaire: 3d830d65f825b3157b13e50ee6e4008fceee320c)

  • push-server/src/deb/control/postrm
  • opush-conf/src/deb/control/postrm
Comment by Thomas HILAIRE [ 30/Mar/15 ]

NOK, I cannot reinstall opush after purged it

Not replacing deleted config file /etc/opush/sync_perms.ini
Not replacing deleted config file /etc/opush/ldap_conf.ini
Not replacing deleted config file /etc/opush/mail_conf.ini
Not replacing deleted config file /etc/opush/remote_console.ini
Not replacing deleted config file /etc/opush/policy.ini
Not replacing deleted config file /etc/opush/cassandra.ini
Not replacing deleted config file /etc/opush/logback.xml
Comment by Jenkins Continuous Integration Server [ 07/Apr/15 ]

SUCCESS: Integrated in opush-master #227
OP-107 Remove ucf/ucfr & debconf entries when purging opush & opush-conf packages (thilaire: 86b14e9fcbcb5e1263547f8729ab46bbf8b21e7b)

  • opush-conf/src/deb/control/postrm
  • push-server/src/deb/control/postrm
Comment by Thomas HILAIRE [ 06/May/15 ]

QA:
OK now I can reinstall it successfully
KO, sorry but I still get this message "dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed"

root@d:~# dpkg -i /root/opush_3.1.0~alpha0~git20150506.162751.35beed0.deb
Selecting previously unselected package opush.
(Reading database ... 59992 files and directories currently installed.)
Unpacking opush (from .../opush_3.1.0~alpha0~git20150506.162751.35beed0.deb) ...
Setting up opush (3.1.0~alpha0~git20150506.162751.35beed0-1) ...
Creating config file /etc/opush/sync_perms.ini with new version
Creating config file /etc/opush/ldap_conf.ini with new version
Creating config file /etc/opush/mail_conf.ini with new version
Creating config file /etc/opush/remote_console.ini with new version
Creating config file /etc/opush/policy.ini with new version
Creating config file /etc/opush/cassandra.ini with new version
Creating config file /etc/opush/logback.xml with new version
[ ok ] Starting opush:[....] opush started, reachable on http://d.lyon.lan:8082/.: opush.


root@d:~# apt-get purge opush
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  opush*
0 upgraded, 0 newly installed, 1 to remove and 77 not upgraded.
After this operation, 39.9 MB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 60147 files and directories currently installed.)
Removing opush ...
[ ok ] Stopping opush (was reachable on http://d.lyon.lan:8082/).: opush . .[....] opush stopped.:.
Purging configuration files for opush ...
0
dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed
dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed
Comment by Thomas HILAIRE [ 18/May/15 ]

QA&Impacts: unchanged

Comment by Jenkins Continuous Integration Server [ 18/May/15 ]

FAILURE: Integrated in opush-master #229
OP-107 Remove conf files to allow /etc/opush removal (thilaire: 11baa1a45a890fa487afe1af9ad64de9ffa793bd)

  • push-server/src/deb/control/postrm
Comment by Stephane COLSON [ 19/May/15 ]

OK with Opush 3.1.0~rc1-1 tested on a Debian Wheezy upgraded from 3.0.6
I have to manually delete some cassandra and ehcache files to not have the warning

dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed
dpkg: warning: while removing opush, directory '/etc/opush' not empty so not removed
Generated at Tue Oct 15 10:52:49 CEST 2019 using JIRA 6.1.1#6155-sha1:7188aeec9a6b57d61ea04c52f235f15f55c105e2.