[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Duplicity-talk] Duplicity fails when run as cron script: `OSError: [Err
From: |
Niklaas Baudet von Gersdorff |
Subject: |
[Duplicity-talk] Duplicity fails when run as cron script: `OSError: [Errno 2] No such file or directory` |
Date: |
Tue, 13 Oct 2015 20:37:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
I get the following error when running duplicity from a crontab on a
FreeBSD 10.1 system. Running the same script manually works without any
problems.
> Duplicity 0.6 series is being deprecated:
> See http://www.nongnu.org/duplicity/
>
> Local and Remote metadata are synchronized, no sync needed.
> Last full backup date: Mon Oct 5 19:54:28 2015
> Cleanup of temporary directory /tmp/duplicity-qD5xDy-tempdir failed - this is
> probably a bug.
> GPGError: GPG Failed, see log below:
> ===== Begin GnuPG log =====
> Traceback (most recent call last):
> File "/usr/local/bin/duplicity", line 1509, in <module>
> with_tempdir(main)
> File "/usr/local/bin/duplicity", line 1503, in with_tempdir
> fn()
> File "/usr/local/bin/duplicity", line 1352, in main
> do_backup(action)
> File "/usr/local/bin/duplicity", line 1484, in do_backup
> check_last_manifest(col_stats) # not needed for full backup
> File "/usr/local/bin/duplicity", line 1177, in check_last_manifest
> last_backup_set.check_manifests()
> File "/usr/local/lib/python2.7/site-packages/duplicity/collections.py", line
> 190, in check_manifests
> remote_manifest = self.get_remote_manifest()
> File "/usr/local/lib/python2.7/site-packages/duplicity/collections.py", line
> 224, in get_remote_manifest
> manifest_buffer = self.backend.get_data(self.remote_manifest_name)
> File "/usr/local/lib/python2.7/site-packages/duplicity/backend.py", line 646,
> in get_data
> fin = self.get_fileobj_read(filename, parseresults)
> File "/usr/local/lib/python2.7/site-packages/duplicity/backend.py", line 609,
> in get_fileobj_read
> return tdp.filtered_open_with_delete("rb")
> File "/usr/local/lib/python2.7/site-packages/duplicity/dup_temp.py", line
> 118, in filtered_open_with_delete
> fh = FileobjHooked(path.DupPath.filtered_open(self, mode))
> File "/usr/local/lib/python2.7/site-packages/duplicity/path.py", line 755, in
> filtered_open
> return gpg.GPGFile(False, self, gpg_profile)
> File "/usr/local/lib/python2.7/site-packages/duplicity/gpg.py", line 174, in
> __init__
> 'logger': self.logger_fp})
> File "/usr/local/lib/python2.7/site-packages/duplicity/gpginterface.py", line
> 369, in run
> create_fhs, attach_fhs)
> File "/usr/local/lib/python2.7/site-packages/duplicity/gpginterface.py", line
> 419, in _attach_fork_exec
> if process.pid == 0: self._as_child(process, gnupg_commands, args)
> File "/usr/local/lib/python2.7/site-packages/duplicity/gpginterface.py", line
> 460, in _as_child
> os.execvp( command[0], command )
> File "/usr/local/lib/python2.7/os.py", line 346, in execvp
> _execvpe(file, args)
> File "/usr/local/lib/python2.7/os.py", line 382, in _execvpe
> func(fullname, *argrest)
> OSError: [Errno 2] No such file or directory
>
> ===== End GnuPG log =====
Do I have to pass certain environment variables in the cron file? Does
anybody have an idea why this happens?
I am aware of the fact that I am using a deprecated version of duplicity
(see first line of log above). Unfortunately, version 0.7 hasn't made it
to the ports system of FreeBSD yet:
https://www.freshports.org/sysutils/duplicity/
--
Niklaas
- [Duplicity-talk] Duplicity fails when run as cron script: `OSError: [Errno 2] No such file or directory`,
Niklaas Baudet von Gersdorff <=