Bug 2001555 - Malcontent can't be used due to AccountsService
Summary: Malcontent can't be used due to AccountsService
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: malcontent
Version: 34
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-06 11:36 UTC by Kolja Lampe
Modified: 2021-09-17 18:08 UTC (History)
1 user (show)

Fixed In Version: malcontent-0.10.1-2.fc36 malcontent-0.10.0-3.fc34
Clone Of:
Environment:
Last Closed: 2021-09-09 09:53:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kolja Lampe 2021-09-06 11:36:39 UTC
Description of problem:

After installing malcontent from the repo, I can start it, but it shows an error: "Please make sure that the AccountsService is installed and enabled."


Steps to Reproduce:
- Fresh fedora 34 install
- Install "Parental control" from Gnome Software
- Start "Parental control"
- You should run into the problem

Actual results:
An error showing "Please make sure that the AccountsService is installed and enabled."

I'm not sure if it's installed or just disabled.


Expected results:
Being able to access the UI and use it.

Comment 1 Bastien Nocera 2021-09-06 11:54:57 UTC
malcontent is only available as a package in Fedora 34 for the benefit of OS developers.

Packages started being built with parental controls integration for Fedora 35. See:
https://pagure.io/fedora-workstation/issue/186

(I tested your reproducer steps on Fedora 34 Workstation installation, and it works fine,
make sure that accountsservice is actually installed is my guess, and try to reboot
if it was installed).

Comment 2 Kolja Lampe 2021-09-06 15:23:02 UTC
So I need to install via commandline (dnf) and can't install via gnome software? And the correct name is 'accountsservice'?

Comment 3 Bastien Nocera 2021-09-06 15:42:59 UTC
The name of the package is accountsservice. If it's not installed, and installing it fixes the problem, I can add a package dependency.

I was just letting you know that the combination of user environments and setup you're using might not work at all for parental controls.

Comment 4 Kolja Lampe 2021-09-06 21:32:06 UTC
So, I tried to install it, but it was already installed.

I ran "systemctl enable accounts-daemon", but I should have checked if that was enabled before.

Restarted, just in case, but the application still doesn't work and shows the error.

Comment 5 Kolja Lampe 2021-09-08 15:53:27 UTC
It seems to be due to the policy "/usr/share/polkit-1/actions/org.freedesktop.MalcontentControl.policy" not being on the system, I assume that's something, that will be added in f35 and that we can't deploy via the package manager to f34?

We figured it out here
https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/42#note_1054096

Comment 6 Bastien Nocera 2021-09-08 18:22:25 UTC
(In reply to Kolja Lampe from comment #5)
> It seems to be due to the policy
> "/usr/share/polkit-1/actions/org.freedesktop.MalcontentControl.policy" not
> being on the system, I assume that's something, that will be added in f35
> and that we can't deploy via the package manager to f34?

$ rpm -qf /usr/share/polkit-1/actions/org.freedesktop.MalcontentControl.policy
malcontent-0.10.0-2.fc34.x86_64

It's part of the malcontent package. Looks like I need to fix a few packaging bugs here, as malcontent-control doesn't require malcontent.

I'll fix this up tomorrow, thanks for following up, much appreciated.

Comment 7 Fedora Update System 2021-09-09 09:27:41 UTC
FEDORA-2021-101626ff7b has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-101626ff7b

Comment 8 Fedora Update System 2021-09-09 09:49:32 UTC
FEDORA-2021-b413d29ceb has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b413d29ceb

Comment 9 Fedora Update System 2021-09-09 09:53:02 UTC
FEDORA-2021-b413d29ceb has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2021-09-09 17:39:00 UTC
FEDORA-2021-101626ff7b has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-101626ff7b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-101626ff7b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-09-16 19:14:27 UTC
FEDORA-2021-101626ff7b has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Kolja Lampe 2021-09-16 21:48:55 UTC
Hey,

would I need to do anything more then update via Gnome Software or `sudo dnf update`?
I've done both, but the policy file hasn't shown up and malcontent is not working either.

Comment 13 Bastien Nocera 2021-09-17 09:37:24 UTC
Did you check that the version matched? There's explanations on how to install the update in comment 10.

If you just ran "dnf update" 2 hours after the package was made "stable" then it's not going to work, as those packages will probably take about a day to reach your local mirror. Again, comment 10 has the instructions.

The file is definitely there in the package:
https://koji.fedoraproject.org/koji/rpminfo?rpmID=27738097

Comment 14 Kolja Lampe 2021-09-17 18:08:44 UTC
I'm sorry. I should have known that the mirrors needed to sync first. Thanks for explaining.

The problem is solved and everything seems to work fine.


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