Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/)
14 mars 2019 11:46 "Eric Grammatico" <e.grammatico@gmail.com> a écrit:
I use sendmail and quota-status is not running in background.
Fully aligned with you about focusing on imap... will try to get other strace and report there.
thanks and regards,
- Eric Grammatico _/)
14 mars 2019 11:37 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
On 3/14/19 9:53 AM, Yassine Chaouche via dovecot wrote:
On 3/13/19 2:10 PM, Eric Grammatico via dovecot wrote:
Thanks Aki,
Please find attached strace for imap and quota-status which report an >> error at the end.
Regards,
write(2, "/usr/libexec/dovecot/quota-statu"..., > 57/usr/libexec/dovecot/quota-status: invalid option -- 'u'
Please retry with the good options (-u is invalid)
Yassine.
Ah, that seems to be the service that is called by the MTA before delivering the mail to the LDA, in case the user is over quota, so that the MTA may bounce the e-mail right away instead of accepting it first then bouncing afterwards (after the LDA refuses the message).
But according to the error message you posted on your first e-mail, the error happens with imap, I don't know if quota-status is involved here (might be) ?
In any case, I would concentrate on imap and not quota-status. Nothing in the imap strace shows any trace of errors. Particulary, I was looking for a quotactl line in the strace, but I couldn't find it.
In the other hand, it is present in the doveadm quota strace, and has completed successfully
dovecot.strace:quotactl(QCMD(Q_GETQUOTA, USRQUOTA), "/dev/vda1", 1000, {dqb_bhardlimit=4194304, dqb_bsoftlimit=3170304, dqb_curspace=638853120, dqb_ihardlimit=0, dqb_isoftlimit=0, dqb_curinodes=12784, ...}) = 0
Someone has to tell us under what conditions will the imap daemon check for quota (at login ? at delivery or any other action involving moving mail around like copying or expunging ?)
For the quota-status libexec, I have set it to run with quota-status -f postfix but your setup may vary (if it's every configured). If it is running, you can just grep it's pid with pgrep quota-status then strace -p $PID and see how it behaves (wait until a quota operation is needed).
Yassine.
On 3/14/19 3:40 PM, Eric Grammatico via dovecot wrote:
Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/)
How did you get that error in the first place ? :p
Yassine.
The error is generated when a user get connect from a client (RainLoop, a web UI). I don't know if the client request the quota or if it's automagically pushed from the imap process. I'd say the client requests. My problem is the process imap generating the error is launched just before and stopped right after the error is raised and thus quite difficult to trace the process.
- Eric Grammatico _/)
14 mars 2019 15:46 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
On 3/14/19 3:40 PM, Eric Grammatico via dovecot wrote:
Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/)
How did you get that error in the first place ? :p
Yassine.
How I'd love if I could just launch dovecot (with symbols) in a debugger, set a breakpoint in the right function call, and login from Rainloop. Then I could run the process one step at a time and inspect everything...
Yassine.
On 3/14/19 3:59 PM, Eric Grammatico via dovecot wrote:
The error is generated when a user get connect from a client (RainLoop, a web UI). I don't know if the client request the quota or if it's automagically pushed from the imap process. I'd say the client requests. My problem is the process imap generating the error is launched just before and stopped right after the error is raised and thus quite difficult to trace the process.
- Eric Grammatico _/)
14 mars 2019 15:46 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
On 3/14/19 3:40 PM, Eric Grammatico via dovecot wrote:
Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/) How did you get that error in the first place ? :p
Yassine.
Sure !!
I got it ! I have connected with kmail, which keeps the imap opened and which has generated the error several times during the session. Please find attached the strace.
Not sure this strace will help. I executed '/usr/libexec/dovecot/imap -u eric' and typed the same command as in the strace and it worked....
Could someone have a look in the strace and suggest some ideas to progress ?
Thanks and best regards,
- Eric Grammatico _/)
14 mars 2019 16:08 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
How I'd love if I could just launch dovecot (with symbols) in a debugger, set a breakpoint in the right function call, and login from Rainloop. Then I could run the process one step at a time and inspect everything...
Yassine.
On 3/14/19 3:59 PM, Eric Grammatico via dovecot wrote:
The error is generated when a user get connect from a client (RainLoop, a web UI). I don't know if the client request the quota or if it's automagically pushed from the imap process. I'd say the client requests. My problem is the process imap generating the error is launched just before and stopped right after the error is raised and thus quite difficult to trace the process.
- Eric Grammatico _/)
14 mars 2019 15:46 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
On 3/14/19 3:40 PM, Eric Grammatico via dovecot wrote:
Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/)
How did you get that error in the first place ? :p
Yassine.
The issue was in the systemd service file. The option PrivateDevices was setted. It prevents the service to have access to physical devices. I removed this option and from there, quota is reported without errors.
Thanks for your support
Regards,
- Eric Grammatico _/)
14 mars 2019 16:42 "Eric Grammatico" <e.grammatico@gmail.com> a écrit:
Sure !!
I got it ! I have connected with kmail, which keeps the imap opened and which has generated the error several times during the session. Please find attached the strace.
Not sure this strace will help. I executed '/usr/libexec/dovecot/imap -u eric' and typed the same command as in the strace and it worked....
Could someone have a look in the strace and suggest some ideas to progress ?
Thanks and best regards,
- Eric Grammatico _/)
14 mars 2019 16:08 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
How I'd love if I could just launch dovecot (with symbols) in a debugger, set a breakpoint in the right function call, and login from Rainloop. Then I could run the process one step at a time and inspect everything...
Yassine.
On 3/14/19 3:59 PM, Eric Grammatico via dovecot wrote:
The error is generated when a user get connect from a client (RainLoop, a web UI). I don't know if the client request the quota or if it's automagically pushed from the imap process. I'd say the client requests. My problem is the process imap generating the error is launched just before and stopped right after the error is raised and thus quite difficult to trace the process.
- Eric Grammatico _/)
14 mars 2019 15:46 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
On 3/14/19 3:40 PM, Eric Grammatico via dovecot wrote:
Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/)
How did you get that error in the first place ? :p
Yassine.
I'm happy you fixed it ! how did you figure that out ?
Yassine.
On 3/15/19 10:16 AM, Eric Grammatico via dovecot wrote:
The issue was in the systemd service file. The option PrivateDevices was setted. It prevents the service to have access to physical devices. I removed this option and from there, quota is reported without errors.
Thanks for your support
Regards,
- Eric Grammatico _/)
14 mars 2019 16:42 "Eric Grammatico" <e.grammatico@gmail.com> a écrit:
Sure !!
I got it ! I have connected with kmail, which keeps the imap opened and which has generated the error several times during the session. Please find attached the strace.
Not sure this strace will help. I executed '/usr/libexec/dovecot/imap -u eric' and typed the same command as in the strace and it worked....
Could someone have a look in the strace and suggest some ideas to progress ?
Thanks and best regards,
- Eric Grammatico _/)
14 mars 2019 16:08 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
How I'd love if I could just launch dovecot (with symbols) in a debugger, set a breakpoint in the right function call, and login from Rainloop. Then I could run the process one step at a time and inspect everything...
Yassine.
On 3/14/19 3:59 PM, Eric Grammatico via dovecot wrote:
The error is generated when a user get connect from a client (RainLoop, a web UI). I don't know if the client request the quota or if it's automagically pushed from the imap process. I'd say the client requests. My problem is the process imap generating the error is launched just before and stopped right after the error is raised and thus quite difficult to trace the process.
- Eric Grammatico _/)
14 mars 2019 15:46 "Yassine Chaouche via dovecot" <dovecot@dovecot.org> a écrit:
On 3/14/19 3:40 PM, Eric Grammatico via dovecot wrote:
Hi there,
Well.. I didn't find a way to strace imap. If I well understood, the faulty IMAP is launched by dovecot from or after a succesfull imap-login process. I have executed manually '/usr/libexec/dovecot/imap -u eric' and typed getquotaroot "INBOX" which didn't reproduce the error seen in the dovecot logs and reported the correct quota.
Any idea how to find the imap command generating the error
imap(eric)<3085></M5VXfCBwJejrKVa>: Error: Failed to get quota resource STORAGE: quota-fs: quotactl(Q_GETQUOTA, /dev/vda1) failed: No such file or directory
Thanks and regards,
Eric Grammatico _/) How did you get that error in the first place ? :p
Yassine.
participants (2)
-
Eric Grammatico
-
Yassine Chaouche