unable to lock for exclusive access: Resource temporarily unavailable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

unable to lock for exclusive access: Resource temporarily unavailable

Frank Bonnet
Hello

I'm facing a boring problem for few accounts ( less than 10 over 2000 )
on my freebsd 9.0 mailhub , see below the error message I get in maillog


Nov 27 17:59:45 mail postfix/local[11988]: 3Y9n2B5TH9zYmgf:
to=<[hidden email]>, orig_to=<[hidden email]>, relay=local, delay=10175,
delays=10156/0.02/0/19, dsn=4.2.0, status=deferred (cannot update
mailbox /var/mail/xxxx for user xxxx. unable to lock for exclusive
access: Resource temporarily unavailable)


the partition is 50% full,
access rights to /var/mail seems OK

drwxrwsrwt  3 root  mail  97280 Nov 27 18:38 mail


Any info welcome

thank you
Reply | Threaded
Open this post in threaded view
|

Re: unable to lock for exclusive access: Resource temporarily unavailable

Brian Evans - Postfix List
On 11/27/2012 12:40 PM, Frank Bonnet wrote:

> Hello
>
> I'm facing a boring problem for few accounts ( less than 10 over 2000 )
> on my freebsd 9.0 mailhub , see below the error message I get in maillog
>
>
> Nov 27 17:59:45 mail postfix/local[11988]: 3Y9n2B5TH9zYmgf:
> to=<[hidden email]>, orig_to=<[hidden email]>, relay=local, delay=10175,
> delays=10156/0.02/0/19, dsn=4.2.0, status=deferred (cannot update
> mailbox /var/mail/xxxx for user xxxx. unable to lock for exclusive
> access: Resource temporarily unavailable)
>

It means that mbox is locked by another process such as a client.
The message is deferred ("status=deferred") and will try again later.
This is one of the shortfalls of mbox format.

Brian
Reply | Threaded
Open this post in threaded view
|

Re: unable to lock for exclusive access: Resource temporarily unavailable

Stan Hoeppner
On 11/27/2012 11:47 AM, Brian Evans - Postfix List wrote:

> On 11/27/2012 12:40 PM, Frank Bonnet wrote:
>> Hello
>>
>> I'm facing a boring problem for few accounts ( less than 10 over 2000 )
>> on my freebsd 9.0 mailhub , see below the error message I get in maillog
>>
>>
>> Nov 27 17:59:45 mail postfix/local[11988]: 3Y9n2B5TH9zYmgf:
>> to=<[hidden email]>, orig_to=<[hidden email]>, relay=local, delay=10175,
>> delays=10156/0.02/0/19, dsn=4.2.0, status=deferred (cannot update
>> mailbox /var/mail/xxxx for user xxxx. unable to lock for exclusive
>> access: Resource temporarily unavailable)
>>
>
> It means that mbox is locked by another process such as a client.
> The message is deferred ("status=deferred") and will try again later.
> This is one of the shortfalls of mbox format.

This is exactly what it appears to be, mbox locking problem.  However
Frank says this host is a mailhub, which typically means no local
delivery, but delivery to a downstream mailbox server(s).

Frank, why are you delivering mail to a local mailbox on a "mailhub"?

If this isn't a "mailhub", but a mailbox server, switch to maildir to
avoid locking problems.  Or, you could hack it up and only use maildir
for these problem accounts, requires virtual mailboxes, etc.

--
Stan