Page 1 of 1

Trouble with Mageia Control Center

PostPosted: Feb 26th, '16, 15:55
by gerx
Hi, I have problem with launching Mageia Control Center. When i try to launch from KDE icon I asked to enter the password but nothing happens. When i try to run mcc from console as user it writes:
"No protocol specified
Cannot be run in console mode."
Only can launch as root in console

Re: Trouble with Mageia Control Center

PostPosted: Feb 26th, '16, 18:24
by boombaby
See; now I didn't know you could do that!

When I typed mcc in terminal, it prompted for password, then I got the full-blown Mageia Control Centre GUI to work with. Amazing!

When I exited it, and was left back at the terminal, the following lines were after my command entry...

"/usr/sbin/drakmenustyle" is not executable [Menus] at /usr/libexec/drakconf line 831.
"/usr/sbin/drakbackup" is not executable [Backups] at /usr/libexec/drakconf line 831.
"/usr/sbin/tomoyo-gui" is not executable [Tomoyo Policy] at /usr/libexec/drakconf line 831.

Still got the MCC up though.

This is just FYI.

Re: Trouble with Mageia Control Center

PostPosted: Feb 26th, '16, 19:34
by doktor5000
@gerx: What Mageia version is that, and did you install updates yet? And please provide the output of the following commands, run as your regular user in a terminal:

Code: Select all
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY


and as root from:

Code: Select all
systemctl status polkit.service -a

Re: Trouble with Mageia Control Center

PostPosted: Feb 29th, '16, 08:07
by gerx
@doctor5000
Sorry for delay. Just updated but nothng new happened. I'm using Mageia 5.

And output of yours commands

Code: Select all
dima@linux:~$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=dima
Timestamp=Пн 2016-02-29 09:00:18 MSK
TimestampMonotonic=20929940
VTNr=1
Display=:0
Remote=no
Service=kdm-np
Scope=session-c1.scope
Leader=1139
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
dima@linux:~$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   1838     1  0 09:00 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
dima      2577     1  0 09:01 ?        00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
dima@linux:~$ pkexec whoami
root
dima@linux:~$ echo $DISPLAY
:0
dima@linux:~$ sudo systemctl status polkit.service -a
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since Пн 2016-02-29 09:00:31 MSK; 3min 36s ago
     Docs: man:polkit(8)
 Main PID: 1838 (polkitd)
   CGroup: /system.slice/polkit.service
           └─1838 /usr/lib/polkit-1/polkitd --no-debug

фев 29 09:00:30 linux.local polkitd[1838]: Started polkitd version 0.113
фев 29 09:00:31 linux.local polkitd[1838]: Loading rules from directory /etc/polkit-1/rules.d
фев 29 09:00:31 linux.local polkitd[1838]: Loading rules from directory /usr/share/polkit-1/rules.d
фев 29 09:00:31 linux.local polkitd[1838]: Finished loading, compiling and executing 3 rules
фев 29 09:00:31 linux.local polkitd[1838]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
фев 29 09:01:21 linux.local polkitd[1838]: Registered Authentication Agent for unix-session:c1 (system bus name :1.51 [/usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
фев 29 09:02:04 linux.local polkitd[1838]: Operator of unix-session:c1 successfully authenticated as unix-user:dima to gain TEMPORARY authorization for action org.mageia.drakconf.pkexec.run for unix-process:2770:9783 [/usr/bin/perl /usr/bin/drakconf] (owned by unix-user:dima)
фев 29 09:03:41 linux.local polkitd[1838]: Operator of unix-session:c1 successfully authenticated as unix-user:dima to gain ONE-SHOT autho

Re: Trouble with Mageia Control Center

PostPosted: Feb 29th, '16, 20:11
by doktor5000
Looks all good. What happens if you run the following as normal user?
Code: Select all
/usr/bin/pkexec /usr/libexec/drakconf
/usr/bin/pkexec /usr/libexec/drakxconf

Re: Trouble with Mageia Control Center

PostPosted: Mar 3rd, '16, 07:53
by gerx
if I ran drakconf it writes again: "No protocol specified
Cannot be run in console mode."
If I ran drakxconf it asks password and opens simple wndow of mcc in console.

Re: Trouble with Mageia Control Center

PostPosted: Mar 3rd, '16, 16:28
by doktor5000
Something seems broken about your X session. Did you maybe change your hostname recently and didn't do a reboot afterwards? Does it happen after a fresh boot, too?
And please show the output of the following commands run as regular user?

Code: Select all
xauth info
xauth list


And please copy&paste the complete command and it's output including the prompt, otherwise you may omit essential information.

Re: Trouble with Mageia Control Center

PostPosted: Mar 4th, '16, 07:40
by gerx
Nope, i didn't change it. Maybe it connected somehow but my colleague had a problem with networks so he turned off firewall and changed iptables file
And the output of the commands
Code: Select all
dima@linux:~$[b]xauth info[/b]
Authority file:       /home/dima/.Xauthority
File new:             no
File locked:          no
Number of entries:    2
Changes honored:      yes
Changes made:         no
Current input:        (argv):1
dima@linux:~$ [b]xauth list[/b]
localhost.localdomain/unix:0  MIT-MAGIC-COOKIE-1  05eb4de7e31be5b2902884a2ea6ba407
localhost/unix:0  MIT-MAGIC-COOKIE-1  4c3b0ed4c3e4b7ae94168aa37e33c88f

activating mcc desktop icon

PostPosted: Mar 10th, '16, 21:09
by gch3
Finally got updates working again. Had to wipe out mirror database and rebuild it using http instead of ftp. Works now but go figure why FTP won't work. Still have problem with MCC gui icon. No response when clicking on it but I can go into a terminal and type mcc and the graphical comes up and works. What do I need to check to fix this? Everything else works off the Desktop.

Re: activating mcc desktop icon

PostPosted: Mar 12th, '16, 15:38
by doktor5000
What Mageia version is that, and did you install updates yet? And please provide the output of the following commands, run as your regular user in a terminal:
Code: Select all
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY

and as root from:
Code: Select all
systemctl status polkit.service -a

Re: activating mcc desktop icon

PostPosted: Mar 13th, '16, 03:13
by gch3
bash-4.3$ loginctl show-session $XDG_SESSION_ID
Code: Select all
Id=c1
Name=gch3
Timestamp=Sat 2016-03-12 18:17:13 EST
TimestampMonotonic=130267585
VTNr=1
Display=:0
Remote=no
Service=kdm
Scope=session-c1.scope
Leader=3513
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
bash-4.3$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   2223     1  0 18:15 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
gch3      4727     1  0 18:17 ?        00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
bash-4.3$ pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY



● polkit.service - Authorization Manager
Code: Select all
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since Sat 2016-03-12 18:15:59 EST; 1h 54min ago
     Docs: man:polkit(8)
 Main PID: 2223 (polkitd)
   CGroup: /system.slice/polkit.service
           └─2223 /usr/lib/polkit-1/polkitd --no-debug

Mar 12 18:15:58 localhost polkitd[2223]: Started polkitd version 0.113
Mar 12 18:15:59 localhost polkitd[2223]: Loading rules from directory /etc/polkit-1/rules.d
Mar 12 18:15:59 localhost polkitd[2223]: Loading rules from directory /usr/share/polkit-1/rules.d
Mar 12 18:15:59 localhost polkitd[2223]: Finished loading, compiling and executing 3 rules
Mar 12 18:15:59 localhost polkitd[2223]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Mar 12 18:17:43 localhost polkitd[2223]: Registered Authentication Agent for unix-session:c1 (system bus name :1.44 [/usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)


Mageia 5 4.1.15 updates have all been installed.

Re: activating mcc desktop icon

PostPosted: Mar 13th, '16, 03:31
by Ken-Bergen
The " you need to enter your root password when asked by the authentication dialog" is just a comment so do
Code: Select all
pkexec whoami

then
Code: Select all
echo $DISPLAY

Re: activating mcc desktop icon

PostPosted: Mar 13th, '16, 03:49
by gch3
Code: Select all
[root@localhost gch3]# pkexec whoami
root
[root@localhost gch3]# echo $DISPLAY
:0

Re: Trouble with Mageia Control Center

PostPosted: Mar 13th, '16, 13:51
by doktor5000
Merged your thread into an existing one for the same issue, in case you wonder.

Output looks fine so far, for now I've no idea why it doesn't start. I'll check if there's a bug for that already reported later.

Re: Trouble with Mageia Control Center

PostPosted: Mar 26th, '16, 02:26
by DiBosco
Type this in the command line:

xhost +local:root

I honestly can't remember whether this has to be done as user or root. Try as user first and if that doesn't work, do it as root. That will fix it. I had exactly the same problem and it took a lot of Googling to find someone with a fix. I've since reinstalled due to completely different reasons and that will also solve it.

Sadly, you'll have to do it every time you reboot. I guess you might be able to run it as a startup script somehow.

Re: Trouble with Mageia Control Center

PostPosted: Mar 28th, '16, 08:59
by gerx
Thanks!

Re: Trouble with Mageia Control Center

PostPosted: May 9th, '16, 11:17
by doktor5000
For what it's worth, I've mentioned this issue in the relevant bug report: https://bugs.mageia.org/show_bug.cgi?id=16764

Re: Trouble with Mageia Control Center

PostPosted: Oct 8th, '16, 23:40
by mrigs
DiBosco wrote:Type this in the command line:

xhost +local:root

I honestly can't remember whether this has to be done as user or root. Try as user first and if that doesn't work, do it as root. That will fix it. I had exactly the same problem and it took a lot of Googling to find someone with a fix. I've since reinstalled due to completely different reasons and that will also solve it.

Sadly, you'll have to do it every time you reboot. I guess you might be able to run it as a startup script somehow.


I have recently started facing the same issue. And this was resolved using this solution, running the command as a regular user. Thank you, DiBosco.