1

Topic: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Freebsd 10.3-RELEASE-p4 amd64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): APACHE
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====


Hi.

When i tryed to update quota for all users i received this error:

[root@mail ~]# doveadm quota recalc -A
doveadm(postmaster@imagik.com.br): Error: dict-client: Commit failed: Deinit

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

*) Does restarting Dovecot service fix this issue?
*) Show us the debug log with '-D' flag:

doveadm -D quota recalc -A

3

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

Hi Zhang.

Follows the command and logs:

[root@mail ~]# doveadm -D quota recalc -A
Debug: Loading modules from directory: /usr/local/lib/dovecot
Debug: Module loaded: /usr/local/lib/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib20_mailbox_alias_plugin.so
Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm
Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: Undefined symbol "expire_set_lookup" (this is usually intentional, so just ignore this message)
Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so: Undefined symbol "fts_filter_filter" (this is usually intentional, so just ignore this message)
doveadm(postmaster@imagik.com.br): Debug: Added userdb setting: mail=maildir:~/Maildir/
doveadm(postmaster@imagik.com.br): Debug: Added userdb setting: plugin/master_user=postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Added userdb setting: plugin/quota_rule=*:bytes=524288000
doveadm(postmaster@imagik.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53/
doveadm(postmaster@imagik.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
doveadm(postmaster@imagik.com.br): Debug: Quota rule: root=user mailbox=* bytes=524288000 messages=0
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=524288000 (100%) messages=0 reverse=no command=quota-warning 100 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=498073600 (95%) messages=0 reverse=no command=quota-warning 95 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=471859200 (90%) messages=0 reverse=no command=quota-warning 90 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=445644800 (85%) messages=0 reverse=no command=quota-warning 85 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota grace: root=user bytes=52428800 (10%)
doveadm(postmaster@imagik.com.br): Debug: dict quota: user=postmaster@imagik.com.br, uri=proxy::quotadict, noenforcing=0
doveadm(postmaster@imagik.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir/
doveadm(postmaster@imagik.com.br): Debug: maildir++: root=/var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir, alt=
doveadm(postmaster@imagik.com.br): Debug: acl: initializing backend with data: vfile
doveadm(postmaster@imagik.com.br): Debug: acl: acl username = postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: acl: owner = 1
doveadm(postmaster@imagik.com.br): Debug: acl vfile: Global ACLs disabled
doveadm(postmaster@imagik.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/Shared/%u
doveadm(postmaster@imagik.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
doveadm(postmaster@imagik.com.br): Debug: acl: initializing backend with data: vfile
doveadm(postmaster@imagik.com.br): Debug: acl: acl username = postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: acl: owner = 0
doveadm(postmaster@imagik.com.br): Debug: acl vfile: Global ACLs disabled
doveadm(postmaster@imagik.com.br): Debug: quota: quota_over_flag check: STORAGE ret=1 value=2152 limit=512000
doveadm(postmaster@imagik.com.br): Debug: quota: quota_over_flag check: MESSAGE ret=0 value=1296 limit=0
doveadm(postmaster@imagik.com.br): Debug: quota: quota_over_flag=0((null)) vs currently overquota=0
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Drafts/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Junk/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Sent/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Trash/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Error: dict-client: Commit failed: Deinit
Segmentation fault

4

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

jorge wrote:

doveadm(postmaster@imagik.com.br): Error: dict-client: Commit failed: Deinit
Segmentation fault

Does it work if you try commands below first?

chown -R vmail:vmail /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53/
chmod -R 0700 /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53/

Also, another way to recalculate quota is: Delete record in SQL table "iredadmin.used_quota" (for SQL backends, it's "vmail.used_quota"). Dovecot will calculate the quota automatically.

5

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

I try chmod and chown but permissions was ok.

ZhangHuangbin wrote:
jorge wrote:

doveadm(postmaster@imagik.com.br): Error: dict-client: Commit failed: Deinit
Segmentation fault

Does it work if you try commands below first?

chown -R vmail:vmail /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53/
chmod -R 0700 /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53/


I use ldap backend and i removed IREDADMIN\used_quota.

Also, another way to recalculate quota is: Delete record in SQL table "iredadmin.used_quota" (for SQL backends, it's "vmail.used_quota"). Dovecot will calculate the quota automatically.


When i executed the command again i received the same error:


doveadm -D quota recalc -A
Debug: Loading modules from directory: /usr/local/lib/dovecot
Debug: Module loaded: /usr/local/lib/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib20_mailbox_alias_plugin.so
Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm
Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: Undefined symbol "expire_set_lookup" (this is usually intentional, so just ignore this message)
Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so: Undefined symbol "fts_filter_filter" (this is usually intentional, so just ignore this message)
doveadm(postmaster@imagik.com.br): Debug: Added userdb setting: mail=maildir:~/Maildir/
doveadm(postmaster@imagik.com.br): Debug: Added userdb setting: plugin/master_user=postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Added userdb setting: plugin/quota_rule=*:bytes=524288000
doveadm(postmaster@imagik.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53/
doveadm(postmaster@imagik.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
doveadm(postmaster@imagik.com.br): Debug: Quota rule: root=user mailbox=* bytes=524288000 messages=0
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=524288000 (100%) messages=0 reverse=no command=quota-warning 100 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=498073600 (95%) messages=0 reverse=no command=quota-warning 95 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=471859200 (90%) messages=0 reverse=no command=quota-warning 90 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota warning: bytes=445644800 (85%) messages=0 reverse=no command=quota-warning 85 postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: Quota grace: root=user bytes=52428800 (10%)
doveadm(postmaster@imagik.com.br): Debug: dict quota: user=postmaster@imagik.com.br, uri=proxy::quotadict, noenforcing=0
doveadm(postmaster@imagik.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir/
doveadm(postmaster@imagik.com.br): Debug: maildir++: root=/var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir, alt=
doveadm(postmaster@imagik.com.br): Debug: acl: initializing backend with data: vfile
doveadm(postmaster@imagik.com.br): Debug: acl: acl username = postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: acl: owner = 1
doveadm(postmaster@imagik.com.br): Debug: acl vfile: Global ACLs disabled
doveadm(postmaster@imagik.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/Shared/%u
doveadm(postmaster@imagik.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
doveadm(postmaster@imagik.com.br): Debug: acl: initializing backend with data: vfile
doveadm(postmaster@imagik.com.br): Debug: acl: acl username = postmaster@imagik.com.br
doveadm(postmaster@imagik.com.br): Debug: acl: owner = 0
doveadm(postmaster@imagik.com.br): Debug: acl vfile: Global ACLs disabled
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Drafts/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Junk/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Sent/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: acl vfile: file /var/vmail/vmail1/imagik.com.br/p/o/s/postmaster-2014.01.29.18.21.53//Maildir/.Trash/dovecot-acl not found
doveadm(postmaster@imagik.com.br): Debug: quota: quota_over_flag check: STORAGE ret=1 value=2152 limit=512000
Segmentation fault

6

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

OK, try to delete the record of this user in SQL table "iredadmin.used_quota", Dovecot will recalculate it automatically.
It's mentioned here:
http://www.iredmail.org/docs/recalculat … quota.html

7

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

Hello Zang.

It seems that the dovecot of the problem is a bug.
I'll wait for the next version to test.
Thank you.

8

Re: doveadm quota recalc ERROR - Error: dict-client: Commit failed: Deinit

Does deleting the SQL record in "iredadmin.used_quota" work for you?