[Fixed] Mageia 6 Control Center crashing.

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[Fixed] Mageia 6 Control Center crashing.

Postby nemmie » Nov 20th, '17, 01:39

After I switched over to NetworkManager, I have been having a problem with Mageia Control Center no opening or opening an then crashing.
So when I first reboot my computer I can open MCC and so some things, but soon it starts telling me when I trying to open anything inside it
just says the application crashes. Then if I close MCC and try to reopen it I get the password request screen, I type in my password hit enter
the password box goes away but no MCC. So in console, I type in MCC I get promped for the password in a gui box type in the pass. the box
closes and I get this in console
Code: Select all
mcc
Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
No protocol specified
Unable to init server: Could not connect: Connection refused
Cannot be run in console mode.

So if I run sudo MCC I get the password promp, enter my pass and I get the blue mcc in Console. some things will work, others give me
Code: Select all
sudo mcc
Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257.
No protocol specified
Unable to init server: Could not connect: Connection refused


I am at a loss for what I did wrong, can someone show me how to fix this please
Last edited by nemmie on Dec 9th, '17, 23:16, edited 1 time in total.
nemmie
 
Posts: 17
Joined: Nov 13th, '17, 17:04

Re: [HELP] Mageia 6 Control Center crashing.

Postby doktor5000 » Nov 20th, '17, 20:12

At the very least 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


This would be required once for an occurrence where MCC starts fine, and once for an occurence where it doesn't.
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: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [HELP] Mageia 6 Control Center crashing.

Postby nemmie » Nov 20th, '17, 21:29

Output of $ loginctl show-session $XDG_SESSION_ID
Code: Select all
Id=c10
User=1000
Name=nemmie
Timestamp=Sat 2017-11-18 23:31:22 EST
TimestampMonotonic=17511064296
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm
Desktop=KDE
Scope=session-c10.scope
Leader=22648
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no


Output from ps -ef|grep -v grep|grep -iE "polkit|policykit"

Code: Select all
root      1677 12859  0 14:41 pts/3    00:00:00 systemctl status polkit.service -a
polkitd   1875     1  0 Nov18 ?        00:00:01 /usr/lib/polkit-1/polkitd --no-debug
nemmie   22857 22850  0 Nov18 ?        00:00:01 /usr/libexec/polkit-kde-authentication-agent-1


Output from pkexec whoami

Code: Select all
root


Output from echo $DISPLAY
Code: Select all
:0


Output of #systemctl status polkit.service -a

Code: Select all
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: active (running) since Sat 2017-11-18 18:39:44 EST; 1 day 19h ago
     Docs: man:polkit(8)
 Main PID: 1875 (polkitd)
   CGroup: /system.slice/polkit.service
           └─1875 /usr/lib/polkit-1/polkitd --no-debug

Nov 18 23:31:11 linux.local polkitd[1875]: Unregistered Authentication Agent for unix-session:c8 (system bus name :1.428, object path /org/mate/PolicyKit1/Aut
Nov 18 23:31:23 localhost.localdomain polkitd[1875]: Registered Authentication Agent for unix-session:c10 (system bus name :1.449 [/usr/libexec/polkit-kde-aut
Nov 19 18:05:27 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY
Nov 19 18:05:32 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY
Nov 19 18:05:37 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY
Nov 19 18:05:48 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY
Nov 19 18:17:38 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 FAILED to authenticate to gain authorization for action org.magei
Nov 19 18:33:30 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY
Nov 19 18:59:24 unknownb8ee653359a3.attlocal.net polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY
Nov 20 13:14:10 linux.local polkitd[1875]: Operator of unix-session:c10 successfully authenticated as unix-user:nemmie to gain TEMPORARY authorization for act
nemmie
 
Posts: 17
Joined: Nov 13th, '17, 17:04

Re: [HELP] Mageia 6 Control Center crashing.

Postby doktor5000 » Nov 21st, '17, 18:35

You forgot to add the context information if it worked as expected or not, and you would also need to add the second set of outputs, as mentioned previously:
doktor5000 wrote:This would be required once for an occurrence where MCC starts fine, and once for an occurence where it doesn't.
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: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [HELP] Mageia 6 Control Center crashing.

Postby nemmie » Nov 21st, '17, 19:13

doktor5000 wrote:You forgot to add the context information if it worked as expected or not, and you would also need to add the second set of outputs, as mentioned previously:
doktor5000 wrote:This would be required once for an occurrence where MCC starts fine, and once for an occurence where it doesn't.


I have been trying to get a working session of MCC. Seem now it is not wanting to work at all other than in command line mode. But as soon as I do, I will post
nemmie
 
Posts: 17
Joined: Nov 13th, '17, 17:04

Re: [HELP] Mageia 6 Control Center crashing.

Postby nemmie » Nov 23rd, '17, 01:06

Ok so I have nailed down my problem
When it switches to unknownb8ee653359a3.attlocal.net is then my MCC stops working
This all started when I started using NetworkManager. So I am guessing NM is overwriting my local hostname and how do I stop this?

Code: Select all
Nov 22 17:26:57 localhost.localdomain polkitd[1853]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Nov 22 17:26:57 localhost.localdomain systemd[1]: Started Authorization Manager.
Nov 22 17:27:36 localhost.localdomain polkitd[1853]: Registered Authentication Agent for unix-session:c2 (system bus name :1.187 [/usr/libexec/polkit-kde-authentication-agent-1], object
Nov 22 17:27:51 localhost.localdomain polkitd[1853]: Operator of unix-session:c2 successfully authenticated as unix-user:nemmie to gain TEMPORARY authorization for action org.mageia.drak
Nov 22 17:29:27 localhost.localdomain polkitd[1853]: Operator of unix-session:c2 successfully authenticated as unix-user:nemmie to gain ONE-SHOT authorization for action org.freedesktop.
Nov 22 17:33:37 unknownb8ee653359a3.attlocal.net polkitd[1853]: Operator of unix-session:c2 successfully authenticated as unix-user:nemmie to gain TEMPORARY authorization for action org.
Nov 22 17:50:26 unknownb8ee653359a3.attlocal.net polkitd[1853]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.187, object path /org/kde/PolicyKit1/Authenticat
Nov 22 17:50:36 laptop.hive polkitd[1853]: Registered Authentication Agent for unix-session:c4 (system bus name :1.251 [/usr/libexec/polkit-kde-authentication-agent-1], object path /org/
Nov 22 17:50:47 laptop.hive polkitd[1853]: Operator of unix-session:c4 successfully authenticated as unix-user:nemmie to gain TEMPORARY authorization for action org.mageia.drakconf.pkexe
Nov 22 17:51:28 laptop.hive polkitd[1853]: Operator of unix-session:c4 successfully authenticated as unix-user:nemmie to gain ONE-SHOT authorization for action org.freedesktop.policykit.
~
nemmie
 
Posts: 17
Joined: Nov 13th, '17, 17:04

Re: [HELP] Mageia 6 Control Center crashing.

Postby doktor5000 » Nov 23rd, '17, 19:43

nemmie wrote:So I am guessing NM is overwriting my local hostname and how do I stop this?

Well if you obtain your hostname via DHCP then that is normal, and the X authorisation is tied to the hostname. And it seems you don't have a local hostname set.

You should probably just set a static hostname locally, using e.g. manahost or hostnamectl if you prefer commandline.
See e.g. http://centosfaq.org/centos/prevent-net ... -hostname/
Maybe for your setup it might even be sufficient to set the hostname in /etc/sysconfig/network as mentioned in the link.

For reference, this is already reported as https://bugs.mageia.org/show_bug.cgi?id=3782 and https://bugs.mageia.org/show_bug.cgi?id=18077
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: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [HELP] Mageia 6 Control Center crashing.

Postby nemmie » Nov 23rd, '17, 23:22

I went into /etc/hostname and set my name. I hope this fixes my problem.
nemmie
 
Posts: 17
Joined: Nov 13th, '17, 17:04

Re: [HELP] Mageia 6 Control Center crashing.

Postby nemmie » Dec 9th, '17, 23:15

Ok, so it has been a while now and I have not had any problem. In recap, I was having trouble opening Megia control panel. tracked it down to, when I would start my session pam would see that my computer name as local.localhost. then when I would connect to my wireless network or any network, the network was assigning my computer a name like a12344w@something.com. then when I would go to open control panel, pam would see that my new computer name was not right and deny access to the control panel. Setting my computer name so it stayed the same fix this issue. I set it in hostname. This fix it for me.
nemmie
 
Posts: 17
Joined: Nov 13th, '17, 17:04


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest