duplicity remove-all-but-n-full Fails with TypeError: an integer is required

Bug #1809851 reported by Eric Koski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

duplicity 0.7.17
Python 2.7.15rc1
Ubuntu 18.04LTS
ext4 filesystem

command-line output:

$ duplicity remove-all-but-n-full 1 --force file:///media/eric/Lnx_bk0
Synchronizing remote metadata to local cache...
GnuPG passphrase for decryption:
Copying duplicity-full-signatures.20171002T012817Z.sigtar.gpg to local cache.
Copying duplicity-full-signatures.20180102T070445Z.sigtar.gpg to local cache.
Copying duplicity-full-signatures.20180405T080021Z.sigtar.gpg to local cache.
Cleanup of temporary directory /tmp/duplicity-j3izoa-tempdir failed - this is probably a bug.
Traceback (innermost last):
  File "/usr/bin/duplicity", line 1555, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1541, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1393, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1414, in do_backup
    sync_archive()
  File "/usr/bin/duplicity", line 1204, in sync_archive
    copy_to_local(fn)
  File "/usr/bin/duplicity", line 1154, in copy_to_local
    tdp.move(globals.archive_dir.append(loc_name))
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 643, in move
    self.copy(new_path)
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 463, in copy
    self.copy_attribs(other)
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 470, in copy_attribs
    util.maybe_ignore_errors(lambda: os.chmod(other.name, self.mode))
  File "/usr/lib/python2.7/dist-packages/duplicity/util.py", line 92, in maybe_ignore_errors
    return fn()
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 470, in <lambda>
    util.maybe_ignore_errors(lambda: os.chmod(other.name, self.mode))
 TypeError: an integer is required

summary: - "duplicity remove-all-but-n-full 1 --force <path>" fails with "Cleanup
- of temporary directory /tmp/duplicity-j3izoa-tempdir failed - this is
- probably a bug."
+ duplicity remove-all-but-n-full Fails with TypeError: an integer is
+ required
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

The temporary file error is a known, but hard to repeat bug. It's not the cause.

The problem is the TypeError at the end, os.chmod(file, mode) requires an integer for mode.

I changed the title for this to match.

What filesystem type is /media/eric?

Revision history for this message
Eric Koski (ekoski1) wrote : Re: [Bug 1809851] Re: duplicity remove-all-but-n-full Fails with TypeError: an integer is required

/media/eric/Lnx_bk0 is an ext4 partition on a Western Digital MyBook
external USB drive.

Hope this helps.

Eric

On Thu, Dec 27, 2018 at 11:20 AM Kenneth Loafman <email address hidden>
wrote:

> The temporary file error is a known, but hard to repeat bug. It's not
> the cause.
>
> The problem is the TypeError at the end, os.chmod(file, mode) requires
> an integer for mode.
>
> I changed the title for this to match.
>
> What filesystem type is /media/eric?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1809851
>
> Title:
> duplicity remove-all-but-n-full Fails with TypeError: an integer is
> required
>
> Status in Duplicity:
> New
>
> Bug description:
> duplicity 0.7.17
> Python 2.7.15rc1
> Ubuntu 18.04LTS
> ext4 filesystem
>
> command-line output:
>
> $ duplicity remove-all-but-n-full 1 --force file:///media/eric/Lnx_bk0
> Synchronizing remote metadata to local cache...
> GnuPG passphrase for decryption:
> Copying duplicity-full-signatures.20171002T012817Z.sigtar.gpg to local
> cache.
> Copying duplicity-full-signatures.20180102T070445Z.sigtar.gpg to local
> cache.
> Copying duplicity-full-signatures.20180405T080021Z.sigtar.gpg to local
> cache.
> Cleanup of temporary directory /tmp/duplicity-j3izoa-tempdir failed -
> this is probably a bug.
> Traceback (innermost last):
> File "/usr/bin/duplicity", line 1555, in <module>
> with_tempdir(main)
> File "/usr/bin/duplicity", line 1541, in with_tempdir
> fn()
> File "/usr/bin/duplicity", line 1393, in main
> do_backup(action)
> File "/usr/bin/duplicity", line 1414, in do_backup
> sync_archive()
> File "/usr/bin/duplicity", line 1204, in sync_archive
> copy_to_local(fn)
> File "/usr/bin/duplicity", line 1154, in copy_to_local
> tdp.move(globals.archive_dir.append(loc_name))
> File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 643,
> in move
> self.copy(new_path)
> File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 463,
> in copy
> self.copy_attribs(other)
> File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 470,
> in copy_attribs
> util.maybe_ignore_errors(lambda: os.chmod(other.name, self.mode))
> File "/usr/lib/python2.7/dist-packages/duplicity/util.py", line 92, in
> maybe_ignore_errors
> return fn()
> File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 470,
> in <lambda>
> util.maybe_ignore_errors(lambda: os.chmod(other.name, self.mode))
> TypeError: an integer is required
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1809851/+subscriptions
>

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.