duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-talk] Duplicity crashes with no tty


From: Daniel Rabinowitz
Subject: [Duplicity-talk] Duplicity crashes with no tty
Date: Tue, 26 Feb 2008 20:29:59 -0800
User-agent: Microsoft-Entourage/11.3.3.061214

Hi folks.  I¹ve got an awesome perl script which runs duplicity, and it
works GREAT... as long as I run the perl script manually from the command
line.  (It doesn¹t ask for any input, or display any output.)

But when I run the perl script from a cron job, I get this:

Last full backup date: Tue Feb 19 08:35:05 2008
Using temporary directory /tmp/duplicity-QEf1Tz-tempdir
Downloading 
s3+http://[MYBUCKET]/duplicity-inc.2008-02-22T06:46:50-08:00.to.2008-02-24T2
0:30:31-08:00.manifest.gpg
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 460, in <module>
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 455, in with_tempdir
    fn()
  File "/usr/local/bin/duplicity", line 443, in main
    check_last_manifest(col_stats) # not needed for full backup
  File "/usr/local/bin/duplicity", line 382, in check_last_manifest
    last_backup_set.check_manifests()
  File "/usr/local/lib/python2.5/site-packages/duplicity/collections.py",
line 125, in check_manifests
    remote_manifest = self.get_remote_manifest()
  File "/usr/local/lib/python2.5/site-packages/duplicity/collections.py",
line 151, in get_remote_manifest
    manifest_buffer = self.backend.get_data(self.remote_manifest_name)
  File "/usr/local/lib/python2.5/site-packages/duplicity/backends.py", line
237, in get_data
    fin = self.get_fileobj_read(filename, parseresults)
  File "/usr/local/lib/python2.5/site-packages/duplicity/backends.py", line
204, in get_fileobj_read
    return tdp.filtered_open_with_delete("rb")
  File "/usr/local/lib/python2.5/site-packages/duplicity/dup_temp.py", line
78, in filtered_open_with_delete
    fh = FileobjHooked(path.DupPath.filtered_open(self, mode))
  File "/usr/local/lib/python2.5/site-packages/duplicity/path.py", line 635,
in filtered_open
    if mode == "rb": return gpg.GPGFile(None, self, gpg_profile)
  File "/usr/local/lib/python2.5/site-packages/duplicity/gpg.py", line 114,
in __init__
    'logger': self.logger_fp})
  File "/usr/local/lib/python2.5/site-packages/GnuPGInterface.py", line 357,
in run
    create_fhs, attach_fhs)
  File "/usr/local/lib/python2.5/site-packages/GnuPGInterface.py", line 401,
in _attach_fork_exec
    if process.pid == 0: self._as_child(process, gnupg_commands, args)
  File "/usr/local/lib/python2.5/site-packages/GnuPGInterface.py", line 442,
in _as_child
    os.execvp( command[0], command )
  File "/usr/local/lib/python2.5/os.py", line 354, in execvp
    _execvpe(file, args)
  File "/usr/local/lib/python2.5/os.py", line 392, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
Cleanup of temporary directory /tmp/duplicity-QEf1Tz-tempdir failed - this
is probably a bug.
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 460, in <module>
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 455, in with_tempdir
    fn()
  File "/usr/local/bin/duplicity", line 443, in main
    check_last_manifest(col_stats) # not needed for full backup
  File "/usr/local/bin/duplicity", line 382, in check_last_manifest
    last_backup_set.check_manifests()
  File "/usr/local/lib/python2.5/site-packages/duplicity/collections.py",
line 125, in check_manifests
    remote_manifest = self.get_remote_manifest()
  File "/usr/local/lib/python2.5/site-packages/duplicity/collections.py",
line 151, in get_remote_manifest
    manifest_buffer = self.backend.get_data(self.remote_manifest_name)
  File "/usr/local/lib/python2.5/site-packages/duplicity/backends.py", line
239, in get_data
    assert not fin.close()
  File "/usr/local/lib/python2.5/site-packages/duplicity/dup_temp.py", line
107, in close
    assert not self.fileobj.close()
  File "/usr/local/lib/python2.5/site-packages/duplicity/gpg.py", line 139,
in close
    self.gpg_process.wait()
  File "/usr/local/lib/python2.5/site-packages/GnuPGInterface.py", line 639,
in wait
    raise IOError, "GnuPG exited non-zero, with code %d" % (e << 8)
IOError: GnuPG exited non-zero, with code 65536

Anyone have any input on this?

-dan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]