Re: script to check quota failed

Stephane Branchoux <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Organization Université de Perpignan
Message-ID <[email protected]>
Hello,

My solution was to rename a user sub folder whose length was 240 
caracters ( file name too long).

open("/var/lib/imap/quota/a/user.myuser.Diffusion 2nd 
degr&AOk-.Circulaire relative au d&AOk-tachement de fonctionnaires dans 
les corps enseignants du second degr&AOk-, des personnels 
d'&AOk-ducation et des psychologues de l'&AOk-ducation nationale 
relevant du minist&AOg-re de l'&AOk-ducation nationale", O_RDWR) = -1 
ENAMETOOLONG (File name too long)

And now my script runs without any problem.

Thanks

Le 18/03/2019 à 17:23, Simon Matter via Info-cyrus a écrit :
>> Hi,
>>
>> seems that there is a problem with your cyrus quota tree
>> (/var/lib/cyrus/quota) or at least some of its files.
> In the case of RHEL6 this will be /var/lib/imap/quota/.
>
> I suggest to look at the quota files there, they have names like
> user.<username> and are text files with two lines. Should be easy to find
> the broken file.
>
> Regards,
> Simon
>
>> Maybe strace command may help you find which files are corrupt:
>> su - cyrus -c "strace /usr/lib/cyrus-imapd/quota user"
>>
>> Anthony Prades
>>
>> On 3/18/19 2:32 PM, Stephane Branchoux wrote:
>>> Hello,
>>>
>>> We run cyrus-imapd-2.3.16-6 on a Red Hat Enterprise Linux Server
>>> release 6.10.
>>>
>>> 2 days ago, a power crash occured in our Datacenter.
>>>
>>> After reboot of cyrus imap, all seems ok except our script to check
>>> quota :
>>>
>>> su - cyrus -c "/usr/lib/cyrus-imapd/quota user"
>>> failed building quota list for 'user': System I/O error: %m
>>>
>>> I tried :
>>>
>>>   su - cyrus -c "/usr/lib/cyrus-imapd/quota -f"
>>> failed building quota list for '*': System I/O error: %m
>>>
>>> Any idea ?
>>>
>>> Many thanks in advance
>>>
>>>
>>> ----
>>> Cyrus Home Page: http://www.cyrusimap.org/
>>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>>> To Unsubscribe:
>>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>> ----
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

-- 
Stephane BRANCHOUX
Centre de Ressources Informatiques de l'Université de Perpignan.
Systèmes/Réseaux - RSSI
mailto:[email protected]
04 68 66 21 24 / 07 60 73 38 42

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
smime.p7s (application/pkcs7-signature, 3.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.