Bug#434735: offlineimap: Crash with IOError: [Errno 24] Too many open files
Package: offlineimap Version: 5.99.1 Severity: important Hi John, today offlineimap stopped working on my rather large IMAP account, crashing with the following backtrace: Thread 'Copy message 1138 from hypernews/hn-atlas-releaseKitProblem' terminated with exception: Traceback (most recent call last): File /var/lib/python-support/python2.4/offlineimap/threadutil.py, line 153, in run File threading.py, line 422, in run File /var/lib/python-support/python2.4/offlineimap/folder/Base.py, line 282, in copymessageto File /var/lib/python-support/python2.4/offlineimap/folder/Maildir.py, line 169, in savemessage IOError: [Errno 24] Too many open files: '/home/jschumac/OfflineIMAP/hypernews.hn-atlas-releaseKitProblem/tmp/1185443341_6.13927.silab31' I am not sure if this is related to a recent upgrade, I use offlineimap only occasionally. All in all I have some 10-20k emails in about 100 folders. Rerunning offlineimap does not help, it crashes at the exact same email. Severity important is correct, I hope, since it stopped working here completely but might work for others with less volume. Thanks for packaging offlineimap! Cheers Jan -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages offlineimap depends on: ii python 2.4.4-6 An interactive high-level object-o ii python-support 0.6.4 automated rebuilding support for p offlineimap recommends no packages. -- no debconf information
Bug#434735: offlineimap: Crash with IOError: [Errno 24] Too many open files
Hi John, On Thursday 26 July 2007, John Goerzen wrote: Can you check a few things for me: 1) Run offlineimap -1. Right before it crasshes, ls -l /proc/pid/fd where pid is OfflineIMAP's pid. Let's see what files it has open. offlineimap does not crash any more, so I could only check on a successful run. I attached the largest set of fd's I obtained. 2) Verify via lsof or some other tool that your system isn't out of file descriptors globally. A reboot could fix that as well. How can I do that with lsof? It does not complain when just listing without options. The machine has not been rebooted in the meantime. This problem could occur either from a problem with OfflineIMAP or a more general global problem. (Un)fortunately I can not reproduce the error anymore, so sorry for the noise. Cheers Jan insgesamt 106 lrwx-- 1 jschumac jschumac 64 2007-07-26 18:15 0 - /dev/pts/3 lrwx-- 1 jschumac jschumac 64 2007-07-26 18:15 1 - /dev/pts/3 lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 10 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 100 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 101 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 102 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 103 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 104 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus l-wx-- 1 jschumac jschumac 64 2007-07-26 18:16 105 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus/hypernews.hn-atlas-releaseKitProblem.tmp lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 11 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 12 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 13 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 14 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 15 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 16 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 17 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 18 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 19 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lrwx-- 1 jschumac jschumac 64 2007-07-26 18:15 2 - /dev/pts/3 lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 20 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 21 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 22 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 23 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 24 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 25 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 26 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 27 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 28 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus lr-x-- 1 jschumac jschumac 64 2007-07-26 18:16 29 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/Account-HRZ/LocalStatus l-wx-- 1 jschumac jschumac 64 2007-07-26 18:15 3 - /afs/atlass01.physik.uni-bonn.de/user/jschumac/.offlineimap/lock l-wx-- 1 jschumac jschumac 64 2007-07-26 18:16 30 -
Bug#434735: offlineimap: Crash with IOError: [Errno 24] Too many open files
On Thursday 26 July 2007 05:32:31 am Jan Schumacher wrote: today offlineimap stopped working on my rather large IMAP account, crashing with the following backtrace: I haven't been able to reproduce this or to figure out if this is really a problem with OfflineIMAP. On my own system, I don't see fd leakage in OfflineIMAP. Can you check a few things for me: 1) Run offlineimap -1. Right before it crasshes, ls -l /proc/pid/fd where pid is OfflineIMAP's pid. Let's see what files it has open. 2) Verify via lsof or some other tool that your system isn't out of file descriptors globally. A reboot could fix that as well. This problem could occur either from a problem with OfflineIMAP or a more general global problem. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]