Bug#393596: (cyrus-common-2.2: Parts of old installation still active) WARNING

Ross Boylan ross at biostat.ucsf.edu
Tue Oct 17 00:53:25 UTC 2006


> WORK-AROUND
> dpkg --purge cyrus21-common
> seems to have worked for me. 

NO--DON'T LISTEN TO THAT!  It rendered cyrus inoperable.
/var/run/cyrus and /var/run/cyrus/socket got zapped, although the former
remained in the dpkg-statoverride database.

I seem to have recovered by doing (some false steps removed)
-----------------------------------
iron:~# ls -l /var/run/cyrus
ls: /var/run/cyrus: No such file or directory
iron:~# dpkg-statoverride --list /var/run/cyrus
cyrus mail 755 /var/run/cyrus
iron:~# mkdir /var/run/cyrus
iron:~# date; dpkg-statoverride --add cyrus mail 755 /var/run/cyrus
Mon Oct 16 16:52:11 PDT 2006
An override for "/var/run/cyrus" already exists, aborting
iron:~# chown cyrus:mail !$
chown cyrus:mail /var/run/cyrus
iron:~# chmod 755 !$
chmod 755 /var/run/cyrus
iron:~# dpkg-statoverride --list /var/run/cyrus/socket
iron:~# dpkg-statoverride --update --add cyrus mail 750 !$
dpkg-statoverride --update --add cyrus mail 750 /var/run/cyrus/socket
warning: --update given but /var/run/cyrus/socket does not exist
iron:~# dpkg-statoverride --list /var/run/cyrus/socket
cyrus mail 750 /var/run/cyrus/socket
iron:~# install -o cyrus -g mail -m 750 -d /var/run/cyrus/socket
iron:~# ls -ld !$
ls -ld /var/run/cyrus/socket
drwxr-x--- 2 cyrus mail 48 Oct 16 17:36 /var/run/cyrus/socket
------------------------------------------------------

Before these fixes, this is what I got:
# invoke-rc.d cyrus2.2 restart
Stopping Cyrus IMAPd: cyrmaster.
Waiting for complete shutdown....
Starting Cyrus IMAPd: /etc/init.d/cyrus2.2: You are missing a
dpkg-statoverride on /var/run/cyrus.  Add it.
invoke-rc.d: initscript cyrus2.2, action "restart" failed.

If anyone can confirm or deny the adequacy of this patch up, or suggest
better ways to recover from such situations (for the next time I get in
them...), I'm all ears.

Possibly this behavior on purge is something that needs cleaning up too.
Possibly purging in this situation should be regarded as pilot error :)





More information about the Pkg-Cyrus-imapd-Debian-devel mailing list