[SOLVED] No access to MCC from GUI - polkit update to 0.113

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jan 11th, '16, 20:58

pkexec whoami
root

I did have to enter my root password in the pop-up dialogue box :)

FWIW everything is taking AGES to start up. Even programs like kwrite and Dolphin are taking 20 or 30s to start!
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby doktor5000 » Jan 11th, '16, 21:10

So polkit is working just fine.

What is the output/result if you run as normal user in a terminal

Code: Select all
echo $DISPLAY
drakconf
pkexec /usr/libexec/drakconf
pkexec /usr/libexec/drakxconf
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jan 11th, '16, 21:15

Code: Select all
drakconf
No protocol specified
Cannot be run in console mode.



Code: Select all
pkexec /usr/libexec/drakconf
No protocol specified
Cannot be run in console mode.


In both those cases it comes up with a GUI style password dialogue pop-up box asking for the root password which I enter.

if I run:
Code: Select all
pkexec /usr/libexec/drakxconf


It launches the password dialogue box asking for root password, I enter that and it opens up a text based program that calls itself Control Centre, list options such as 3D Desktop Effects, Auto install, Bootloader etc. I can go into those options and it brings up text submenus.
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby doktor5000 » Jan 11th, '16, 22:30

Your display env. variable is not set correctly, or something else is weird about your X server.

You also missed
doktor5000 wrote:
Code: Select all
echo $DISPLAY
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jan 11th, '16, 22:58

Ooops, apologies!

echo $DISPLAY
:0


I can't run the new packages GUI when it comes up with the white exclamation mark in the red circle either. Other things seem to work.
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jan 12th, '16, 14:02

I have done the following:

strace -o no_work.txt drakconf

And attached the no_work file. It seems to be telling me there are loads of missing files in /usr/lib/perl5 and /usr/lib/libDrakX

They are, indeed, missing. I have nothing to compare it with at the moment as I'm away from the office, only working on this laptop, does this help point out where the problem lies? Are there packages that I've somehow lost?

I tried uninstalling and reinstalling drankconf, it then also installed drakgaurd, which didn't seem to be removed when I did urpme drakconf, but that didn't help.

Does the strace thing help? :)
Attachments
no_work.txt
(106.69 KiB) Downloaded 173 times
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby doktor5000 » Jan 12th, '16, 20:59

Nope, doesn't help at all, strace will show all calls when some library is searched in all available paths.
90% of the ENOENT messages are normal and expected. See the output of
Code: Select all
strace -e file -o work.txt drakconf
from a working system attached.
working.txt
(63.57 KiB) Downloaded 207 times
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jan 12th, '16, 21:19

Bah. This is bonkers.

Is a reinstall going to be the only way round this. :(
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jan 13th, '16, 19:25

This solved it. No idea why.

xhost +local:root
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby neofutur » May 18th, '16, 22:14

same problem here, no way to access any draktools from a console, same error, no sudo or pkexec or gksudo working , until I did :

xhost +local:root

imo this is a huge bug, possibly due to an old config not migrated when I upgraded my mageia.
neofutur
 
Posts: 1
Joined: May 18th, '16, 22:07

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » May 19th, '16, 11:38

I don't think it's anything to do with upgrading. I always install from scratch (home directory aside) and it's there for me.
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby zekemx » Jun 20th, '18, 09:05

Hello..

I am using mageia 7 Cauldron and this bug is still active.

If I disconnect fron the network MCC opens just fine.. But if I connect again it stops working.

xhost +local:root seems to fix the problem too.

it is weird..

BTW.. I am using networkmanager.

Regards,
ZekeMX
zekemx
 
Posts: 22
Joined: Apr 26th, '11, 18:16

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby doktor5000 » Jun 21st, '18, 16:58

Well, nothing has changed, judging by the bugreport: https://bugs.mageia.org/show_bug.cgi?id=16764

Could be the old problem if your hostname changes, as that way the X authorisation also becomes invalid and applications need to be notified for that.
See e.g. https://bugs.mageia.org/show_bug.cgi?id=3782
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby DiBosco » Jul 24th, '19, 16:09

I'm also seeing this persistent bug on the otherwise superb Mageia 7. FWIW, I never see it on desktops, just laptops.

Edit: Reading those posts Doktor pointed to, the hostname seems to be important here. From what I can grasp, it's dependent on the hostname, which if I understand correctly changes as you change network? I suppose if you're on a desktop and that hostname doesn't change because the network doesn't change, but if you move around with the laptop, the network you're attaching to will obviously change.

So, is it possible to set a permanent hostname? Would that possibly fix it? I can see plenty of articles on line about changing this hostname without rebooting, but I can't see anything about its permanency when you move around.
DiBosco
 
Posts: 323
Joined: Aug 31st, '11, 10:22

Re: [SOLVED] No access to MCC from GUI - polkit update to 0.

Postby doktor5000 » Jul 25th, '19, 00:52

DiBosco wrote:Edit: Reading those posts Doktor pointed to, the hostname seems to be important here. From what I can grasp, it's dependent on the hostname, which if I understand correctly changes as you change network?

No, it would only do that if you never put a proper hostname in place and accept to get a hostname via DHCP.

Please read up on hostnamectl and /etc/hosts. This was also mentioned in another previous thread: viewtopic.php?f=8&t=12128
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Previous

Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron