View previous topic :: View next topic |
Author |
Message |
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Fri Sep 27, 2013 12:48 am Post subject: gnome-light compiled with systemd runs consolekit |
|
|
hello,
I got some stouble with updating 1yr old gentoo system. After I emerge --update --ask --deep @world I anyway get gnome-session using consolekit instead of systemd. When I've installed systemd and USE flag systemd for gnome-session.
http://filepic.ru/1379496278
also I can't connect in console with systemd
Code: |
root# systemctl status
Failed to get D-Bus connection: No connection to service manager. |
and I did that all on the new stage, for not dout if something been not updated well and got the same behavior,
here log from /var/log/messages
Code: | Sep 29 13:00:44 localhost /etc/init.d/xdm[3612]: WARNING: xdm is already stopped
Sep 29 13:00:46 localhost /etc/init.d/xdm[3653]: You have to create an init script for each container:
Sep 29 13:00:46 localhost /etc/init.d/xdm[3654]: ln -s lxc /etc/init.d/lxc.container
Sep 29 13:00:46 localhost dbus[3160]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.0" (uid=0 pid=3729 comm="/usr/sbin/gdm ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=3732 comm="/usr/libexec/gdm-simple-slave --display-id /org/gn")
Sep 29 13:00:46 localhost dbus[3160]: [system] Activating service name='org.freedesktop.Accounts' (using servicehelper)
Sep 29 13:00:47 localhost dbus[3160]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Sep 29 13:00:47 localhost polkitd[3743]: Started polkitd version 0.111
Sep 29 13:00:47 localhost polkitd[3743]: Loading rules from directory /etc/polkit-1/rules.d
Sep 29 13:00:47 localhost polkitd[3743]: Loading rules from directory /usr/share/polkit-1/rules.d
Sep 29 13:00:47 localhost polkitd[3743]: Finished loading, compiling and executing 3 rules
Sep 29 13:00:47 localhost dbus[3160]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Sep 29 13:00:47 localhost polkitd[3743]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Sep 29 13:00:47 localhost accounts-daemon[3738]: started daemon version 0.6.34
Sep 29 13:00:47 localhost dbus[3160]: [system] Successfully activated service 'org.freedesktop.Accounts'
Sep 29 13:00:48 localhost gdm-simple-slave[3732]: Failed to give slave programs access to the display. Trying to proceed.
Sep 29 13:00:48 localhost gdm-simple-slave[3732]: Could not run helper: Failed to execute child process "/usr/libexec/ck-get-x11-display-device" (No such file or directory)
Sep 29 13:00:48 localhost gdm-simple-slave[3732]: Could not run helper: Failed to execute child process "/usr/libexec/ck-get-x11-display-device" (No such file or directory)
Sep 29 13:00:49 localhost gnome-session[3762]: WARNING: Could not connect to ConsoleKit: Could not get owner of name 'org.freedesktop.ConsoleKit': no such name
Sep 29 13:00:49 localhost gnome-session[3762]: WARNING: Could not connect to ConsoleKit: Could not get owner of name 'org.freedesktop.ConsoleKit': no such name
Sep 29 13:00:49 localhost gnome-session[3762]: WARNING: Could not parse desktop file orca-autostart.desktop or it references a not found TryExec binary
Sep 29 13:00:51 localhost dbus[3160]: [system] Activating service name='org.freedesktop.login1' (using servicehelper)
Sep 29 13:00:51 localhost dbus[3160]: [system] Activated service 'org.freedesktop.login1' failed: Launch helper exited with unknown return code 1
Sep 29 13:00:51 localhost pulseaudio[3797]: [pulseaudio] shm.c: shm_open() failed: Permission denied
Sep 29 13:00:51 localhost pulseaudio[3797]: [pulseaudio] core.c: failed to allocate shared memory pool. Falling back to a normal memory pool.
Sep 29 13:00:52 localhost pulseaudio[3797]: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
Sep 29 13:00:52 localhost pulseaudio[3797]: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
Sep 29 13:00:52 localhost pulseaudio[3797]: [pulseaudio] main.c: Module load failed.
Sep 29 13:00:52 localhost pulseaudio[3797]: [pulseaudio] main.c: Failed to initialize daemon.
Sep 29 13:00:52 localhost pulseaudio[3794]: [pulseaudio] main.c: Daemon startup failed.
Sep 29 13:00:52 localhost dbus[3160]: [system] Activating service name='org.freedesktop.locale1' (using servicehelper)
Sep 29 13:00:52 localhost dbus[3160]: [system] Activated service 'org.freedesktop.locale1' failed: Launch helper exited with unknown return code 1
Sep 29 13:00:52 localhost kernel: [ 219.361152] gnome-shell[3792]: segfault at 10 ip 00007fbebc7ba5a0 sp 00007fff71cca230 error 4 in libcogl.so.12.1.1[7fbebc74c000+97000]
Sep 29 13:00:57 localhost pulseaudio[3809]: [pulseaudio] shm.c: shm_open() failed: Permission denied
Sep 29 13:00:57 localhost pulseaudio[3809]: [pulseaudio] core.c: failed to allocate shared memory pool. Falling back to a normal memory pool.
Sep 29 13:00:57 localhost pulseaudio[3809]: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
Sep 29 13:00:57 localhost pulseaudio[3809]: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
Sep 29 13:00:57 localhost pulseaudio[3809]: [pulseaudio] main.c: Module load failed.
Sep 29 13:00:57 localhost pulseaudio[3809]: [pulseaudio] main.c: Failed to initialize daemon.
Sep 29 13:00:57 localhost pulseaudio[3806]: [pulseaudio] main.c: Daemon startup failed.
Sep 29 13:01:04 localhost /etc/init.d/xdm[3615]: xdm: caught SIGINT, aborting
Sep 29 13:01:04 localhost /etc/init.d/xdm[3728]: start-stop-daemon: caught SIGINT, aborting
Sep 29 13:01:04 localhost /etc/init.d/xdm[3813]: ERROR: could not start the Display Manager
|
I'm afraig why gnome wants run consolekit instead of systemd. |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Tue Oct 01, 2013 11:22 pm Post subject: |
|
|
yes, anyway your respond doesn't help at all.
If someone else know why systemd may not connecting dbus, when dbus is runing, fifo is created.
I don't think that compilation trouble, manybe that dependend on some adjustments of systemd. |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Wed Oct 02, 2013 9:08 am Post subject: |
|
|
from the output it looks like you are not running systemd at all, thats why you get that dbus connection error.
you can make sure you are running systemd with cat /proc/1/comm .
cheers |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Thu Oct 03, 2013 11:53 am Post subject: |
|
|
on first pid I found init daemon.
also I can't fount init script for systemd in /etc/init.d/, like for consolekit |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Thu Oct 03, 2013 2:02 pm Post subject: |
|
|
Quote: | I can't fount init script for systemd in /etc/init.d |
i would suggest you to read again the link sebB provided : systemd is a init system.
and btw if you are running systemd you should remove consolekit as it might break things, as explained in the wiki page.
cheers |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Fri Oct 04, 2013 3:29 am Post subject: |
|
|
oh, I found that start working, but stops on cgroup.
cgroup's should be mounted from initrd?
and I didn't expect what systemd use .service configs for run services instesd of bash scripts.
I have only 3 services, seems many things still not availabe for systemd or I be able use Sysv init scripts in systemd?
Code: | ls -d /etc/systemd/system/*/*
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/sysinit.target.wants/debug-shell.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
|
tecnicaly I can make all important in one sysv init script on my stage.
I need make .service config file for systemd for each service anyway?
like I expect:
Code: | ExecStart="/sbin/service systemstart start" |
|
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Fri Oct 04, 2013 8:33 am Post subject: |
|
|
Quote: | but stops on cgroup. |
works for me and it mounts everything on its own.
You are expected to have cgroup support in the kernel.
Quote: | have only 3 services |
make sure you have systemd enable globally, granted there are still unit files missing but for the common services i have found that a unit file was in place.
I have 174 unit files in my system ( check with systemctl -a list-unit-files).
cheers |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Fri Oct 04, 2013 8:47 am Post subject: |
|
|
ok, I got that.
could you post all of them
systemctl -a list-unit-files > /tmp/file
becuse I don't know which one mounts cgroup fs.
or may be
systemctl -a list-unit-files | grep enabled |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Fri Oct 04, 2013 11:09 am Post subject: |
|
|
i havent really looked into how systemd implements cgroup but as far as i know this is at a core level.
more info here -> http://www.freedesktop.org/software/systemd/man/systemd.cgroup.html
Code: | UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount static
var-lock.mount static
var-run.mount static
cups.path enabled
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
session-1.scope static
accounts-daemon.service disabled
autovt@.service disabled
bluetooth.service disabled
canberra-system-bootup.service disabled
canberra-system-shutdown-reboot.service disabled
canberra-system-shutdown.service disabled
colord.service static
configure-printer@.service static
console-getty.service disabled
console-shell.service disabled
cups-browsed.service disabled
cups.service enabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.machine1.service static
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dhcpcd.service disabled
display-manager.service enabled
emergency.service static
fprintd.service static
gdm.service enabled
getty@.service enabled
git-daemon@.service static
gpm.service disabled
hplip-printer@.service static
initrd-cleanup.service static
initrd-parse-etc.service static
initrd-switch-root.service static
initrd-udevadm-cleanup-db.service static
kmod-static-nodes.service static
NetworkManager-dispatcher.service disabled
NetworkManager-wait-online.service disabled
NetworkManager.service enabled
nmbd.service disabled
polkit.service static
quotaon.service static
rescue.service static
rsyncd.service disabled
serial-getty@.service static
smbd.service disabled
smbd@.service static
squashmount.service enabled
sshd.service disabled
sshd@.service static
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-backlight@.service static
systemd-binfmt.service static
systemd-fsck-root.service static
systemd-fsck@.service static
systemd-halt.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-flush.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-machined.service static
systemd-modules-load.service static
systemd-nspawn@.service static
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed.service static
systemd-readahead-collect.service disabled
systemd-readahead-done.service static
systemd-readahead-drop.service disabled
systemd-readahead-replay.service disabled
systemd-reboot.service static
systemd-remount-fs.service static
systemd-shutdownd.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup-dev.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service static
udisks2.service static
upower.service disabled
user@.service static
uuidd.service static
winbindd.service disabled
wpa_supplicant.service disabled
wpa_supplicant@.service disabled
-.slice static
machine.slice static
system.slice static
user.slice static
cups.socket enabled
dbus.socket static
git-daemon.socket disabled
smbd.socket disabled
sshd.socket disabled
syslog.socket static
systemd-initctl.socket static
systemd-journald.socket static
systemd-shutdownd.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
uuidd.socket disabled
basic.target static
bluetooth.target static
ctrl-alt-del.target disabled
default.target disabled
emergency.target static
final.target static
getty.target static
graphical.target disabled
halt.target disabled
hibernate.target static
hybrid-sleep.target static
initrd-fs.target static
initrd-root-fs.target static
initrd-switch-root.target static
initrd.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
multi-user.target disabled
network-online.target static
network.target static
nss-lookup.target static
nss-user-lookup.target static
paths.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target disabled
rpcbind.target static
shutdown.target static
sigpwr.target static
sleep.target static
slices.target static
smartcard.target static
sockets.target static
sound.target static
suspend.target static
swap.target static
sysinit.target static
system-update.target static
time-sync.target static
timers.target static
umount.target static
systemd-readahead-done.timer static
systemd-tmpfiles-clean.timer static
174 unit files listed. |
hope this helps.
cheers |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Fri Oct 04, 2013 11:27 am Post subject: |
|
|
ok I'll check that.
gringo,
you never use /etc/init.d/ with systemd?
There does anothere way to use them instead of one I show before?
edit:
services enabled according your enabled services not resolve my trouble:
Code: | Failed to create root cgroup hierarchy: Invalig argument
Failed to allocate manager object: Invalid argument
|
|
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Fri Oct 04, 2013 1:06 pm Post subject: |
|
|
Quote: | you never use /etc/init.d/ with systemd? |
nope, mine is almost empty btw.
Quote: | There does anothere way to use them instead of one I show before? |
you mean you want to use bash init scripts with systemd ?
never tried but not possible as far as i know.
Quote: | Failed to create root cgroup hierarchy: Invalig argument |
not sure, sorry. Id say that something is missing in the kernel, are you sure you have cgroup & devtmpfs & automount support in your kernel ?
check also your logs, maybe you see wth is going on there.
cheers |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Sat Oct 05, 2013 12:05 am Post subject: |
|
|
Quote: |
you mean you want to use bash init scripts with systemd ?
never tried but not possible as far as i know. |
no, I found one way
Code: | ExecStart="/sbin/service systemstart start" |
and in the wiki page http://gentoo-en.vfose.ru/wiki/Systemd
Quote: | systemd is a system and service manager for Linux, compatible with SysV and LSB init scripts. |
I expect that another way for use Sysv scripts in systemd.
yes, I've in the kernel this outions enabled:
Code: |
CONFIG_CGROUPS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y |
because in sysvinit cgroups mounts well.
and I can't reach the log because system stopped on this failure message. |
|
Back to top |
|
|
croutch n00b
Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Sun Oct 06, 2013 11:55 pm Post subject: |
|
|
yes, according this in my kernel configuration I've:
Code: | CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_NS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_MEM_RES_CTLR=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y
CONFIG_CGROUP_SCHED=y
CONFIG_BLK_CGROUP=y
CONFIG_DEBUG_BLK_CGROUP=y
|
|
|
Back to top |
|
|
croutch n00b
Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
Posted: Mon Oct 07, 2013 3:55 am Post subject: |
|
|
syn0ptik wrote: | ok, I got that.
could you post all of them
systemctl -a list-unit-files > /tmp/file
becuse I don't know which one mounts cgroup fs.
or may be
systemctl -a list-unit-files | grep enabled |
this one mounts cgroups fs only
-*- Control Group support --->
and in cgroup i have only
-*- Group CPU scheduler --->
df -h gives
tmpfs 16G 0 16G 0% /sys/fs/cgroup
Systemd not depend on all settings in cgroups. Meaning if you not want to use them systemd works fine.
But you must have -*- Control Group support ---> set in kernel
read line 5 to 8 again
http://0pointer.de/blog/projects/cgroups-vs-cgroups.html |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Mon Oct 07, 2013 10:21 pm Post subject: |
|
|
as you can see I post my kernel configuration related CGROUPS and there I'd set all necessary configuration options.
and after I use that kernel with cgroup support, I got that message when systemd start loading the system.
Code: | Failed to create root cgroup hierarchy: Invalig argument |
after this message I can't do ctrl+c or something else. |
|
Back to top |
|
|
croutch n00b
Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
Posted: Tue Oct 08, 2013 3:52 am Post subject: |
|
|
Ok
wonder if your user session is broken in some way.
in a terminal do.
loginctl --no-pager show-session $XDG_SESSION_ID | grep Active
Active=yes
then do
loginctl show-session $XDG_SESSION_ID active
output like mine
Code: | d=c5
Timestamp=Sat 2013-10-05 13:13:55 CEST
TimestampMonotonic=93942897
VTNr=7
Display=:0
Remote=no
Service=lightdm
Scope=session-c5.scope
Leader=2364
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=croutch |
if you not active check this https://wiki.archlinux.org/index.php/Systemd/User |
|
Back to top |
|
|
|