Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: unklarer on 2015/07/16, 20:51:34

Title: policykit-daemon
Post by: unklarer on 2015/07/16, 20:51:34
Hi,
ich bekomme neuerdings beim Wechsel in den runlevel 3 oder 5 vor/nach dem D-U diese Meldung zu sehen:
Quote
"Policykit daemon disconnected from the bus.
We are no longer a registriered authentication agent."


Dabei ist es egal ob ich
Code: [Select]
init 3

systemctl isolate multi-user.target
systemctl isolate runlevel3.target
etc. verwende.


[/size]Weiß jemand Rat?
Code: [Select]
inxi -S
System:    Host: siduction Kernel: 4.1.2-towo.1-siduction-amd64 x86_64 (64 bit)
           Desktop: LXDE (Openbox 3.6.1)
           Distro: siduction 12.1 Desperado - lxde - (201205212234)


apt-cache policy policykit-1
policykit-1:
  Installiert:           0.105-11
  Installationskandidat: 0.105-11
  Versionstabelle:
 *** 0.105-11 0
        500 http://ftp.cz.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
Title: Re: policykit-daemon
Post by: ayla on 2015/07/16, 23:02:29
Hier bekomme ich nichts dergleichen.

 
Code: [Select]
apt-cache policy policykit-1                                           
policykit-1:
  Installiert:           0.112-5.3.1~really-0.105-8
  Installationskandidat: 0.112-5.3.1~really-0.105-8
  Versionstabelle:
     0.113-1 0
          1 http://http.debian.net/debian/ experimental/main amd64 Packages
 *** 0.112-5.3.1~really-0.105-8 0
        500 http://packages.siduction.org/extra/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
     0.105-11 0
        500 http://ftp.debian.org/debian/ unstable/main amd64 Packages
 
Title: Re: policykit-daemon
Post by: unklarer on 2015/07/17, 14:06:47
Danke für den Wink mit dem Zaunpfahl. @ayla.
Habe gleich mal meine Repo's korrekt eingestellt.
Die policykit-1 Version 0.112-5.3.1~really-0.105-8 ist jetzt auch auf dem System, jedoch keine Änderung mit der Meldung, trotz
Neustart.
Code: [Select]
systemctl --failed gibt null Fehler.
Später zeige ich mal noch
Code: [Select]
systemctl show multi-user.target
journalctl -b -p err
Vielleicht sieht wer da was. Bin jetzt nicht am betreffenden Rechner.
Title: Re: policykit-daemon
Post by: unklarer on 2015/07/17, 15:20:15
Code: [Select]
journalctl -b -p err


-- Logs begin at Mi 2014-11-26 18:30:56 CET, end at Fr 2015-07-17 15:10:48 CEST. --
Jul 17 15:05:08 siduction ntpdate[728]: no servers can be used, exiting
Jul 17 15:05:14 siduction slim[856]: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Jul 17 15:05:14 siduction slim[856]: PAM adding faulty module: pam_gnome_keyring.so
Jul 17 15:05:28 siduction dhclient[1047]: send_packet: Network is unreachable
Jul 17 15:05:28 siduction dhclient[1047]: send_packet: please consult README file regarding broadcast address.
Jul 17 15:05:28 siduction dhclient[1047]: dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.
Jul 17 15:05:32 siduction dhclient[1164]: send_packet: Network is unreachable
Jul 17 15:05:32 siduction dhclient[1164]: send_packet: please consult README file regarding broadcast address.
Jul 17 15:05:32 siduction dhclient[1164]: dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.
Jul 17 15:05:32 siduction dhclient[1212]: send_packet: Network is unreachable
Jul 17 15:05:32 siduction dhclient[1212]: send_packet: please consult README file regarding broadcast address.
Jul 17 15:05:32 siduction dhclient[1212]: dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.
Jul 17 15:05:33 siduction ntpd_intres[1142]: host name not found: 0.debian.pool.ntp.org
Jul 17 15:05:33 siduction ntpd_intres[1142]: host name not found: 1.debian.pool.ntp.org
Jul 17 15:05:33 siduction ntpd_intres[1142]: host name not found: 2.debian.pool.ntp.org
Jul 17 15:05:33 siduction ntpd_intres[1142]: host name not found: 3.debian.pool.ntp.org
Jul 17 15:05:40 siduction ntpd_intres[1142]: host name not found: 0.debian.pool.ntp.org
Jul 17 15:05:40 siduction ntpd_intres[1142]: host name not found: 1.debian.pool.ntp.org
Jul 17 15:05:40 siduction ntpd_intres[1142]: host name not found: 2.debian.pool.ntp.org
Jul 17 15:05:40 siduction ntpd_intres[1142]: host name not found: 3.debian.pool.ntp.org
Jul 17 15:05:41 siduction ntpdate[1512]: the NTP socket is in use, exiting


Code: [Select]
systemctl show multi-user.target


Id=multi-user.target
Names=runlevel2.target multi-user.target runlevel3.target runlevel4.target
Requires=basic.target
Wants=pywwetha.service anacron.service pppd-dns.service loadcpufreq.service systemd-ask-password-wall.path irqbalance.service uml-utilities.service getty.target wicd.service systemd-u$
RequiredBy=graphical.target
Conflicts=rescue.service shutdown.target rescue.target
Before=systemd-update-utmp-runlevel.service graphical.target
After=ssh.service lm-sensors.service sidu-base.service network-manager.service ifplugd.service systemd-user-sessions.service anacron.service cpufrequtils.service rsyslog.service gpm.s$
Documentation=man:systemd.special(7)
Description=Multi-User System
LoadState=loaded
ActiveState=active
SubState=active
FragmentPath=/lib/systemd/system/multi-user.target
UnitFileState=static
UnitFilePreset=enabled
InactiveExitTimestamp=Fr 2015-07-17 15:05:17 CEST
InactiveExitTimestampMonotonic=28950833
ActiveEnterTimestamp=Fr 2015-07-17 15:05:17 CEST
ActiveEnterTimestampMonotonic=28950833
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=yes
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=yes
DefaultDependencies=yes
OnFailureJobMode=replace
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
NeedDaemonReload=no
JobTimeoutUSec=0
JobTimeoutAction=none
ConditionResult=yes
AssertResult=yes
ConditionTimestamp=Fr 2015-07-17 15:05:17 CEST
ConditionTimestampMonotonic=28950828
AssertTimestamp=Fr 2015-07-17 15:05:17 CEST
AssertTimestampMonotonic=28950830
Transient=no

Title: Re: policykit-daemon
Post by: musca on 2015/07/17, 17:25:14
Hallo unklarer,

du wechselst für das Dist-Upgrade nach Anleitung zum multi-user.target. Anscheinend gibt es bei deinem System eine ungünstige Zuordnung von bestimmten Services zu bestimmten Targets. Einige User haben z.B. berichtet, dass ihr Netzwerk im multi-user.target nicht funktioniert.

Genau genommen dient die Anleitung im Wesentlichen vorbeugend dazu, dass der Benutzer seine Desktopsitzung sauber beendet und dass sein Terminal mit dem laufenden Dist-Upgrade nicht durch das Beenden des Xservers beeinträchtigt werden kann.

Dieses Ziel erreicht man eben auch, wenn man statt "systemctl isolate multi-user.target" nur die grafische Oberfläche mit "systemctl stop lightdm.service" beendet. Einem Dist-Upgrade steht nun nichts mehr im Weg.


Sofern Deine Neugier geweckt ist, kannst Du Dich nun daran machen, die Zuordnung Deiner Services zu den Targets zu erforschen und (vorsichtig) zu optimieren. Die vom Paketmanager verwaltete Hierachie unter /lib/systemd/ solltest Du tunlichst unangetastet lassen. Änderungen werden hier erreicht, indem man gleichnamige Objekte unter /etc/systemd/ anlegt. Vielleicht hast Du (aus historischen Gründen) individuell abweichende Konfigurationen unter /etc/systemd/. Ein paar Beispiele aus der Standard-Konfiguration von IndianSummer-Cinnamon kann ich dir auflisten:

$ ls -l /lib/systemd/system/multi-user.target.wants/
total 0
lrwxrwxrwx 1 root root 15 May 14 16:44 dbus.service -> ../dbus.service    <-- Vorgabe: dbus.service läuft im multi-user.target
lrwxrwxrwx 1 root root 15 Jul  8 20:22 getty.target -> ../getty.target
lrwxrwxrwx 1 root root 19 Jul  8 20:22 rc-local.service -> ../rc-local.service
lrwxrwxrwx 1 root root 33 Jul  8 20:22 systemd-ask-password-wall.path -> ../systemd-ask-password-wall.path
lrwxrwxrwx 1 root root 25 Jul  8 20:22 systemd-logind.service -> ../systemd-logind.service
lrwxrwxrwx 1 root root 39 Jul  8 20:22 systemd-update-utmp-runlevel.service -> ../systemd-update-utmp-runlevel.service
lrwxrwxrwx 1 root root 32 Jul  8 20:22 systemd-user-sessions.service -> ../systemd-user-sessions.service

$ ls -l /etc/systemd/system
total 48
drwxr-xr-x 2 root root 4096 Nov 23  2014 bluetooth.target.wants
lrwxrwxrwx 1 root root   37 Nov 23  2014 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
lrwxrwxrwx 1 root root   40 Nov 23  2014 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root   40 Nov 23  2014 dbus-org.freedesktop.ModemManager1.service -> /lib/systemd/system/ModemManager.service
lrwxrwxrwx 1 root root   53 Nov 23  2014 dbus-org.freedesktop.nm-dispatcher.service -> /lib/systemd/system/NetworkManager-dispatcher.service
lrwxrwxrwx 1 root root   35 Jul 13 01:52 display-manager.service -> /lib/systemd/system/lightdm.service
drwxr-xr-x 2 root root 4096 Nov 23  2014 getty.target.wants
drwxr-xr-x 2 root root 4096 Nov 23  2014 graphical.target.wants
drwxr-xr-x 2 root root 4096 Dec 31  2014 hibernate.target.wants
drwxr-xr-x 2 root root 4096 Dec 31  2014 hybrid-sleep.target.wants
drwxr-xr-x 2 root root 4096 Nov 23  2014 local-fs.target.wants
drwxr-xr-x 2 root root 4096 Jul 12 22:46 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Nov 23  2014 paths.target.wants
drwxr-xr-x 2 root root 4096 Nov 23  2014 printer.target.wants
drwxr-xr-x 2 root root 4096 Nov 23  2014 sockets.target.wants
lrwxrwxrwx 1 root root   31 Nov 23  2014 sshd.service -> /lib/systemd/system/ssh.service
drwxr-xr-x 2 root root 4096 Dec 31  2014 suspend.target.wants
drwxr-xr-x 2 root root 4096 Jul 13 01:55 sysinit.target.wants

$ ls -l /etc/systemd/system/multi-user.target.wants/    <-- hier existiert kein zusätzlicher Verweis auf dbus.service
total 0
lrwxrwxrwx 1 root root 35 Nov 23  2014 anacron.service -> /lib/systemd/system/anacron.service
lrwxrwxrwx 1 root root 40 Nov 23  2014 avahi-daemon.service -> /lib/systemd/system/avahi-daemon.service
lrwxrwxrwx 1 root root 32 Nov 23  2014 cron.service -> /lib/systemd/system/cron.service
lrwxrwxrwx 1 root root 40 Nov 23  2014 cups-browsed.service -> /lib/systemd/system/cups-browsed.service
lrwxrwxrwx 1 root root 29 Jul 12 22:46 cups.path -> /lib/systemd/system/cups.path
lrwxrwxrwx 1 root root 37 Nov 23  2014 dns-clean.service -> /lib/systemd/system/dns-clean.service
lrwxrwxrwx 1 root root 38 Nov 23  2014 lm-sensors.service -> /lib/systemd/system/lm-sensors.service
lrwxrwxrwx 1 root root 40 Nov 23  2014 ModemManager.service -> /lib/systemd/system/ModemManager.service
lrwxrwxrwx 1 root root 42 Nov 23  2014 NetworkManager.service -> /lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 36 Nov 23  2014 pppd-dns.service -> /lib/systemd/system/pppd-dns.service
lrwxrwxrwx 1 root root 36 Nov 23  2014 pywwetha.service -> /lib/systemd/system/pywwetha.service
lrwxrwxrwx 1 root root 36 Nov 23  2014 remote-fs.target -> /lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 37 Nov 23  2014 sidu-base.service -> /lib/systemd/system/sidu-base.service
lrwxrwxrwx 1 root root 34 Nov 23  2014 smartd.service -> /lib/systemd/system/smartd.service
lrwxrwxrwx 1 root root 31 Nov 23  2014 ssh.service -> /lib/systemd/system/ssh.service
lrwxrwxrwx 1 root root 34 Nov 23  2014 vnstat.service -> /lib/systemd/system/vnstat.service


Gruß
musca
Title: Re: policykit-daemon
Post by: JohnML on 2015/07/18, 13:12:25
.. da wir kein "Antworten" Button sehen nur mal so ein Test, obs auch mit "Zitat" geht :-))
Title: Re: policykit-daemon
Post by: unklarer on 2015/07/18, 15:33:36
Hallo musca,
deine Erklärung finde ich Klasse, weil verständlich.  ;)
Code: [Select]
unklarer@siduction:~$ ls -l /lib/systemd/system/multi-user.target.wants/
insgesamt 0
lrwxrwxrwx 1 root root 15 Mai 14 16:44 dbus.service -> ../dbus.service
lrwxrwxrwx 1 root root 15 Jul 16 00:21 getty.target -> ../getty.target
lrwxrwxrwx 1 root root 19 Jul 16 00:21 rc-local.service -> ../rc-local.service
lrwxrwxrwx 1 root root 33 Jul 16 00:21 systemd-ask-password-wall.path -> ../systemd-ask-password-wall.path
lrwxrwxrwx 1 root root 25 Jul 16 00:21 systemd-logind.service -> ../systemd-logind.service
lrwxrwxrwx 1 root root 39 Jul 16 00:21 systemd-update-utmp-runlevel.service -> ../systemd-update-utmp-runlevel.service
lrwxrwxrwx 1 root root 32 Jul 16 00:21 systemd-user-sessions.service -> ../systemd-user-sessions.service
unklarer@siduction:~$ ls -l /etc/systemd/system
insgesamt 44
drwxr-xr-x 2 root root 4096 Mär  6  2014 bluetooth.target.wants
lrwxrwxrwx 1 root root   37 Mär  6  2014 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
lrwxrwxrwx 1 root root   32 Jan 19 10:52 display-manager.service -> /lib/systemd/system/slim.service
drwxr-xr-x 2 root root 4096 Sep 19  2014 getty.target.wants
drwxr-xr-x 2 root root 4096 Nov 26  2014 graphical.target.wants
drwxr-xr-x 2 root root 4096 Jan  1  2015 hibernate.target.wants
drwxr-xr-x 2 root root 4096 Jan  1  2015 hybrid-sleep.target.wants
drwxr-xr-x 2 root root 4096 Nov 26  2014 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Nov 14  2014 paths.target.wants
drwxr-xr-x 2 root root 4096 Mär  1  2014 printer.target.wants
drwxr-xr-x 2 root root 4096 Sep 29  2014 sockets.target.wants
lrwxrwxrwx 1 root root   31 Mär 25  2014 sshd.service -> /lib/systemd/system/ssh.service
drwxr-xr-x 2 root root 4096 Jan  1  2015 suspend.target.wants
drwxr-xr-x 2 root root 4096 Jun  6 20:47 sysinit.target.wants
lrwxrwxrwx 1 root root   35 Jul  4  2013 syslog.service -> /lib/systemd/system/rsyslog.service
unklarer@siduction:~$ ls -l /etc/systemd/system/multi-user.target.wants/
insgesamt 0
lrwxrwxrwx 1 root root 35 Jan  1  2014 anacron.service -> /lib/systemd/system/anacron.service
lrwxrwxrwx 1 root root 32 Jun  5  2014 cron.service -> /lib/systemd/system/cron.service
lrwxrwxrwx 1 root root 37 Feb 16  2014 dns-clean.service -> /lib/systemd/system/dns-clean.service
lrwxrwxrwx 1 root root 38 Jul  4  2013 lm-sensors.service -> /lib/systemd/system/lm-sensors.service
lrwxrwxrwx 1 root root 36 Jan 31  2014 pppd-dns.service -> /lib/systemd/system/pppd-dns.service
lrwxrwxrwx 1 root root 36 Mär 25  2014 pywwetha.service -> /lib/systemd/system/pywwetha.service
lrwxrwxrwx 1 root root 36 Sep 19  2014 remote-fs.target -> /lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 35 Jul  4  2013 rsyslog.service -> /lib/systemd/system/rsyslog.service
lrwxrwxrwx 1 root root 37 Apr 16  2014 sidu-base.service -> /lib/systemd/system/sidu-base.service
lrwxrwxrwx 1 root root 31 Feb 16  2014 ssh.service -> /lib/systemd/system/ssh.service



Beruhigend ist für mich, das der Wechsel in die Runlevel funktioniert.
Langsam habe ich den Verdacht, dass das an Slim liegt. devil oder melmarker hatten da mal was geschrieben von "slim sei tot, es lebe lightdm" .   ;D


Ich danke dir.