Error: Broken file dovecot-uidlist
Hi All,
In mail.log are exists error messages "Error: Broken file /data/mail/vhosts/domain.com/user@domain.com/Maildir/dovecot-uidlist line XX: Invalid data: for some email accounts.
For example, dovecot-uidlist line 21197: Invalid data:
When I open line 21197 in editor: # vim +21197 dovecot-uidlist 1750207 :1676454069.M698819P4439.mail-b,S=963716,W=976359
and then check this file size # ls -l /data/mail/vhosts/domain.com/user@domain.com/Maildir/cur/1676454069.M698819P4439.mail-b,S=963716,W=976359:2,S -rw------- 1 vmail vmail 963716 Feb 15 10:41
I see that size is the same: 963176 bytes. So what exactly mentioned in error message "dovecot-uidlist line 21197: Invalid data:"?
-- Best wishes Sohin Vyacheslav
On 15/02/2023 13:32 EET Sohin Vyacheslav slawa@vivaldi.net wrote:
Hi All,
In mail.log are exists error messages "Error: Broken file /data/mail/vhosts/domain.com/user@domain.com/Maildir/dovecot-uidlist line XX: Invalid data: for some email accounts.
For example, dovecot-uidlist line 21197: Invalid data:
When I open line 21197 in editor: # vim +21197 dovecot-uidlist 1750207 :1676454069.M698819P4439.mail-b,S=963716,W=976359
and then check this file size # ls -l /data/mail/vhosts/domain.com/user@domain.com/Maildir/cur/1676454069.M698819P4439.mail-b,S=963716,W=976359:2,S -rw------- 1 vmail vmail 963716 Feb 15 10:41
I see that size is the same: 963176 bytes. So what exactly mentioned in error message "dovecot-uidlist line 21197: Invalid data:"?
-- Best wishes Sohin Vyacheslav
Every time that happens I've seen it's been zerofilled (due to NFS), and not yet filled with actual data. Size might be right, but it just contains NULs.
Aki
15.02.2023 13:42, Aki Tuomi пишет:
Every time that happens I've seen it's been zerofilled (due to NFS), and not yet filled with actual data. Size might be right, but it just contains NULs.
Thank you, Aki for clarifying! you mean lines like this:
ICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
?
-- Best wishes Sohin Vyacheslav
On 15/02/2023 13:58 EET Sohin Vyacheslav slawa@vivaldi.net wrote:
15.02.2023 13:42, Aki Tuomi пишет:
Every time that happens I've seen it's been zerofilled (due to NFS), and not yet filled with actual data. Size might be right, but it just contains NULs.
Thank you, Aki for clarifying! you mean lines like this:
ICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
?
-- Best wishes Sohin Vyacheslav
Possibly. That's base64 for repeated 0x20.
Aki
Hi Can you send me info about mounted options (fstab) and what is your kernel and nfs version in client and your storage
W dniu 15.02.2023 o 12:32, Sohin Vyacheslav pisze:
Hi All,
In mail.log are exists error messages "Error: Broken file /data/mail/vhosts/domain.com/user@domain.com/Maildir/dovecot-uidlist line XX: Invalid data: for some email accounts.
For example, dovecot-uidlist line 21197: Invalid data:
When I open line 21197 in editor: # vim +21197 dovecot-uidlist 1750207 :1676454069.M698819P4439.mail-b,S=963716,W=976359
and then check this file size # ls -l /data/mail/vhosts/domain.com/user@domain.com/Maildir/cur/1676454069.M698819P4439.mail-b,S=963716,W=976359:2,S -rw------- 1 vmail vmail 963716 Feb 15 10:41
I see that size is the same: 963176 bytes. So what exactly mentioned in error message "dovecot-uidlist line 21197: Invalid data:"?
15.02.2023 16:58, Maciej Milaszewski пишет:
Can you send me info about mounted options (fstab) and what is your kernel and nfs version in client and your storage
Hi Maciej,
Client=> fstab: IP-address:/data /data nfs auto,nofail,noatime,intr,tcp,nordirplus,actimeo=1800 0 0
# uname -r 4.15.0-204-generic
nfs-common-1:1.3.4-2.1ubuntu5.5
currently mounted as NFSv4.2 # mount | grep nfs IP-address-2:/data on /data type nfs4 (rw,noatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,acregmin=1800,acregmax=1800,acdirmin=1800,acdirmax=1800,hard,nordirplus,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=IP-address-1,local_lock=none,addr=IP-address-2)
NFS storage =>
# uname -r 4.15.0-158-generic
nfs-common-1:1.3.4-2.1ubuntu5.5 nfs-kernel-server-1:1.3.4-2.1ubuntu5.5
-- Best wishes Sohin Vyacheslav
Hi I had the same problem
fstab: Ip:/vmail /vmail nfs rw,sec=sys,noexec,noatime,tcp,soft,rsize=32768,wsize=32768,intr,nordirplus,nfsvers=3,actimeo=120
/vmail on /vmail type nfs (rw,noexec,noatime,vers=3,rsize=65536,wsize=65536,namlen=255,acregmin=120,acregmax=120,acdirmin=120,acdirmax=120,hard,nocto,nordirplus,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=xxx.xxx.xxx.xxx,mountvers=3,mountport=635,mountproto=tcp,local_lock=none,addr=xxx.xxx.xxx.xxx)
In debian9 and debian10 an ubuntu... And I solve workaraund downgrade a kernel for all node to ... 3.x in any 4.x and 5.x I get broken file
Linux dovecot16 Debian 3.x.68-2 (kernel-care) I use netup - I don't administer it and I don't have access and only downgrade kernel solve problem
W dniu 15.02.2023 o 18:17, Sohin Vyacheslav pisze:
15.02.2023 16:58, Maciej Milaszewski пишет:
Can you send me info about mounted options (fstab) and what is your kernel and nfs version in client and your storage
Hi Maciej,
Client=> fstab: IP-address:/data /data nfs auto,nofail,noatime,intr,tcp,nordirplus,actimeo=1800 0 0
# uname -r 4.15.0-204-generic
nfs-common-1:1.3.4-2.1ubuntu5.5
currently mounted as NFSv4.2 # mount | grep nfs IP-address-2:/data on /data type nfs4 (rw,noatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,acregmin=1800,acregmax=1800,acdirmin=1800,acdirmax=1800,hard,nordirplus,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=IP-address-1,local_lock=none,addr=IP-address-2)
NFS storage =>
# uname -r 4.15.0-158-generic
nfs-common-1:1.3.4-2.1ubuntu5.5 nfs-kernel-server-1:1.3.4-2.1ubuntu5.5
participants (3)
-
Aki Tuomi
-
Maciej Milaszewski
-
Sohin Vyacheslav