unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Crash when syncing from gmail to local imap
@ 2013-04-16  9:18 Rainer M. Krug
  0 siblings, 0 replies; only message in thread
From: Rainer M. Krug @ 2013-04-16  9:18 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 4916 bytes --]

Hi

I encounter a crash when I sync from gmail to local imap account. 
The output I get is:

,----
|  Copy message 848831 (7 of 9) RemoteRMKrugGMAIL:[Gmail]/All Mail -> LocalRMKrugGMAIL
| Copy message from RemoteRMKrugGMAIL:[Gmail]/All Mail:
|  Establishing connection to localhost:143
| Folder [Gmail]/All Mail [acc: Gmail]:
|  Copy message 848832 (8 of 9) RemoteRMKrugGMAIL:[Gmail]/All Mail -> LocalRMKrugGMAIL
|  Copy message 848834 (9 of 9) RemoteRMKrugGMAIL:[Gmail]/All Mail -> LocalRMKrugGMAIL
| Copy message from RemoteRMKrugGMAIL:[Gmail]/All Mail:
|  ERROR: command: CHECK => socket error: <type 'exceptions.IOError'> - Too many read 0
| Thread 'Copy message from RemoteRMKrugGMAIL:[Gmail]/All Mail' terminated with exception:
| Traceback (most recent call last):
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 156, in run
|     Thread.run(self)
|   File "/usr/lib/python2.7/threading.py", line 505, in run
|     self.__target(*self.__args, **self.__kwargs)
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 335, in copymessageto
|     new_uid = dstfolder.savemessage(uid, message, flags, rtime)
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/UIDMaps.py", line 203, in savemessage
|     newluid = self._mb.savemessage(-1, content, flags, rtime)
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/IMAP.py", line 575, in savemessage
|     (typ,dat) = imapobj.check()
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 655, in check
|     return self._simple_command('CHECK', **kw)
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1595, in _simple_command
|     return self._command_complete(self._command(name, *args), kw)
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1360, in _command_complete
|     typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
|   File "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 173, in get_response
|     raise typ(exc_fmt % str(val))
| abort: command: CHECK => socket error: <type 'exceptions.IOError'> - Too many read 0
| 
| 
| Last 5 debug messages logged for Copy message from RemoteRMKrugGMAIL:[Gmail]/All Mail prior to exception:
| thread: Register new thread 'Copy message from RemoteRMKrugGMAIL:[Gmail]/All Mail' (account 'Gmail')
| imap: Returned object from fetching 848831: 'Delivered-To: r.m.krug@gmail.com
| Received: by 10.58.66.162 with SMTP id g2csp15451vet;
|         Tue, 16 Apr 2013 01:52:56 -0700 (PDT)
| X-Received: by 10...9EE04CABD9452A82EE740A1BB253BCSTBEXMB02stbsun_--
| 
| '
| imap: Write mail 'RMKrugGMAIL.[Gmail].All Mail:848831' with flags set([])
| imap: Write mail 'RMKrugGMAIL.[Gmail].All Mail:-1' with flags set([])
| imap: savemessage: date: "16-Apr-2013 08:45:15 +0100", content: 'Delivered-To: r.m.krug@gmail.com
| Received: by 10.58.66.162 with SMTP id g2csp15451vet;
|         Tue, 16 Apr 2013 01:52:56 -0700 (PDT)
| X-Received: by...E04CABD9452A82EE740A1BB253BCSTBEXMB02stbsun_--
| 
| '
| ERROR: Exceptions occurred during the run!
| ERROR: command: CHECK => socket error: <type 'exceptions.IOError'> - Too many read 0
`----


My .offlineimaprc is as follow:

,----
| [general]
| accounts = Gmail
| maxsyncaccounts = 1
| ignore-readonly = no
| 
| [Account Gmail]
| localrepository =   LocalRMKrugGMAIL
| remoterepository = RemoteRMKrugGMAIL
| status_backend = sqlite
| postsynchook = ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch new && afew --tag --verbose --new"
| 
| [Repository RemoteRMKrugGMAIL]
| type = Gmail
| sslcacertfile = /etc/ssl/certs/ca-certificates.crt
| ######
| remoteuser = XXXXXXXX
| remotepass = YYYYYYYY
| ######
| maxconnections = 5
| nametrans = lambda foldername: 'RMKrugGMAIL.' + foldername
| ######
| 
| [Repository LocalRMKrugGMAIL]
| type = IMAP
| remotehost = localhost
| port = 143
| ######
| remoteuser = ZZZZZZZ
| remotepass = PPPPPPP
| ######
| maxconnections = 5
| ######
| ## Remove RMKrugGMAIL prefix when copying to remote
| nametrans = lambda folder: re.sub('^RMKrugGMAIL.', '', folder)
| ######
| folderfilter = lambda folder: folder.startswith('RMKrugGMAIL')
| ######
`----

offlineimap version 6.5.4
Ubuntu Quantal, all updates

The syncing is approaching the end if I run offlineimap again after the
crash.

Any further info needed?

Thanks,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-16  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-16  9:18 Crash when syncing from gmail to local imap Rainer M. Krug

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).