Re: Dovecot 2.3.0, Panic: file mailbox-attribute.c: line 362 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL)

2018-02-05 Thread Marco Giunta

Hi,

If I downgrade to Dovecot 2.2.33.2, there are no problems to sync users 
with ACL


Thanks,
  Marco

On 2018-02-02 14:39, Marco Giunta wrote:

Hi at all,
I have a RHEL7 server with Dovecot 2.3.0 (new installation). I've a 
problem when trying to dsync from a Dovecot 2.2.24 server.


If I try to sync any user with a folder with ACL, dsycn crash with panic:

Source server:

dsync-local(USERNAME): Debug: sieve: file storage: sync: Synchronization 
active
dovecot: dsync-local(USERNAME): Debug: acl vfile: reading file 
/var/spool/mail/U/USERNAME/dovecot-acl
dsync-local(USERNAME): Error: read(DEST_SERVER.example.com) failed: EOF 
(last sent=mail_change (EOL), last recv=mailbox)


Destination server:

Feb  2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Panic: file 
mailbox-attribute.c: line 362 (mailbox_attribute_get_stream): assertion 
failed: (value_r->value != NULL || value_r->value_stream != NULL)
Feb  2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Error: Raw 
backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xc8cc4) [0x7fa861bc0cc4] 
-> /usr/lib64/dovecot/libdovecot.so.0(+0xc8d7e) [0x7fa861bc0d7e] -> 
/usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fa861b34190] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(+0x55cbc) [0x7fa861ec1cbc] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](dsync_mailbox_import_attribute+0x4d) [0x55b9d4ce215d] 
-> dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](dsync_brain_sync_mails+0x2ef) [0x55b9d4cddbdf] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](dsync_brain_run+0x2b0) [0x55b9d4cd93e0] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x43a10) [0x55b9d4cd9a10] -> dovecot/doveadm-server 
[10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x5837f) [0x55b9d4cee37f] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) 
[0x7fa861bd82b5] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) 
[0x7fa861bd9b5f] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x52) 
[0x7fa861bd83b2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7fa861bd85d8] -> dovecot/doveadm-server [10.0.11.137 USERNAME INBOX 
send:mail_requests recv:attributes](+0x28369) [0x55b9d4cbe369] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x29c07) [0x55b9d4cbfc07] -> dovecot/doveadm-server 
[10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x3f969) [0x55b9d4cd5969] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) 
[0x7fa861bd82b5] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) 
[0x7fa861bd9b5f] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x52) 
[0x7fa861bd83b2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7fa861bd85d8] -> 
/usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7fa861b56b23] -> dovecot/doveadm-server [10.0.11.137 USERNAME INBOX 
send:mail_requests recv:attributes](main+0x1b6) [0x55b9d4cb0536] -> 
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa861756c05] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x1a5f5) [0x55b9d4cb05f5]
Feb  2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Fatal: 
master: service(doveadm): child 2149 killed with signal 6 (core dumped)



Coredump and configuration attached.


On source server I run this command:

# doveadm -D backup -f -u USERNAME -x 'Archives*' 
tcp:DEST_SERVER.example.com


but same panic if try to sync from destination server:

# doveadm -D backup -fR -u USERNAME -x 'Archives*' 
tcp:SOURCE_SERVER.example.com



Same panic also syncing any user with acl and using different 
acl_shared_dict (file or fs:posix) in dovecot configuration.


Thanks,
   Marco




--
Marco Giunta - ITCS SysAdmin
Via Bonomea, 265
34136 - Trieste, Italy
Tel: +39-040-3787-503
Fax: +39-040-3787-244


Dovecot 2.3.0, Panic: file mailbox-attribute.c: line 362 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL)

2018-02-02 Thread Marco Giunta

Hi at all,
I have a RHEL7 server with Dovecot 2.3.0 (new installation). I've a 
problem when trying to dsync from a Dovecot 2.2.24 server.


If I try to sync any user with a folder with ACL, dsycn crash with panic:

Source server:

dsync-local(USERNAME): Debug: sieve: file storage: sync: Synchronization 
active
dovecot: dsync-local(USERNAME): Debug: acl vfile: reading file 
/var/spool/mail/U/USERNAME/dovecot-acl
dsync-local(USERNAME): Error: read(DEST_SERVER.example.com) failed: EOF 
(last sent=mail_change (EOL), last recv=mailbox)


Destination server:

Feb  2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Panic: file 
mailbox-attribute.c: line 362 (mailbox_attribute_get_stream): assertion 
failed: (value_r->value != NULL || value_r->value_stream != NULL)
Feb  2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Error: Raw 
backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xc8cc4) [0x7fa861bc0cc4] 
-> /usr/lib64/dovecot/libdovecot.so.0(+0xc8d7e) [0x7fa861bc0d7e] -> 
/usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fa861b34190] -> 
/usr/lib64/dovecot/libdovecot-storage.so.0(+0x55cbc) [0x7fa861ec1cbc] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](dsync_mailbox_import_attribute+0x4d) [0x55b9d4ce215d] 
-> dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](dsync_brain_sync_mails+0x2ef) [0x55b9d4cddbdf] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](dsync_brain_run+0x2b0) [0x55b9d4cd93e0] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x43a10) [0x55b9d4cd9a10] -> dovecot/doveadm-server 
[10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x5837f) [0x55b9d4cee37f] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) 
[0x7fa861bd82b5] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) 
[0x7fa861bd9b5f] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x52) 
[0x7fa861bd83b2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7fa861bd85d8] -> dovecot/doveadm-server [10.0.11.137 USERNAME INBOX 
send:mail_requests recv:attributes](+0x28369) [0x55b9d4cbe369] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x29c07) [0x55b9d4cbfc07] -> dovecot/doveadm-server 
[10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x3f969) [0x55b9d4cd5969] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) 
[0x7fa861bd82b5] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) 
[0x7fa861bd9b5f] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x52) 
[0x7fa861bd83b2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) 
[0x7fa861bd85d8] -> 
/usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7fa861b56b23] -> dovecot/doveadm-server [10.0.11.137 USERNAME INBOX 
send:mail_requests recv:attributes](main+0x1b6) [0x55b9d4cb0536] -> 
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa861756c05] -> 
dovecot/doveadm-server [10.0.11.137 USERNAME INBOX send:mail_requests 
recv:attributes](+0x1a5f5) [0x55b9d4cb05f5]
Feb  2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Fatal: 
master: service(doveadm): child 2149 killed with signal 6 (core dumped)



Coredump and configuration attached.


On source server I run this command:

# doveadm -D backup -f -u USERNAME -x 'Archives*' 
tcp:DEST_SERVER.example.com


but same panic if try to sync from destination server:

# doveadm -D backup -fR -u USERNAME -x 'Archives*' 
tcp:SOURCE_SERVER.example.com



Same panic also syncing any user with acl and using different 
acl_shared_dict (file or fs:posix) in dovecot configuration.


Thanks,
  Marco


--
Marco Giunta - ITCS SysAdmin
Via Bonomea, 265
34136 - Trieste, Italy
Tel: +39-040-3787-503
Fax: +39-040-3787-244
# 2.3.0 (c8b89eb): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.0.1 (d33dca2)
# OS: Linux 3.10.0-693.17.1.el7.x86_64 x86_64 CentOS Linux release 7.4.1708 
(Core)  
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_format = %Ln
auth_verbose = yes
auth_verbose_passwords = sha1:6
doveadm_password =  # hidden, use -P to show it
doveadm_port = 26001
first_valid_uid = 200
hostname = server-02.example.com
imap_client_workarounds = delay-newmail
imapc_features = rfc822.size fetch-headers
imapc_host = posta-01.example.com
imapc_master_user = dovesuper
imapc_password =  # hidden, use -P to show it
imapc_user = %u
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lda_original_recipient_header = Delivered-To
listen = *
lmtp_hdr_delivery_address = original
lmtp_lhlo_dsn = yes
lmtp_rcpt_check_quota = yes
login_trusted_networks = 10.0.0.172/30 10.0.0.212/30 10.0.0.0/23
mail_fsync = always
mail_gid = vmail
mail_home = /srv/mail/%1n/%n
mail_location = 
mdbox:~/dbox:ALT=/srv/archives/%1n/%n/dbox:INDEX=/srv/indexes/%1n/%n:VOLATILEDIR=/var/tmp/dovecot-volatile/%1n/%n
mail_plugi