Xilonz / trellis-backup-role

Ansible backup role to use with trellis. Works with s3, FTP, local disk...
63 stars 9 forks source link

Duply TypeError #34

Closed imonteiro closed 3 years ago

imonteiro commented 3 years ago

When I run this command: sudo duply /etc/duply/domain.com_database/ backup

I get this error: Attempt 1 failed. TypeError: list_file_names() takes from 4 to 6 positional arguments but 7 were given

Here is the full log:

Start duply v2.2, time is 2020-12-13 17:09:08.
Using profile '/etc/duply/domain.com_database'.
Using installed duplicity version 0.8.12, python 3.8.5 (/usr/bin/python3), gpg 2.2.19 (Home: /root/.gnupg), awk 'GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)', grep 'grep (GNU grep) 3.4', bash '5.0.17(1)-release (x86_64-pc-linux-gnu)'.
Checking TEMP_DIR '/tmp' is a folder and writable (OK)
Test - En/Decryption skipped. (GPG disabled)

--- Start running command PRE at 17:09:08.691 ---
Running '/etc/duply/domain.com_database/pre' - OK
--- Finished state OK at 17:09:08.913 - Runtime 00:00:00.222 ---

--- Start running command BKP at 17:09:08.960 ---
Reading globbing filelist /etc/duply/domain.com_database/exclude
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Last full backup is too old, forcing full backup
Attempt 1 failed. TypeError: list_file_names() takes from 4 to 6 positional arguments but 7 were given
Attempt 2 failed. TypeError: list_file_names() takes from 4 to 6 positional arguments but 7 were given
Attempt 3 failed. TypeError: list_file_names() takes from 4 to 6 positional arguments but 7 were given
Attempt 4 failed. TypeError: list_file_names() takes from 4 to 6 positional arguments but 7 were given
Attempt 5 failed. TypeError: list_file_names() takes from 4 to 6 positional arguments but 7 were given
--------------[ Backup Statistics ]--------------
StartTime 1607879351.00 (Sun Dec 13 17:09:10 2020)
EndTime 1607879351.21 (Sun Dec 13 17:09:11 2020)
ElapsedTime 0.22 (0.22 seconds)
SourceFiles 1
SourceFileSize 6301933 (6.01 MB)
NewFiles 1
NewFileSize 6301933 (6.01 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 1
RawDeltaSize 6301933 (6.01 MB)
TotalDestinationSizeChange 1231613 (1.17 MB)
Errors 0
-------------------------------------------------

--- Finished state OK at 17:11:18.453 - Runtime 00:02:09.493 ---

--- Start running command POST at 17:11:18.515 ---
Running '/etc/duply/domain.com_database/post' - OK
--- Finished state OK at 17:11:18.544 - Runtime 00:00:00.029 ---

I'm doing something wrong or it's a bug?

Thanks

rutger1140 commented 3 years ago

Hi @imonteiro,

Did you manage to solve this? This looks like a configuration error in duply to me. I don't think this has anything to do with the trellis-backup-role.

rutger1140 commented 3 years ago

Closing due to inactivity.