Bug#766403: cyrus-common: Restarting Cyrus IMAPd: cyrmasterfind: `/run/cyrus/lock': No such file or directory

Boylan, Ross Ross.Boylan at ucsf.edu
Wed Nov 5 05:24:16 UTC 2014


Yes, a symlink
root at wheezy4:/# ls -ls /var/run
0 lrwxrwxrwx 1 root root 4 Oct  4 16:30 /var/run -> /run
root at wheezy4:/# ls -ld /run
drwxr-xr-x 25 root root 780 Nov  4 18:59 /run

After shutting down  cyrus I got (newish symptom)
root at wheezy4:/# /etc/init.d/cyrus-imapd start
find: `/run/cyrus/proc': No such file or directory
root at wheezy4:/# ls -l /run/cyrus
total 0
drwx------ 3 cyrus mail 60 Nov  4 18:39 lock
drwxr-x--- 2 cyrus mail 80 Nov  4 18:59 socket

Ross
________________________________________
From: Ondřej Surý [ondrej at sury.org]
Sent: Thursday, October 23, 2014 2:56 AM
To: Boylan, Ross; 766403 at bugs.debian.org; Ross Boylan
Subject: Re: Bug#766403: cyrus-common: Restarting Cyrus IMAPd: cyrmasterfind: `/run/cyrus/lock': No such file or directory

Is your /var/run symlink to /run?

ondrej at lettie:~/Projects/pkg-cyrus-imapd/cyrus-imapd-2.4 (master)$ ls
-ld /run/
drwxr-xr-x 25 root root 960 Oct 22 04:11 /run/
ondrej at lettie:~/Projects/pkg-cyrus-imapd/cyrus-imapd-2.4 (master)$ ls
-ld /var/run
lrwxrwxrwx 1 root root 4 Apr 19  2013 /var/run -> /run

If not, your system is broken.

Cheers,
Ondrej

On Wed, Oct 22, 2014, at 23:41, Boylan, Ross wrote:
> 1) The directories /var/run/cyrus and /var/run/cyrus/socket were both
> present, owner cyrus, group mail.
>
> 2) I did dpkg-reconfigure to allow package removal to take out the
> directories, and then purged the packages.  This led to a complaint
> "can't remove /var/run/cyrus, directory in use" (roughly).  I dismounted
> the directory and then removed it via rmdir.  Then reinstalled the
> packages.  Still got the complaint; is it normal?
> ---------------------------------------
> Setting up cyrus-common (2.4.16-4+deb7u2) ...
> Creating/updating cyrus user account...
> dpkg-statoverride: warning: --update given but /var/run/cyrus does not
> exist
> dpkg-statoverride: warning: --update given but /var/run/cyrus/socket does
> not exist
> The user `cyrus' is already a member of `sasl'.
> cyrus-common: Creating cyrus-imapd directories...Creating/updating cyrus
> control directories in /var/lib/cyrus...
> Creating/updating partition spool /var/spool/cyrus/mail...
> Creating/updating partition spool /var/spool/cyrus/news...
> Trying to optimize Cyrus partitions, edit /etc/default/cyrus-imapd to
> disable...
> done.
> cyrus-common: Creating empty user_deny database...done.
> Setting up cyrus-common-2.4 (2.4.16-4+deb7u2) ...
> find: `/run/cyrus/lock': No such file or directory
> find: `/run/cyrus/proc': No such file or directory
> Setting up cyrus-imapd-2.4 (2.4.16-4+deb7u2) ...
> Setting up cyrus-imapd (2.4.16-4+deb7u2) ...
> ----------------------------------------------------------
>
> Results:
> root at wheezy4:/etc# umount /var/spool/cyrus/
> root at wheezy4:/etc# rmdir !$
> rmdir /var/spool/cyrus/
> root at wheezy4:/etc# # that was after purging cyrus
> root at wheezy4:/etc# /etc/init.d/cyrus-imapd restart # after reinstall
> Restarting Cyrus IMAPd: cyrmasterfind: `/run/cyrus/lock': No such file or
> directory
> find: `/run/cyrus/proc': No such file or directory
>
> But maybe that's just noise, and things are OK?
> root at wheezy4:/etc# /etc/init.d/cyrus-imapd status
> cyrmaster is running.
>
> And why is it looking in /run instead of /var/run (although my system
> seems to have both)?
> .
>
> _______________________________________________
> Pkg-Cyrus-imapd-Debian-devel mailing list
> Pkg-Cyrus-imapd-Debian-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-cyrus-imapd-debian-devel


--
Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server


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