Paul Neuwirth via Postfix-users:
> On Fri, 28 Mar 2025 12:41:45 -0400 (EDT)
> Wietse Venema via Postfix-users <[email protected]> wrote:
>
> > Paul Neuwirth via Postfix-users:
> > > Hello group,
> > >
> > > Since a few days I have massive problems with lockfiles blocking the
> > > mailboxes (type storage, /var/mail/user).
> > > don't know if it's the right list. may more concern dovecot.
> > >
> > > postqueue is full of
> > > 944C223FC2 17905 Fri Mar 28 06:02:01 XXX
> > > (cannot update mailbox /var/mail/pane for user XXX. unable to create
> > > lock file /var/mail/XXX.lock: File exists) XXX
> >
> > That looks like a Postfix error message (*).
> >
> > Are you using Postfix to deliver mail, and Dovecot to read mail?
> >
> > Wietse
> >
> > (*) The function dot_lockfile() produces the text "unable to create
> > lock file /var/mail/XXX.lock: File exists)", and the function
> > deliver_mailbox_file() prepends the text "cannot update mailbox
> > /var/mail/XXX for user XXX."
> > _______________________________________________
>
> yes, that's right
>
> from /var/log/mail on last restart:
> 2025-03-29T06:24:41.124754+01:00 XXX dovecot: master: Error:
> fstat(/var/lib/dovecot/instances.lock) failed: No such file or directory
> 2025-03-29T06:24:41.125299+01:00 XXX dovecot: master: Error:
> file_dotlock_open(/var/lib/dovecot/instances) failed: No such file or
> directory
>
> files do exists, I even made folder and files world-readable to check,
> they are owned by root:root
>
> # ls -la /var/lib/dovecot/
> total 20
> drwxr-xr-x 2 root root 100 Mar 29 06:24 .
> drwxr-xr-x 151 root root 4096 Mar 28 21:16 ..
> -rw------- 1 root root 0 Feb 14 2010 auth-success
> -rw-r--r-- 1 root root 62 Apr 16 2020 instances
> -rw-r--r-- 1 root root 0 Mar 29 06:24 instances.lock
> -rw-r--r-- 1 root root 211 Jan 22 2017 mounts
> -rw-r--r-- 1 root root 230 Jan 22 2017 ssl-parameters.dat
Are they looking at the *same* /var/lib/dovecot/instances.lock
file? If one process is chrooted or containerized, "the same"
pathname will resolve to different tsrgets.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]