Page MenuHomePureOS Tracker

Scheduled backup reports "error: can't start new thread"
Open, NormalPublic


Steps to reproduce:

  • Configure Backups (aka Deja Dup Backup Tool)
  • Wait for scheduled backup to run

What should happen:

  • Notification that backup is complete
  • Restoring the backup succeeds

What happens instead:

  • Notification that an error occurred
  • Error window pops up (message below)
  • Restoring the backup succeeds (despite the error)


  • This issue is intermittent (more frequent failures than successes)
  • The error message also pops up after scheduled restore test
  • The error message does not appear after invoking a backup manually

Error message:

Traceback (innermost last):
  File "/usr/bin/duplicity", line 1566, in <module>
  File "/usr/bin/duplicity", line 1552, in with_tempdir
  File "/usr/bin/duplicity", line 1401, in main
  File "/usr/bin/duplicity", line 1480, in do_backup
  File "/usr/bin/duplicity", line 736, in restore
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 558, in Write_ROPaths
    for ropath in rop_iter:
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 521, in integrate_patch_iters
    for patch_seq in collated:
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 389, in yield_tuples
    setrorps(overflow, elems)
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 378, in setrorps
    elems[i] = iter_list[i].next()
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 107, in filter_path_iter
    for path in path_iter:
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 121, in difftar2path_iter
    tarinfo_list = []
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 339, in next
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 333, in set_tarfile
    self.current_fp =
  File "/usr/bin/duplicity", line 773, in get_fileobj_iter
  File "/usr/bin/duplicity", line 816, in restore_get_enc_fileobj
    fileobj = tdp.filtered_open_with_delete("rb")
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 120, in filtered_open_with_delete
    fh = FileobjHooked(path.DupPath.filtered_open(self, mode))
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 779, in filtered_open
    return gpg.GPGFile(False, self, gpg_profile)
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 224, in __init__
    'logger': self.logger_fp})
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 374, in run
    create_fhs, attach_fhs)
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 420, in _attach_fork_exec
  File "/usr/lib/python2.7/", line 736, in start
    _start_new_thread(self.__bootstrap, ())
 error: can't start new thread

Event Timeline

d3vid created this task.Jan 31 2018, 01:44
d3vid renamed this task from Backup succeeds but reports error to Scheduled backup reports "error: can't start new thread".Jan 31 2018, 02:04
d3vid updated the task description. (Show Details)
jonas.smedegaard triaged this task as Normal priority.May 27 2021, 07:19