[Dovecot] quotactl failed with disk quotas and dovecot 2.0
Hi,
I have a machine running dovecot 2.0 rc4 and I can't seem to get the imap_quota plugin working, every time I try to read the quotas, I get the following in my log:
Aug 7 11:58:43 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory Aug 7 11:59:53 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory Aug 7 11:59:54 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory
(Once for each try)
Here is the output of dovecot -n:
# 2.0.rc4: /etc/dovecot/dovecot.conf # OS: Linux 2.6.34-gentoo-r3 i686 Gentoo Base System release 2.0.1 listen = * mail_location = mdbox:~/.mdbox mail_plugins = acl quota zlib trash imap_quota managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest passdb { args = * driver = pam } plugin { quota = fs:User quota:user quota_warning = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve } protocols = imap lmtp service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } ssl_cert =
This is on the root filesystem on the machine, if that has any bearing on the problem.
On 07/08/10 12:03 PM, Patrick McLean wrote:
Hi,
I have a machine running dovecot 2.0 rc4 and I can't seem to get the imap_quota plugin working, every time I try to read the quotas, I get the following in my log:
Aug 7 11:58:43 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory Aug 7 11:59:53 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory Aug 7 11:59:54 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory
(Once for each try)
Here is the output of dovecot -n:
# 2.0.rc4: /etc/dovecot/dovecot.conf # OS: Linux 2.6.34-gentoo-r3 i686 Gentoo Base System release 2.0.1 listen = * mail_location = mdbox:~/.mdbox mail_plugins = acl quota zlib trash imap_quota managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest passdb { args = * driver = pam } plugin { quota = fs:User quota:user quota_warning = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve } protocols = imap lmtp service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } ssl_cert =
Ok, so it appears that this entry in my mtab was causing dovecot to get confused:
rootfs on / type rootfs (rw)
So here is a little patch to make dovecot ignore filesystems of type "rootfs". This seems to fix the problem for me as it just finds the proper mtab entry for the root filesystem.
On 08/07/10 14:44, Patrick McLean wrote:
This is on the root filesystem on the machine, if that has any bearing on the problem.
On 07/08/10 12:03 PM, Patrick McLean wrote:
Hi,
I have a machine running dovecot 2.0 rc4 and I can't seem to get the imap_quota plugin working, every time I try to read the quotas, I get the following in my log:
Aug 7 11:58:43 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory Aug 7 11:59:53 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory Aug 7 11:59:54 talyn dovecot: imap(chutz): Error: quotactl(Q_GETQUOTA, rootfs) failed: No such file or directory
(Once for each try)
Here is the output of dovecot -n:
# 2.0.rc4: /etc/dovecot/dovecot.conf # OS: Linux 2.6.34-gentoo-r3 i686 Gentoo Base System release 2.0.1 listen = * mail_location = mdbox:~/.mdbox mail_plugins = acl quota zlib trash imap_quota managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date spamtest spamtestplus virustest passdb { args = * driver = pam } plugin { quota = fs:User quota:user quota_warning = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve } protocols = imap lmtp service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } ssl_cert =
On Sun, 2010-08-08 at 01:36 -0400, Patrick McLean wrote:
Ok, so it appears that this entry in my mtab was causing dovecot to get confused:
rootfs on / type rootfs (rw)
So here is a little patch to make dovecot ignore filesystems of type "rootfs". This seems to fix the problem for me as it just finds the proper mtab entry for the root filesystem.
Annoying.. Well, can't think of any better fix. Applied the patch with a small comment change: http://hg.dovecot.org/dovecot-2.0/rev/3f5c53f84d0a
participants (2)
-
Patrick McLean
-
Timo Sirainen