Bug 26534 - deja-dup backup fails due to an unknown error
Summary: deja-dup backup fails due to an unknown error
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-04-24 16:15 CEST by Daniel BEZIVIN
Modified: 2020-05-05 14:22 CEST (History)
7 users (show)

See Also:
Source RPM: deja-dup-40.0-2.mga7.x86_64.rpm
CVE:
Status comment:


Attachments

Description Daniel BEZIVIN 2020-04-24 16:15:45 CEST
Description of problem: Backup stops with a message : "backup fails , due to an unknown error"


Version-Release number of selected component (if applicable):deja-dup-40.0.2

Select a


Steps to Reproduce:
1.Select a distant device as storage location (in my case smb://Livebox/USB_102) 
2.Launch the backup
3.In many cases, the program fails 

I have foud on rmpfind.net, a newer version (OpenSuse) 	deja-dup-40.6-2.1.x86_64.rpm , which works fine on my computer.

Is it possible to update dejà-dup to this version in Mageia 7.1 ?
Thanks for all.
Jani Välimaa 2020-04-24 17:26:00 CEST

Summary: This version does't work properly => deja-dup backup fails due to an unknown error

Comment 1 Lewis Smith 2020-04-25 09:41:16 CEST
Thank you Daniel for reporting this problem, and this:-
> a newer version deja-dup-40.6-2.1.x86_64.rpm, which works fine on my computer
This seems very positive. 40.0 is by now very dated.
We already have version 40.6 in Cauldron, thanks to Shlomi. Can this be pushed to Mageia 7?
Assigning to Shlomi, CC'ing DavidG who has also maintained it.

Assignee: bugsquad => shlomif
CC: (none) => geiger.david68210

Comment 2 papoteur 2020-04-25 12:02:56 CEST
Hello,
More information about the error:
https://www.mageialinux-online.org/forum/topic-27495-1+erreur-sauvegarde-avec-deja-dup.php
It seems that a first error occurs which has a message in French and a second one occurs when trying to display it because it is expected that the message is in Ascii, not unicode.
Is the cauldron release with Python 3?

CC: (none) => yves.brungard_mageia

Comment 3 David GEIGER 2020-04-25 12:11:46 CEST
Yes Cauldron package uses now python 3.
Comment 4 David GEIGER 2020-04-25 12:17:57 CEST
So you can test the upcoming deja-dup-40.6-1.mga7 in Core/Updates_testing repo!
Comment 5 Daniel BEZIVIN 2020-04-25 16:03:13 CEST
Hello David,
deja-dup-40.6-1.mga7 installed and launched, it works fine.
Thank you .
Comment 6 papoteur 2020-04-25 19:01:20 CEST
I think that the error is in duplicity, which should also be updated.
Comment 7 David GEIGER 2020-04-26 19:04:24 CEST
I have also upgraded duplicity and switch it also to python3 (duplicity-0.8.12.1612-1.mga7) in Core/Updates_testing repo!
Comment 8 Daniel BEZIVIN 2020-04-26 20:49:22 CEST
OK  i will update duplicity and i will tell you about how dejà-dup works after that
Thanks
Comment 9 Daniel BEZIVIN 2020-04-28 09:34:18 CEST
Hi David,
duplicity-0.8.12.1612-1.mga7 installed today and deja-dup works fine. 
But i wonder if Python3 is used :

$ locate duplicity/backend.py
/usr/lib64/python2.7/site-packages/duplicity/backend.py
/usr/lib64/python2.7/site-packages/duplicity/backend.py.sav
/usr/lib64/python2.7/site-packages/duplicity/backend.pyc
/usr/lib64/python2.7/site-packages/duplicity/backend.pyo
Comment 10 Daniel BEZIVIN 2020-04-28 10:08:40 CEST
I don't know why the command "locate" give that result, but i have verified with dolphin, all files backend.* are in /usr/lib64/python3.7/site-packages/duplicity.
All is ok
Thanks
Comment 11 papoteur 2020-04-28 10:30:14 CEST
OK, fine,
locate works with a DB cache, which should be updated with:
updatedb
command. This explains why.
Comment 12 David GEIGER 2020-04-28 11:23:12 CEST
Assigning to QA now,


Advisory:
========================

Our current deja-dup package does not work properly, backup stops with a message : "backup fails , due to an unknown error". So this update fixes this issue updating deja-dup and duplicity to the latest upstream release and also switch them to python 3.

========================

Packages in 7/core/updates_testing:
========================
deja-dup-40.6-1.mga7.x86_64.rpm
deja-dup-40.6-1.mga7.i586.rpm
duplicity-0.8.12.1612-1.mga7.x86_64.rpm
duplicity-0.8.12.1612-1.mga7.i586.rpm

Source RPM: 
========================
deja-dup-40.6-1.mga7.src.rpm
duplicity-0.8.12.1612-1.mga7.src.rpm

Assignee: shlomif => qa-bugs

Comment 13 Herman Viaene 2020-04-28 16:12:53 CEST
MGA7-64 Plasma on Lenovo B50
No installation issues.
I don't get it with ths tool.
I have NFS shares mounted from my desktop to this laptop. When I try to use this as storage location, I run into errors "no mount point".
I then went to use "Local folders" and point this to the mounted NFS share (like /mnt/Documents), and do the backup, I see the files going by in the "Details" section and "Verifying", but nothing is stored there.
The tool however knows that something has been done, because when I do it the second time, it just passes on.
When I doa restore, to another folder, I see there that it restores in this folder the full path like /home/tester7/.....
So I wonder where the backup went.

CC: (none) => herman.viaene

Comment 14 Herman Viaene 2020-04-30 14:10:22 CEST
I found a set of duplicity files on the NFS server, but not on the folder I specified, but one level above. That will be the backup files.
So, to conclude, the thing seems to sort of doing what it should or could do, but I'm not a fan of it.
Leaving to people with more knowledge of this thng to OK it, I will not object.
Comment 15 Len Lawrence 2020-05-01 18:09:41 CEST
@Herman:
Thought I would follow this up without updating.  I found the interface slightly confusing but managed to backup a folder from the home directory onto a USB  drive.  There was no "backup fails ..." message.  It looked complete on the backup device with volume difftar files and one sigtar file.

Deleted one file from the source directory and tried restore which looked like it might be working but gave no confirmation.  Anyway, the deleted file did not reappear.  Your tests look OK so I went ahead with the update.  The python3 switch is confirmed.

Going back to the first backup checking the manifest indicated that the backup was performed in sections approximately 52 MB in size and accounted for the whole directory.  It was detected by the new version of deja-dup but this time the restore function came up with the Restore to Where? window, which was not seen  before.  Restore worked perfectly apart from a few files which did not have write permission and the deleted file reappeared.

So this confirms your OK.  Thanks Herman.

CC: (none) => tarazed25

Len Lawrence 2020-05-01 18:10:19 CEST

Whiteboard: (none) => MGA7-64-OK

Comment 16 Thomas Andrews 2020-05-02 14:25:18 CEST
Looks good to me, guys. Validating. Advisory in Comment 12.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Thomas Backlund 2020-05-05 12:57:21 CEST

Keywords: (none) => advisory
CC: (none) => tmb

Comment 17 Mageia Robot 2020-05-05 14:22:08 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0115.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.