Mageia 5 polkit and MCC error

Well it is a family: Mandriva Mageia ROSA Unity PCLOS. Brothers and sisters living together in perfect harmony - so it deserved som space of its own.

Moderators: b1o, jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Mageia 5 polkit and MCC error

Postby viking60 » 22 Sep 2015, 20:03

:S Jkerr what do you make of this one?
:A
http://showterm.io/e16e57debafb83d436eb8
(Be patient the good stuff is at the end)
Upgraded in VB with openbox running as the only DE. My Polkit is mate-polkit and I can restart it as often as I want without getting the MCC. I added My user to wheel with

Code: Select all

usermod -G wheel viking

I know this is a bug where you are the lead violinist in the orchestra :boohoo: -and I only have it in VB; on my Mother's hardware everything is peachy.

Do you have some profound words for me here?
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

jkerr82508
Guru-Berserk
Posts: 211
Joined: 16 Oct 2010, 21:45
Location: Fife, Scotland

Re: Mageia 5 polkit and MCC error

Postby jkerr82508 » 22 Sep 2015, 21:15

There is a problem with polkit in mga5, but no-one seems to know what exactly it is. It manifests itself in different ways and many users do not experience it at all.

The first problem was that polkit was not restarted after being updated. That was easily remedied, but other problems seem to have no easy fix. All desktops seem to be affected, but in different ways. A simple search of Mageia's bugzilla (https://bugs.mageia.org/) for "polkit" lists the ones that have been reported. You may find your situation covered in one of those.

Colin Guthrie seems to be the guru who has the best handle on polkit, but he's on sabbatical at present. When he returns to active participation we may get a solution, if not earlier.

Sorry, not to have any words of wisdom. As I get older that seems to be the case more and more often. :evil:

Jim

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Mageia 5 polkit and MCC error

Postby dedanna1029 » 07 Oct 2015, 08:01

What it was doing to me after Mageia 5 installation, was when I logged into the desktop, I would have to authenticate as user via an MCC-style authentication dialog popup, and a blank untitled leafpad editor would also pop up.

What I did, was take polkit out of session startup, and rebooted. This obviously stopped the MCC-style popup to authenticate, and also stopped leafpad editor from popping up (I'm on XFCE4 desktop).

I re-enabled polkit in session startup, and haven't had an issue since with it.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Mageia 5 polkit and MCC error

Postby viking60 » 07 Oct 2015, 19:21

Seems to be something different.
In the bug report there is this theory about online and active status

Code: Select all

grep -i state /run/systemd/users/$(id -u)

shows active in my case the gurus at Mageia say that the problem occurs when it shows online instead of active - not the case here. :snooty:
My MCC does not fire:

Code: Select all

mcc
==== AUTHENTICATING FOR org.mageia.drakconf.pkexec.run ===
Authentication is required to run Mageia Control Center GUI
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.


Others have this problem and this message but it seems to be linked to that online status thing - which does not apply in my case.

It is clearly a polkit thing though.....

So I decided to go about it Berserk style +1

Code: Select all

urpme polkit

This wants to remove some 400 files including xfce4 - but I don't care :berserkf

Then I logged out and back in to a very basic X environment with two white terminals.
I re-installed polkit

Code: Select all

urpmi polkit

Then I installed xfce4 again:

Code: Select all

urpmi task xfce4


Then I started it in the terminal:

Code: Select all

startxfce4

And the Mageia startup thing appeared and here I could also pick "Install and remove software".
I was nicely prompted for the password and...
:drummer
:drummer
The MCC was there :jackpot

From there I installed lxdm with the Mageia theme for good measure. After a reboot it all works - Mageia is slower than a turtle on pot though - as in takes ages to start :think:

Edit:
I just remembered that I did not use xfce4 ion this Mageia install - only Openbox but it does not matter Drakconf works just fine in Openbox too.
( installed gksu-polkit to make autostarters for Drakconf)
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Mageia 5 polkit and MCC error

Postby dedanna1029 » 07 Oct 2015, 21:06

Ah, I had that at very first, but after a couple of reboots it somehow seemed to sort itself?
As jkerr said, it is different for different people.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Mageia 5 polkit and MCC error

Postby viking60 » 07 Oct 2015, 21:11

Yup
The slowlieness is bad though

Code: Select all

[thomas@localhost ~]$ sudo systemd-analyze blame
         32.610s ntpdate.service
         17.631s shorewall6.service
         10.817s mysqld.service


That ntpdate service is killin me/Mageia

Strange behaviour - I rebooted and checked with the command above.
The I ran:

Code: Select all

sudo systemd-analyze
Bootup is not yet finished. Please try again later.
:shock:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Mageia 5 polkit and MCC error

Postby dedanna1029 » 07 Oct 2015, 21:16

Aye, that is bad. It's been pretty snappy for me though.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Mageia 5 polkit and MCC error

Postby viking60 » 07 Oct 2015, 21:19

After a while I got this:

Code: Select all

sudo systemd-analyze
Startup finished in 3.069s (kernel) + 3min 4.761s (userspace) = 3min 7.830s


Mageia is booting forever :-D

It is very nice on my mothers hardware but in VB it is not that good.
(to many surprises)
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Mageia 5 polkit and MCC error

Postby dedanna1029 » 07 Oct 2015, 22:11

Woooooooooowww... you weren't kidding on slow...
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “The Mandriva family”