abort: command: FETCH => socket error: EOF

Bug #990935 reported by Rinka Singh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Backup Gmail
New
Undecided
Unassigned

Bug Description

Backup-gmail does not complete.

I have recently upgraded to the latest kubuntu - see uname output below. I first tried running backup gmail afresh and got the following output:
rinka@personal-rinka:~/bin/backup-gmail$ Traceback (most recent call last):
  File "./gui.py", line 358, in run
    self.func(self.options, self.prog, True)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 526, in doBackup
    backup.backupTo([options.start_date, options.end_date], overwrite, include_labels, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 351, in backupTo
    self.doBackup(date_range, include_labels, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 338, in doBackup
    self.fetchAllMail(date_range)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 310, in fetchAllMail
    self.fetchAllLabel(date_range, exclude_labels)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 299, in fetchAllLabel
    self.fetchMailByLabel(l, date_range)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 222, in fetchMailByLabel
    self.fetchMail(uid, seen, label, size)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 278, in fetchMail
    self.flushFetchMailRequest()
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 263, in flushFetchMailRequest
    rfcs = self.fetchRFC822('%s:%s' % (self.fetchStart, self.fetchEnd))
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 56, in convert
    data = func(self, uid)
  File "/home/rinka/bin/backup-gmail/backup_gmail.py", line 109, in fetchRFC822
    ret, data = self.gmail.fetch(uid, 'RFC822')
  File "/usr/lib/python2.7/imaplib.py", line 443, in fetch
    typ, dat = self._simple_command(name, message_set, message_parts)
  File "/usr/lib/python2.7/imaplib.py", line 1070, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python2.7/imaplib.py", line 899, in _command_complete
    raise self.abort('command: %s => %s' % (name, val))
abort: command: FETCH => socket error: EOF

-------------------
At this point I killed backup-gmail and restarted it for doing incremental backup. But there the tool is currently hanging - there are no further messages
-------------------

[1]+ Done ./gui.py
rinka@personal-rinka:~/bin/backup-gmail$ ./gui.py &
[1] 5240
rinka@personal-rinka:~/bin/backup-gmail$ uname -a
Linux personal-rinka 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Rinka Singh (rinka-singh) wrote :

Additional information on the bug:
If I close the gui error message and restart download without closing gui.py, nothing happens. The abort cancels all activities for the current running verson of gui.py.

If I close gui.py and restart as incremental backup, backup-gmail picks up from where it stopped and continues backing up. Though it fails again with the same error a bit later.

My take: This is a transient error and should just be displayed but the tool should continue.

Revision history for this message
Oliver Kuster (olivervbk) wrote :

Happens also when running from command line.

Running on Arch Linux
with the package
aur/backup-gmail 0.1.2.1-1

Traceback (most recent call last):49]
  File "/usr/bin/backup_gmail.py", line 556, in <module>
    doBackup(options, TerminalProgress())
  File "/usr/bin/backup_gmail.py", line 526, in doBackup
    backup.backupTo([options.start_date, options.end_date], overwrite, include_labels, exclude_labels)
  File "/usr/bin/backup_gmail.py", line 351, in backupTo
    self.doBackup(date_range, include_labels, exclude_labels)
  File "/usr/bin/backup_gmail.py", line 338, in doBackup
    self.fetchAllMail(date_range)
  File "/usr/bin/backup_gmail.py", line 310, in fetchAllMail
    self.fetchAllLabel(date_range, exclude_labels)
  File "/usr/bin/backup_gmail.py", line 299, in fetchAllLabel
    self.fetchMailByLabel(l, date_range)
  File "/usr/bin/backup_gmail.py", line 222, in fetchMailByLabel
    self.fetchMail(uid, seen, label, size)
  File "/usr/bin/backup_gmail.py", line 278, in fetchMail
    self.flushFetchMailRequest()
  File "/usr/bin/backup_gmail.py", line 263, in flushFetchMailRequest
    rfcs = self.fetchRFC822('%s:%s' % (self.fetchStart, self.fetchEnd))
  File "/usr/bin/backup_gmail.py", line 56, in convert
    data = func(self, uid)
  File "/usr/bin/backup_gmail.py", line 109, in fetchRFC822
    ret, data = self.gmail.fetch(uid, 'RFC822')
  File "/usr/lib/python2.7/imaplib.py", line 443, in fetch
    typ, dat = self._simple_command(name, message_set, message_parts)
  File "/usr/lib/python2.7/imaplib.py", line 1070, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python2.7/imaplib.py", line 899, in _command_complete
    raise self.abort('command: %s => %s' % (name, val))

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.