Locking Errors

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

Locking Errors

list@airstreamcomm.net
We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this:

Error: Broken file /mail/user/Maildir/dovecot-uidlist line 891: Invalid data:
Error: Timeout (180s) while waiting for lock for transaction log file /mail/user/Maildir/dovecot.index.log
Error: /mail/user/Maildir/.Trash/dovecot-uidlist: next_uid was lowered (421 -> 419, hdr=418)
Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
Error: Broken file /mail/user/Maildir/.Trash/dovecot-uidlist line 156: Invalid data:
Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
Error: Index /mail/user/Maildir/dovecot.index: Lost log for seq=2 offset=2392
Error: fcntl(write-lock) locking failed for file /mail/user/Maildir/dovecot.index.log: Stale file handle

We are not sure what might be causing this, can anyone help illuminate what’s going on?
Reply | Threaded
Open this post in threaded view
|

Re: Locking Errors

Bill Shirley
Is everyone's email going to /mail/user/Maildir ?

What's the output of 'dovecot -n' ?

Bill

On 10/12/2017 9:47 AM, List wrote:

> We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this:
>
> Error: Broken file /mail/user/Maildir/dovecot-uidlist line 891: Invalid data:
> Error: Timeout (180s) while waiting for lock for transaction log file /mail/user/Maildir/dovecot.index.log
> Error: /mail/user/Maildir/.Trash/dovecot-uidlist: next_uid was lowered (421 -> 419, hdr=418)
> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
> Error: Broken file /mail/user/Maildir/.Trash/dovecot-uidlist line 156: Invalid data:
> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
> Error: Index /mail/user/Maildir/dovecot.index: Lost log for seq=2 offset=2392
> Error: fcntl(write-lock) locking failed for file /mail/user/Maildir/dovecot.index.log: Stale file handle
>
> We are not sure what might be causing this, can anyone help illuminate what’s going on?
Reply | Threaded
Open this post in threaded view
|

Re: Locking Errors

list@airstreamcomm.net

> On Oct 12, 2017, at 8:56 AM, Bill Shirley <[hidden email]> wrote:
>
> Is everyone's email going to /mail/user/Maildir ?
>
> What's the output of 'dovecot -n' ?
>
> Bill
>
> On 10/12/2017 9:47 AM, List wrote:
>> We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this:
>>
>> Error: Broken file /mail/user/Maildir/dovecot-uidlist line 891: Invalid data:
>> Error: Timeout (180s) while waiting for lock for transaction log file /mail/user/Maildir/dovecot.index.log
>> Error: /mail/user/Maildir/.Trash/dovecot-uidlist: next_uid was lowered (421 -> 419, hdr=418)
>> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
>> Error: Broken file /mail/user/Maildir/.Trash/dovecot-uidlist line 156: Invalid data:
>> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
>> Error: Index /mail/user/Maildir/dovecot.index: Lost log for seq=2 offset=2392
>> Error: fcntl(write-lock) locking failed for file /mail/user/Maildir/dovecot.index.log: Stale file handle
>>
>> We are not sure what might be causing this, can anyone help illuminate what’s going on?
>

Bill, no I just changed the log output to mask the real usernames, these would be different users.  Here is dovecot -n

# 2.2.10: /etc/dovecot/dovecot.conf
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 27: Invalid size: $default_vsz_limit
Reply | Threaded
Open this post in threaded view
|

Re: Locking Errors

Bill Shirley
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 27: Invalid size: $default_vsz_limit

Have you though about fixing the configuration error?

Bill

On 10/12/2017 10:05 AM, List wrote:

>> On Oct 12, 2017, at 8:56 AM, Bill Shirley <[hidden email]> wrote:
>>
>> Is everyone's email going to /mail/user/Maildir ?
>>
>> What's the output of 'dovecot -n' ?
>>
>> Bill
>>
>> On 10/12/2017 9:47 AM, List wrote:
>>> We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this:
>>>
>>> Error: Broken file /mail/user/Maildir/dovecot-uidlist line 891: Invalid data:
>>> Error: Timeout (180s) while waiting for lock for transaction log file /mail/user/Maildir/dovecot.index.log
>>> Error: /mail/user/Maildir/.Trash/dovecot-uidlist: next_uid was lowered (421 -> 419, hdr=418)
>>> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
>>> Error: Broken file /mail/user/Maildir/.Trash/dovecot-uidlist line 156: Invalid data:
>>> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
>>> Error: Index /mail/user/Maildir/dovecot.index: Lost log for seq=2 offset=2392
>>> Error: fcntl(write-lock) locking failed for file /mail/user/Maildir/dovecot.index.log: Stale file handle
>>>
>>> We are not sure what might be causing this, can anyone help illuminate what’s going on?
> Bill, no I just changed the log output to mask the real usernames, these would be different users.  Here is dovecot -n
>
> # 2.2.10: /etc/dovecot/dovecot.conf
> doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 27: Invalid size: $default_vsz_limit
Reply | Threaded
Open this post in threaded view
|

Re: Locking Errors

list@airstreamcomm.net

> On Oct 12, 2017, at 10:43 AM, Bill Shirley <[hidden email]> wrote:
>
> doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 27: Invalid size: $default_vsz_limit
>
> Have you though about fixing the configuration error?
>
> Bill
>
> On 10/12/2017 10:05 AM, List wrote:
>>> On Oct 12, 2017, at 8:56 AM, Bill Shirley <[hidden email]> wrote:
>>>
>>> Is everyone's email going to /mail/user/Maildir ?
>>>
>>> What's the output of 'dovecot -n' ?
>>>
>>> Bill
>>>
>>> On 10/12/2017 9:47 AM, List wrote:
>>>> We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this:
>>>>
>>>> Error: Broken file /mail/user/Maildir/dovecot-uidlist line 891: Invalid data:
>>>> Error: Timeout (180s) while waiting for lock for transaction log file /mail/user/Maildir/dovecot.index.log
>>>> Error: /mail/user/Maildir/.Trash/dovecot-uidlist: next_uid was lowered (421 -> 419, hdr=418)
>>>> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
>>>> Error: Broken file /mail/user/Maildir/.Trash/dovecot-uidlist line 156: Invalid data:
>>>> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
>>>> Error: Index /mail/user/Maildir/dovecot.index: Lost log for seq=2 offset=2392
>>>> Error: fcntl(write-lock) locking failed for file /mail/user/Maildir/dovecot.index.log: Stale file handle
>>>>
>>>> We are not sure what might be causing this, can anyone help illuminate what’s going on?
>> Bill, no I just changed the log output to mask the real usernames, these would be different users.  Here is dovecot -n
>>
>> # 2.2.10: /etc/dovecot/dovecot.conf
>> doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-master.conf line 27: Invalid size: $default_vsz_limit
>

I sent a second message after fixing it with the full config.  Turns out the update from Centos 7.3 to 7.4 has some kind of NFS bug that is causing this issue, not dovecot.
Reply | Threaded
Open this post in threaded view
|

Re: Locking Errors

Aki Tuomi-2
In reply to this post by list@airstreamcomm.net


On 12.10.2017 16:47, List wrote:

> We recently upgraded to version 2.2.10-8 on Centos 7 (from 2.2.10-7) and immediately started experiencing errors in the log file that look like this:
>
> Error: Broken file /mail/user/Maildir/dovecot-uidlist line 891: Invalid data:
> Error: Timeout (180s) while waiting for lock for transaction log file /mail/user/Maildir/dovecot.index.log
> Error: /mail/user/Maildir/.Trash/dovecot-uidlist: next_uid was lowered (421 -> 419, hdr=418)
> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
> Error: Broken file /mail/user/Maildir/.Trash/dovecot-uidlist line 156: Invalid data:
> Error: Corrupted index cache file /mail/user/Maildir/dovecot.index.cache: invalid record size
> Error: Index /mail/user/Maildir/dovecot.index: Lost log for seq=2 offset=2392
> Error: fcntl(write-lock) locking failed for file /mail/user/Maildir/dovecot.index.log: Stale file handle
>
> We are not sure what might be causing this, can anyone help illuminate what’s going on?
Not sure what goes into 2.2.10-8 in Centos 7, but it's quite old
version. But looks like something has trashed indexes and stuff on the
server. Did you happen to have simultaneous access using two dovecot
instances to the mail data?

Aki