More traces

Justus Winter 4winter at informatik.uni-hamburg.de
Wed Oct 5 10:44:45 BST 2011


Quoting John Wiegley (2011-10-04 20:59:35)
>I left Offlineimap running overnight, and here is what I woke up to.  I've
>seen this several times before when I leave things running for a while:

I've been collecting traces as well.

I've been seeing this with both the version packaged in debian sid
(6.3.4) as well as the current git head:

~~~ snip ~~~
 Deleting 3 messages (3594, 3595, 3460) in MappedIMAP[INBOX]
 WARNING: ERROR attempting to sync flags for account jade:Traceback (most recent
 call last):
  File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 421, in s
yncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/pymodules/python2.6/offlineimap/folder/Base.py", line 337, in s
yncmessagesto_delete
    folder.deletemessages(deletelist)
  File "/usr/lib/pymodules/python2.6/offlineimap/folder/UIDMaps.py", line 253, i
n deletemessages
    self._mb.deletemessages(self._uidlist(self.r2l, uidlist))
  File "/usr/lib/pymodules/python2.6/offlineimap/folder/UIDMaps.py", line 87, in
 _uidlist
    return [mapping[x] for x in items]
KeyError: 3594L
~~~ snip ~~~

That one only occurs with the current git version:

~~~ snip ~~~
[...]
Syncing Aaaaaaa, bbbbBbbbbbb.Ccccc: IMAP -> MappedIMAP
ERROR [<InstanceLimitedThread(Folder sync [jade], started daemon 140245574772480)>]: ERROR in syncfolder for jade folder Aaaaaaa, bbbbBbbbbbb.Ccccc: Traceback (most recent call last):
  File "/home/teythoon/.local/lib/python2.6/site-packages/offlineimap/accounts.py", line 321, in syncfolder
    localfolder.cachemessagelist()
  File "/home/teythoon/.local/lib/python2.6/site-packages/offlineimap/folder/UIDMaps.py", line 90, in cachemessagelist
    self._mb.cachemessagelist()
  File "/home/teythoon/.local/lib/python2.6/site-packages/offlineimap/folder/IMAP.py", line 123, in cachemessagelist
    res_type, imapdata = imapobj.select(self.getfullname(), True)
TypeError: 'NoneType' object is not iterable

  'NoneType' object is not iterable
~~~ snip ~~~

Both get stuck like this sometimes, not sure how to trigger this
(well, one sure way to trigger this is to suspend my laptop, but it
occurs in normal operation as well):

~~~ snip ~~~
[...]
Syncing Aaaaaaa, bbbbBbbbbbb.Cccccc: IMAP -> MappedIMAP
imap(teythoon): Info: Disconnected for inactivity bytes=2038369/57847357
imap(teythoon): Info: Disconnected for inactivity bytes=2525485/62770481
~~~ snip ~~~

Doing an strace on the process yields

~~~ snip ~~~
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 50000}^C <unfinished ...>
~~~ snip ~~~

Googling around suggests that this might indicate a
thread.join(). Haven't looked deeper into this though.

Below is my configuration.

Justus

~~~ snip ~~~
[general]
metadata = ~/.config/offlineimap
accounts = jade
maxsyncaccounts = 1
ui = quiet
ignore-readonly = no

[Account jade]
localrepository = LocalMaildir
remoterepository = RemoteJade
autorefresh = 2.5
quick = 10
maxsize = 5000000
maxage = 180
postsynchook = ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch new && /home/teythoon/tmp/initial_tagging_006.py -vv"
# postsynchook = ionice -c 3 chrt --idle 0 notmuch new

[Repository LocalMaildir]
type = IMAP
remoteuser = bar
remotehost = foo
preauthtunnel = ionice -c 3 chrt --idle 0 /bin/sh -c "MAIL=maildir:~/Maildir exec /usr/lib/dovecot/imap"
holdconnectionopen = yes
keepalive = 60
folderfilter = lambda foldername: not foldername.startswith('Archive')

[Repository RemoteJade]
type = IMAP
remoteuser = bar
remotehost = foo
preauthtunnel = ssh -o ControlPath=none -o Compression=yes -q example.org 'ionice -c 3 chrt --idle 0 /bin/sh -c "MAIL=maildir:~/Maildir exec /usr/lib/dovecot/imap"'
holdconnectionopen = yes
keepalive = 60
folderfilter = lambda foldername: not foldername.startswith('Archive')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .signature
Type: application/octet-stream
Size: 17 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20111005/331e97e5/attachment-0003.obj>


More information about the OfflineIMAP-project mailing list