Bug 21297 - backup-manager is broken
Summary: backup-manager is broken
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory MGA6-32-OK MGA6-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2017-07-19 20:36 CEST by Guillaume Rousse
Modified: 2017-07-28 20:13 CEST (History)
2 users (show)

See Also:
Source RPM: backup-manager
CVE:
Status comment:


Attachments

Description Guillaume Rousse 2017-07-19 20:36:41 CEST
backup-manager package shipped with mageia 6 is plainly broken, as an unoticed change in the upstream Makefile results in build root directory path being included in resulting binary.

Just try to run it:
[root@host ~]## backup-manager
/usr/sbin/backup-manager: line 62: /home/iurt/rpmbuild/BUILDROOT/backup-manager-0.7.13-1.mga6.i386//usr/lib/backup-manager/externals.sh: No such file or directory

Soon-to-be-uploaded backup-manager-0.7.13-1.1.mga6, in updates_testing, fixes the issue.

Suggested advisory:
backup-manager package shipped with mageia 6 (backup-manager-0.7.13-1.mga6) is plainly broken, due to a build issue. Updated package (backup-manager-0.7.13-1.1.mga6) fixes the issue.
Comment 1 Herman Viaene 2017-07-25 12:08:31 CEST
I can confirm the problem with the current version, but testing not yet updated with new one??

CC: (none) => herman.viaene

Comment 2 Manuel Hiebel 2017-07-25 12:40:26 CEST
Yes, Guillaume you are now allowed to push in testing :)
Comment 3 Herman Viaene 2017-07-26 10:57:42 CEST
MGA6-32 on Asus A6000VM MATE
No installation issues.
But launching as root at CLI and trying to find some process:
# backup-manager
[root@mach6 ~]# ps -ef | grep back
root        16     2  0 12:15 ?        00:00:00 [writeback]
root      2856     2  0 12:16 ?        00:00:00 [NFSv4 callback]
root     17145 15768  0 12:49 pts/1    00:00:00 grep --color back

As you see, the command does not return anything, and no process found, nothing happens on the laptop.
And
# journalctl -b | grep backup
jul 26 12:47:20 mach6.hviaene.thuis [RPM][15433]: erase backup-manager-0.7.13-1.mga6.noarch: success
jul 26 12:47:23 mach6.hviaene.thuis [RPM][15433]: install backup-manager-0.7.13-1.1.mga6.noarch: success
jul 26 12:47:23 mach6.hviaene.thuis [RPM][15433]: erase backup-manager-0.7.13-1.mga6.noarch: success
jul 26 12:47:27 mach6.hviaene.thuis [RPM][15433]: install backup-manager-0.7.13-1.1.mga6.noarch: success
Why the installation is shown twice I have no idea, but nothing else has been logged.
Comment 4 Guillaume Rousse 2017-07-26 13:38:23 CEST
if the command returns, it means the program finished its execution. Uunless it is running in the background as a daemon, which is not the case here. 

In order to test it, you'd rather check the expected result instead of assuming anything from the output: given default configuration, it should backup the content of /etc and /boot directories as .tar.gz files under /var/lib/backup-manager.
Comment 5 Herman Viaene 2017-07-27 20:07:27 CEST
@ Guillaume
Found files as indicated plus todays backups. Did some reading on backupmanager and deleted its file from /etc/cron.daily to avoid accumulating backups on this small system.
But correct working demonstrated hereby.

Whiteboard: (none) => MGA6-32-OK

Comment 6 Rémi Verschelde 2017-07-28 08:59:12 CEST
Bug confirmed, and the update candidate fixes it on Mageia 6 x86_64.

Whiteboard: MGA6-32-OK => MGA6-32-OK MGA6-64-OK

Rémi Verschelde 2017-07-28 09:01:40 CEST

Whiteboard: MGA6-32-OK MGA6-64-OK => advisory MGA6-32-OK MGA6-64-OK
Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 7 Mageia Robot 2017-07-28 20:13:13 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2017-0043.html

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


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