Bug 31071 - qt-fsarchiver wants a sudo password; and does not handle future enhanced ext4
Summary: qt-fsarchiver wants a sudo password; and does not handle future enhanced ext4
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA8, IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2022-11-03 14:42 CET by Herman Viaene
Modified: 2023-08-02 21:12 CEST (History)
5 users (show)

See Also:
Source RPM: qt-fsarchiver-0.8.6.7-4.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Herman Viaene 2022-11-03 14:42:16 CET
Description of problem:
According to the github pages qt-fsarchiver and qt-fsarchiver-terminal have to be installed.
In the current M9 alpha round 2 the version of qt-fsarchive is 0.8.5.21. When launched it complains that it needs at least version 0.8.5.10 of qt-fsarchiver-terminal, but this M9 has qt-fsarchiver-terminal 0.8.6.7. qt-fsarchive goes on, but the result is that the possible partitions are not listed.

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


How reproducible:
each time

Steps to Reproduce:
1.
2.
3.
Comment 1 sturmvogel 2022-11-03 14:46:40 CET
Duplicate of bug 28791?
Comment 2 Herman Viaene 2022-11-03 15:08:18 CET
I've read this time more thoroughly that bug, and yes, I could agree it is a dup. But in Comment 16 you state:
"After removing them (and roughly fiddling with the spec file), qt-fsarchiver-0.8.6.7-1.mga8 builds and the partitions show up properly in the main window."

So why do we have now that older not working version in M9 ???????
Comment 3 sturmvogel 2022-11-03 15:24:30 CET
DavidG (maintainer) did never update the package in Mga8 or cauldron as this package is a PITA to build, see https://bugs.mageia.org/show_bug.cgi?id=28791#c3

I only fiddled around at this time to find out if it is possible to get this fine piece of software to work...it was possible, but not in a way that it could be provided as a package update. So the package maintainer should decide what to do with this piece of software...
Comment 4 sturmvogel 2022-11-03 18:08:24 CET
Aaah i found something. 
According https://svnweb.mageia.org/packages/cauldron/qt-fsarchiver/current/SPECS/qt-fsarchiver.spec?revision=1850442&view=markup
 there is a spec file for qt-fsarchiver-0.8.6.7-3 but it was never build or pushed to the mirrors. This change was done 6 months ago..

As papoteur did the last change..cc'ing him..

CC: (none) => yves.brungard_mageia

Comment 5 papoteur 2022-11-03 18:29:51 CET
It was when I was apprentice.
Thus I have now submitted to the build system.
If feedback is OK, then I will apply also the changes to Mageia 8.

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=28791

Comment 6 papoteur 2022-11-03 19:00:12 CET
qt-fsarchiver-0.8.6.7-3.mga9.x86_64.rpm is now built.
Comment 7 Lewis Smith 2022-11-03 21:12:17 CET
Thank you all for working on this. I remember the original bug about it wanting the terminal installed. I thought it had been fixed...

(In reply to papoteur from comment #5)
> Thus I have now submitted to the build system.
> If feedback is OK, then I will apply also the changes to Mageia 8.
Very encouraging. If you do end up doing the M8 fix, please note that on Bug 28791.

CC: (none) => lewyssmith

Comment 8 sturmvogel 2022-11-03 21:20:22 CET
I did a short test under a 64bit Plasma cauldron with qt-fsarchiver-0.8.6.7-3.mga9 and qt-fsarchiver-terminal-0.8.6.7-1.mga9.

The initial problems (mentioned in bug 28791) don't occur. The program starts and partitions are shown. More torough test should be done by Herman and other users who use this software regularly.

BUT: It is not possible to start qt-fsarchiver from the the application menu. It fails because of a wrong link. The application menu entry points to /usr/bin/qt-fsarchiver but the real installation is under /usr/bin/qt-fsarchiver
In the last revision of the spec file, the /usr/bin/ path was removed. This change should be reverted...
Comment 9 sturmvogel 2022-11-03 21:21:50 CET
(In reply to sturmvogel from comment #8)
> The application menu entry points to
> /usr/bin/qt-fsarchiver but the real installation is under
> /usr/bin/qt-fsarchiver
> In the last revision of the spec file, the /usr/bin/ path was removed. This
> change should be reverted...

Sorry for typo:
the real installation is under /usr/sbin/qt-fsarchiver
Comment 10 papoteur 2022-11-04 21:36:10 CET
A new build is done.
qt-fsarchiver-0.8.6.7-4.mga9
Comment 11 Lewis Smith 2022-11-06 21:06:18 CET
Installing qt-fsarchiver pulled in also fsarchiver, and qt-fsarchiver-terminal whose earlier absence (if not installed) caused it not to work. So that is fixed.

fsarchiver-0.8.6-2.mga9
qt-fsarchiver-terminal-0.8.6.7-1.mga9
qt-fsarchiver-0.8.6.7-4.mga9

Could not find it in LXDE menus anywhere, so launched it from terminal (qt-fsarchiver). It popped a sudo password box, then a note about where to read ints intructions for use, then the UI. No console errors at all.
The UI showed all partitions on the disc (except swap), which was the original complaint.

For me, this is fixed, with many thanks to all who in the past worked on it, and papoteur for this coup de grace.
Will others on this bug please try it also.
I am for closing *this* Cauldron bug Fixed.

@papoteur
 bug 28791?
Will you do M8 also? If so, please note on *that* bug. Otherwise we can close it WontFix (saying it is due with M9).
Comment 12 Lewis Smith 2022-11-06 21:13:17 CET
(In reply to Lewis Smith from comment #11)
> The UI showed all partitions on the disc (except swap), which was the
> original complaint.
I meant the original complaint was that it did *not* list the disc partitions, but does now; so that also is fixed.
Comment 13 Herman Viaene 2022-11-07 10:16:12 CET
Where can I download the new versions?
Comment 14 sturmvogel 2022-11-07 15:16:08 CET
(In reply to Herman Viaene from comment #13)
> Where can I download the new versions?
It is on the cauldron mirrors already...
Comment 15 sturmvogel 2022-11-07 15:40:08 CET
fsarchiver-0.8.6-2.mga9
qt-fsarchiver-terminal-0.8.6.7-1.mga9
qt-fsarchiver-0.8.6.7-4.mga9

64 bit Plasma Netinstall Vbox machine:

Installs fine
opens fine (from application menu and terminal)
partitions are shown



One problem (don't know if it is related to my Virtualbox install):
I can close the program just fine via the "x" in the upper right corner of the application window. But if i try to close the application via the "Exit" button in the menu bar or in the application...it completely hangs itself and gets unresponsive. Won't close...
Comment 16 Lewis Smith 2022-11-08 10:01:20 CET
qt-fsarchiver-0.8.6.7-4.mga9

Well, here on real hardware, using LxQt, I can close it no problems using:
- the window title bar menu 'X Close'
- the window title bar top-right 'X'
- the application 'Exit' menu
- the application window 'Exit' button
- Alt/F4

Oh, this time the first time I launched the application (terminal), I got:

"mkdir: cannot create directory ‘/media/sda3’: File exists"

but not subsequently. Previously, comment 11, I reported "No console errors at all". This is not something to worry about, because the application launches OK. Lots of applications put out disconcerting console messages.

> close the application via the "Exit" button in the menu bar
> or in the application...it completely hangs
This looks a VirtualBox problem. What desktop were you using? I can try that.

@Herman : your response please.
Comment 17 Herman Viaene 2022-11-08 13:25:56 CET
I only have access to QA-updates, I don't do cauldron.
Comment 18 papoteur 2022-11-08 14:06:18 CET
Hi Herman,
For Mageia 8, this is here:
bug 28791
Comment 19 Lewis Smith 2022-11-09 21:10:42 CET
That bug has some very -ve comments, which preumably apply here too.
In the light of which, I tried (Cauldron):
 $ sudo qt-fsarchiver
 [sudo] password for lewis:
after which it popped its own password dialogue, then nothing happened, the terminal went unresponsive: Ctrl/C had no effect. I could find nothing 'fsarchiver' with ps to kill, but I was able to close the terminal window.
Comment 20 Lewis Smith 2022-11-09 21:26:42 CET
If this package really gets killed off (see bug 28791), then this bug and that one should be closed 'invalid' or 'wontfix'.
Comment 21 Lewis Smith 2023-06-04 21:55:43 CEST
Trying this after a looong break:
Cauldron, LXDE, qt-fsarchiver-0.8.6.7-4.mga9

Cannot find it in menus, but:
 $ qt-fsarchiver
works. It starts by popping its sudo password dialogue, after which it displays a fully & correctly populated GUI. Looks good to me.

Can other people (esp Herman) confirm or otherwise?

Source RPM: (none) => qt-fsarchiver-0.8.6.7-4.mga9.src.rpm

Comment 22 Herman Viaene 2023-06-05 09:15:38 CEST
I have an issue here: I don't do sudo.
Even when I run the qt-fsarchiver as root, the program still asks for a sudo password, so I'm getting nowhere.
Remember: older versions did not require sudo.
Comment 23 Lewis Smith 2023-06-05 21:56:57 CEST
Lots of programs ask for this password - basically that of the user, like Debian based systems - like MCC, Isodumper. I do not know of any that actually want the *root* password.
It is true that my own user is also a sudoer; I have not tried:
If you input your *user* password, knowing you do not have sudo - does that work?
In other words can you run it as a normal user who is *not* a sudoer with the user password; or does it really insist on that user being a sudoer?

I hope it is just the wording that is bugging you.
Certainly it complains if you try to run it as root. If it asked for, and worked with, the *user* password, like other programs, would that be OK with you?
Comment 24 Herman Viaene 2023-06-06 08:53:21 CEST
No, as root or as normal user I never get beyond the message that the sudo password is not correct.
And "Lots of programs ask for this password " ???? I don't know what SW you are using, but I have yet to come across such ones?
Comment 25 Dave Hodgins 2023-06-06 20:44:14 CEST
Installing qt-fsarchiver on an i586 m9 vb guest shows the message ...
More information on package qt-fsarchiver-0.8.6.7-4.mga9.i586
Important: This application needs that you have sudo configured for your user.

So testing without sudo configured is not appropriate.

Whether sudo asks for the user password or the root password depends on how
it's configured and what groups the user is a member of.

IIRC being a member of either the wheel or adm groups will make it ask for
root password. Otherwise it asks for the user password. I may be wrong on
the details, but do know that group membership affects sudo password
requirements.

CC: (none) => davidwhodgins

Comment 26 Dave Hodgins 2023-06-06 21:21:46 CEST
On i586, with my id in the wheel group (don't forget to logout/in after making
group changes), "sudo ls" is working, qt-fsarchiver starts from konsole, and
displays the partitions ok. It also starts ok from the menu (plasma running)
from the entry under tools/system tools.

I started a test saving the / partition to /tmp and it appears to be working,
but have to cancel it due to lack of space. Exit using the X in the top
right works after confirming canceling the running backup.

On x86_64, sudo was not already installed. Selecting qt-fsarchiver in rpmdrake
selects ...
- ccrypt-1.11-1.mga9.x86_64
- fsarchiver-0.8.6-2.mga9.x86_64
- qt-fsarchiver-terminal-0.8.6.7-1.mga9.x86_64
- samba-4.17.8-1.mga9.x86_64
- sshfs-fuse-3.7.3-1.mga9.x86_64
- sshpass-1.09-2.mga9.x86_64

In the upgrade information for qt-fsarchiver it does display the message
"Important: This application needs that you have sudo configured for your user."
but it does not install sudo.

So a requires on sudo should be added.
Comment 27 Lewis Smith 2023-06-07 21:32:36 CEST
(In reply to Herman Viaene from comment #24)
> And "Lots of programs ask for this password " ???? I don't know what SW you
> are using, but I have yet to come across such ones?
You are right. I get confused by the Mageia habit of demanding the user password to get root-like privileges.

I have just tried creating a new virgin user NOT in sudoers, and could not get past the qt-fsarchiver 'sudoer' password. Certainly the user login password did not work.
I just realise that I did not use MCC for this, with its option to create a privileged user - which might suffice.

Having thought a lot about what is happening, I want to close this bug as it was raised - basically, the program did not work at all; but now it nominally does.

@Herman
Can you please raise a new bug specifically that to use qt-fsarchiver, you have to be a sudoer. This is not fair: like Herman, you may not want to be; or have to be configured as one. The program cannot currently be run as root, either.

The fix for this debatable, and I think should be in the new bug rather than appended to this more general one. I will try it as a privileged (but not sudoer) user - on the new bug.

(In reply to Dave Hodgins from comment #26)
> In the upgrade information for qt-fsarchiver it does display the message
> "Important: This application needs that you have sudo configured for your
> user."
> but it does not install sudo.
> 
> So a requires on sudo should be added.
If we get a new bug just on this issue, this requires may not be necessary.
Comment 28 Dave Hodgins 2023-06-07 22:23:21 CEST
As per comment 25, it is designed to require using sudo and the README.urpmi
file says so. Testing or expecting it to work without sudo is not appropriate.

It should have a requires for sudo, but that's all thats needed to get it to
work in m8. Note that it can not work with ext4 partitions created by m9 and
does not work in m9 because of that.
Morgan Leijström 2023-06-07 23:42:07 CEST

Summary: qt-fsarchiver does not work properly, there is an issue with versions of qt-fsarchiver and qt-fsarchiver-terminal => qt-fsarchiver have issues with versions of qt-fsarchiver, qt-fsarchiver-terminal, ext4 versions
CC: (none) => fri

Comment 29 Lewis Smith 2023-06-08 21:39:51 CEST
No-one wants a new bug, so this one mutates.
I have just had a look at the parallel bug 28791 - currently 45 comments!. And commenters adding to both bugs.

The M8 situation is I think the same as for M9, which currently comes down to:
* The bizarre password requirement, but Herman has noted how to get round the current need to be a sudoer:
 https://bugs.mageia.org/show_bug.cgi?id=28791#c42   [M8]
 https://bugs.mageia.org/show_bug.cgi?id=28791#c44   [M9]
* It does not cope with M9 ext4 partitions:
 https://bugs.mageia.org/show_bug.cgi?id=28791#c45
We have seen this restriction before, forget where. This will be serious, and is very much UPSTREAM.
* No menu entry.
Comment 30 Morgan Leijström 2023-06-11 19:10:14 CEST
https://wiki.mageia.org/en/Mageia_8_Errata#Various_software

Keywords: (none) => FOR_ERRATA9, IN_ERRATA8
Status comment: (none) => Update Errata 8 when out of testing

Comment 31 Lewis Smith 2023-06-12 20:20:56 CEST
Thanks for that Morgan.
Morgan Leijström 2023-06-15 10:36:56 CEST

Keywords: FOR_ERRATA9 => IN_ERRATA9
Status comment: Update Errata 8 when out of testing => (none)

Comment 32 Lewis Smith 2023-06-15 21:25:48 CEST
If we have to leave this open, we should not leave it with Bugsquad. Assign to pkg-bugs?
And what is the situation with fsarchiver itself?

Summary: qt-fsarchiver have issues with versions of qt-fsarchiver, qt-fsarchiver-terminal, ext4 versions => qt-fsarchiver wants a sudo password; and does not handle Mageia 9 enhanced ext4

Comment 33 Morgan Leijström 2023-06-15 22:12:31 CEST
fsarchiver works well, except for the C12 ext4 feature.

This is the best it can get :)

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

Comment 34 Jani Välimaa 2023-07-24 21:32:48 CEST
Please don't mix fsarchiver with qt-fsarchiver. qt-fsarchiver bundles its own copy of fsarchiver. I don't really even know why qt-fsarchiver requires fsarchiver.

fsarchiver supports EXT4 orphan_file since 0.8.7 [1]. Unfortunately we only have 0.8.6 ATM, but the support can be patched also to 0.8.6.

[1] https://github.com/fdupoux/fsarchiver/commit/478fa089521b76064d006dd7241dd0b1dc28d0d8

CC: (none) => jani.valimaa

Comment 35 Morgan Leijström 2023-07-24 22:30:07 CEST
Thank you for the enlightenment.

Well then, created
Bug 32137 - fsarchiver update for EXT4 orphan_file feature 

I think that if we update qt-fsarchiver, we should try to make it not require fsarchiver.  OR have it use the separate package instead of bundled.
Comment 36 Lewis Smith 2023-07-29 21:14:07 CEST
It seems strange to me that qt-fsarchiver bundles its own copy of fsarchiver, rather than using the stand-alone product.
As it stands, qt-fsarchiver certainly formally requires fsarchiver. If any follower of this bug (Herman?) uses qt-fsarchiver, and presumably has fsarchiver installed as a dependency, please try removing just pkg fsarchiver with
 rpm --nodeps ...
and see whether qt-fsarchiver still works.
It may be that qt-fsarchiver requires indirectly pkgs required directly by fsarchiver, and requires the latter to get them.

I agree with Morgan's last comment above; prefering the second option. But is that an upstream matter? If it is, we have to leave well alone, and drop if possible the requirement from qt-fsarchiver for fsarchiver.
Comment 37 papoteur 2023-07-29 22:08:18 CEST
(In reply to Morgan Leijström from comment #33)
> fsarchiver works well, except for the C12 ext4 feature.
> 
> This is the best it can get :)

We deactivated this feature from default formatting in Mageia 9, to avoid such problems. This will probably be activated in future.

Summary: qt-fsarchiver wants a sudo password; and does not handle Mageia 9 enhanced ext4 => qt-fsarchiver wants a sudo password; and does not handle future enhanced ext4

Comment 38 Dave Hodgins 2023-07-29 22:39:14 CEST
I'd forgotten that running qt-fsarchiver after using "su -" to become root
kills Xorg.

After recovering from having various gui programs such as ktorrent left
running without the gui working, I tested qt-fsarchiver again.

qt-fsarchiver does work in m8 without having fsarchiver installed. I didn't
test restoring, just archiving.
Comment 39 Jani Välimaa 2023-07-30 20:37:43 CEST
(In reply to Lewis Smith from comment #36)
> It seems strange to me that qt-fsarchiver bundles its own copy of
> fsarchiver, rather than using the stand-alone product.
> As it stands, qt-fsarchiver certainly formally requires fsarchiver. If any
> follower of this bug (Herman?) uses qt-fsarchiver, and presumably has
> fsarchiver installed as a dependency, please try removing just pkg
> fsarchiver with
>  rpm --nodeps ...
> and see whether qt-fsarchiver still works.
> It may be that qt-fsarchiver requires indirectly pkgs required directly by
> fsarchiver, and requires the latter to get them.
> 
> I agree with Morgan's last comment above; prefering the second option. But
> is that an upstream matter? If it is, we have to leave well alone, and drop
> if possible the requirement from qt-fsarchiver for fsarchiver.

fsarchiver is certainly not required by qt-fsarchiver.

qt-fsarchiver requires qt-fsarchiver-terminal which is basically a copy of fsarchiver built from bundled fsarchiver sources.
Jani Välimaa 2023-07-31 18:16:52 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32136

Comment 40 Lewis Smith 2023-08-02 21:12:09 CEST
(In reply to Jani Välimaa from comment #39)
> fsarchiver is certainly not required by qt-fsarchiver.
In theory, no. But currently:
 $ urpmq --requires qt-fsarchiver | grep fsarchiver
 fsarchiver             ***
 qt-fsarchiver-terminal
so should not the superfluous 'requires' of 'fsarchiver' by 'qt-fsarchiver' be removed?

> qt-fsarchiver-terminal which is basically a copy of fsarchiver
> built from bundled fsarchiver sources
And for qt-fsarchiver-terminal ? :
 $ urpmq --requires qt-fsarchiver-terminal | grep fsarchiver
 fsarchiver                   ???

 $ urpmq --whatrequires fsarchiver
 qt-fsarchiver          ***
 qt-fsarchiver-terminal      ???

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