Re: "Bad file descriptor" error when restoring file



Sorry you're having problems!  :(  Let's see if we can help.

The first thing I'd try is a different command line.  Deja Dup passes
some special stuff to duplicity because it sets things up a certain way.
 You probably want a stripped down version:

duplicity restore --gio --time=2017-07-06T08:14:08Z --force
file:///home/pierre/data/backup_pierre /
--archive-dir=/home/pierre/.cache/deja-dup

Try that?

On Sat, Jul 8, 2017, at 12:16, Pétùr wrote:
I am trying to restore a backup made with deja-dup. The recovery gets
stuck quickly.

I tried to pass the duplicity command manually and here is the error :

"OSError: [Errno 9] Bad file descriptor"

It happens no matter with backup I choose to restore.

I am running Debian unstable.

Any idea?

$ duplicity restore --gio --time=2017-07-06T08:14:08Z --force
file:///home/pierre/data/backup_pierre / --verbosity=9
--gpg-options=--no-use-agent --archive-dir=/home/pierre/.cache/deja-dup
--tempdir=/tmp --log-fd=22
Warning: Option --gio is pending deprecation and will be removed in a
future release.
Use of default filenames is strongly suggested.
Using temporary directory /tmp/duplicity-LTZSjM-tempdir
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1553, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1547, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1382, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
1096, in ProcessCommandLine
    args = parse_cmdline_options(cmdline_list)
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
637, in parse_cmdline_options
    (options, args) = parser.parse_args()
  File "/usr/lib/python2.7/optparse.py", line 1400, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1440, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1515, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.7/optparse.py", line 789, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
197, in take_action
    self, action, dest, opt, value, values, parser)
  File "/usr/lib/python2.7/optparse.py", line 809, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
452, in <lambda>
    callback=lambda o, s, v, p: set_log_fd(v))
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line
242, in set_log_fd
    log.add_fd(fd)
  File "/usr/lib/python2.7/dist-packages/duplicity/log.py", line 403, in
add_fd
    handler = logging.StreamHandler(os.fdopen(fd, 'w'))
OSError: [Errno 9] Bad file descriptor

_______________________________________________
deja-dup-list mailing list
deja-dup-list gnome org
https://mail.gnome.org/mailman/listinfo/deja-dup-list


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