You are not logged in.

#1 2012-08-04 13:18:56

Padfoot
Member
Registered: 2010-09-03
Posts: 382

[SOLVED] systemd shutdown fails

Hi, I have just made the change to a pure systemd init.

Just have 2 niggling isdues.

1. shutdown always freezes (all services are stopped, fs unmounted etc, hangs at shutdown.target)
I am unable to see the logs as on re-starting after an unclean shutdown, systemd nukes the journal.

2. nm-applet fails to embed in my sys tray.

** (nm-applet:679): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: Rejected send message, 2 matched rules; type="method_call", sender=":1.33" (uid=1000 pid=679 comm="nm-applet ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=251 comm="/usr/sbin/NetworkManager --no-daemon ")
** Message: applet now removed from the notification area

dbus is running as it is required by networkmanager and the network is up. I'm thinking dbus is somehow started twice (by networkmanager and by xfce).

Otherwise everything is working perfectly.

I am using grub2, fbsplash (shutdown fails both with and without this) lightdm and xfce.

output of systemctl:

UNIT                      LOAD   ACTIVE SUB       JOB DESCRIPTION
proc-sys...misc.automount loaded active waiting       Arbitrary Executable File Formats File System Automount Point
sys-devi...d-card0.device loaded active plugged       Wrestler HDMI Audio [Radeon HD 6250/6310]
sys-devi...t-wlan0.device loaded active plugged       AR9285 Wireless Network Adapter (PCI-Express)
sys-devi...da-sda1.device loaded active plugged       SanDisk_SSD_P4_32GB
sys-devi...da-sda2.device loaded active plugged       SanDisk_SSD_P4_32GB
sys-devi...da-sda3.device loaded active plugged       SanDisk_SSD_P4_32GB
sys-devi...da-sda4.device loaded active plugged       SanDisk_SSD_P4_32GB
sys-devi...ock-sda.device loaded active plugged       SanDisk_SSD_P4_32GB
sys-devi...th-hci0.device loaded active plugged       /sys/devices/pci0000:00/0000:00:13.0/usb5/5-5/5-5:1.0/bluetooth/hci0
sys-devi...d-card1.device loaded active plugged       SBx00 Azalia (Intel HDA)
sys-devi...y-ttyS0.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS0
sys-devi...y-ttyS1.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...y-ttyS2.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...y-ttyS3.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS3
sys-module-fuse.device    loaded active plugged       /sys/module/fuse
-.mount                   loaded active mounted       /
dev-hugepages.mount       loaded active mounted       Huge Pages File System
dev-mqueue.mount          loaded active mounted       POSIX Message Queue File System
home-padfoot-.gvfs.mount  loaded active mounted       /home/padfoot/.gvfs
home.mount                loaded active mounted       /home
mnt-computers.mount       loaded active mounted       /mnt/computers
mnt-family.mount          loaded active mounted       /mnt/family
mnt-library.mount         loaded active mounted       /mnt/library
run-.spl...x2dcache.mount loaded active mounted       /run/.splash-cache
sys-fs-f...nections.mount loaded active mounted       FUSE Control File System
sys-kernel-debug.mount    loaded active mounted       Debug File System
tmp.mount                 loaded active mounted       /tmp
systemd-...d-console.path loaded active waiting       Dispatch Password Requests to Console Directory Watch
systemd-...word-wall.path loaded active waiting       Forward Password Requests to Wall Directory Watch
accounts-daemon.service   loaded active running       Accounts Service
acpid.service             loaded active running       ACPI event daemon
console-...daemon.service loaded active running       Console Manager
console-...-start.service loaded active exited        Console System Startup Logging
cronie.service            loaded active running       Periodic Command Scheduler
dbus.service              loaded active running       D-Bus System Message Bus
eGTouchD.service          loaded active running       eGalax touchscreen device driver
getty@tty1.service        loaded active running       Getty on tty1
lightdm.service           loaded active running       LightDM Display Manager
NetworkManager.service    loaded active running       Network Manager
rtkit-daemon.service      loaded active running       RealtimeKit Scheduling Policy Service
systemd-journald.service  loaded active running       Journal Service
systemd-logind.service    loaded active running       Login Service
systemd-...s-load.service loaded active exited        Load Kernel Modules
systemd-...unt-fs.service loaded active exited        Remount Root and Kernel File Systems
systemd-sysctl.service    loaded active exited        Apply Kernel Variables
systemd-...-setup.service loaded active exited        Recreate Volatile Files and Directories
systemd-...rigger.service loaded active exited        udev Coldplug all Devices
systemd-udevd.service     loaded active running       udev Kernel Device Manager
systemd-...ssions.service loaded active exited        Permit User Sessions
systemd-...-setup.service loaded active exited        Setup Virtual Console
udisks2.service           loaded active running       Storage Daemon
upower.service            loaded active running       Daemon for power management
wpa_supplicant.service    loaded active running       WPA supplicant
acpid.socket              loaded active listening     ACPID Listen Socket
dbus.socket               loaded active running       D-Bus System Message Bus Socket
systemd-initctl.socket    loaded active listening     /dev/initctl Compatibility Named Pipe
systemd-journald.socket   loaded active running       Journal Socket
systemd-shutdownd.socket  loaded active listening     Delayed Shutdown Socket
systemd-...control.socket loaded active listening     udev Control Socket
systemd-...-kernel.socket loaded active running       udev Kernel Socket
basic.target              loaded active active        Basic System
bluetooth.target          loaded active active        Bluetooth
cryptsetup.target         loaded active active        Encrypted Volumes
getty.target              loaded active active        Login Prompts
graphical.target          loaded active active        Graphical Interface
local-fs-pre.target       loaded active active        Local File Systems (Pre)
local-fs.target           loaded active active        Local File Systems
multi-user.target         loaded active active        Multi-User
network.target            loaded active active        Network
remote-fs.target          loaded active active        Remote File Systems
sockets.target            loaded active active        Sockets
sound.target              loaded active active        Sound Card
swap.target               loaded active active        Swap
sysinit.target            loaded active active        System Initialization
systemd-...es-clean.timer loaded active waiting       Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
JOB    = Pending job for the unit.

75 units listed. Pass --all to see inactive units, too.

output of pgrep -lf dbus

253 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
465 dbus-launch --autolaunch=d8b591d8adc2fd11a933810000000990 --binary-syntax --close-stderr
467 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
596 /usr/bin/dbus-launch --sh-syntax --exit-with-session
597 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
615 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3

Last edited by Padfoot (2012-08-06 09:20:27)

Offline

#2 2012-08-04 14:39:50

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOLVED] systemd shutdown fails

Maybe this can help http://freedesktop.org/wiki/Software/sy … n_Problems

Last edited by 89c51 (2012-08-04 14:40:49)

Offline

#3 2012-08-04 14:49:15

LoBo3268715
Member
From: WI, USA
Registered: 2012-02-23
Posts: 34

Re: [SOLVED] systemd shutdown fails


"Linux. A big, bad, scary computer operating system known only by people with neck beards."

Offline

#4 2012-08-04 18:09:20

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: [SOLVED] systemd shutdown fails

I had the same issue and it turned out to be a kernel bug with ehci_hcd, so I had to rmmod it before shutting down. Your issue could be caused by something totally different though. If by any luck its the same issue, I have a systemd service file I wrote that automatically rmmods it on shutdown.

Offline

#5 2012-08-04 22:37:23

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [SOLVED] systemd shutdown fails

Thankyou all for your replies.

I have the shutdown issue fixed. It seems there were some legacy scripts in /etc/NetworkManager/dispatcher.d, once I moved these out, shutdown began working.

So this leaves the nm-applet issue. While not vital, I do like to be able to see wifi signal strength and be able to change networks while on the move. Does anyone have any ideas on this?

Cheers.

Offline

#6 2012-08-05 13:54:48

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: [SOLVED] systemd shutdown fails

Padfoot wrote:

Thankyou all for your replies.

I have the shutdown issue fixed. It seems there were some legacy scripts in /etc/NetworkManager/dispatcher.d, once I moved these out, shutdown began working.

So this leaves the nm-applet issue. While not vital, I do like to be able to see wifi signal strength and be able to change networks while on the move. Does anyone have any ideas on this?

Cheers.

You could try using wicd-gtk (an alternative to networkmanager)

Last edited by bwat47 (2012-08-05 13:55:07)

Offline

#7 2012-08-06 01:46:35

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [SOLVED] systemd shutdown fails

bwat47 wrote:
Padfoot wrote:

Thankyou all for your replies.

I have the shutdown issue fixed. It seems there were some legacy scripts in /etc/NetworkManager/dispatcher.d, once I moved these out, shutdown began working.

So this leaves the nm-applet issue. While not vital, I do like to be able to see wifi signal strength and be able to change networks while on the move. Does anyone have any ideas on this?

Cheers.

You could try using wicd-gtk (an alternative to networkmanager)

I have changed to wicd, so that issue is now solved. The only problem remaining is my NAS. I have wicd scripts set up to mount the NAS on network up and unmount the NAS pre network down. Yet it seems wicd is not exiting cleanly on systemd shutdown, so the network is going down before the NAS is unmounted. This leaves the unmount hanging until ststemd times out making for a long shutdown/reboot.

Here is my journal:

Aug 05 16:03:48 charlie acpid[245]: exiting
Aug 05 16:03:48 charlie dhcpcd[688]: received SIGTERM, stopping
Aug 05 16:03:48 charlie dhcpcd[688]: wlan0: removing interface
Aug 05 16:03:48 charlie systemd[1]: wicd.service: main process exited, code=exited, status=1
Aug 05 16:03:48 charlie lightdm[255]: Failed to get D-Bus connection
Aug 05 16:03:48 charlie systemd[1]: lightdm.service: main process exited, code=exited, status=1
Aug 05 16:03:49 charlie systemd[1]: Unit wicd.service entered failed state.
Aug 05 16:03:49 charlie systemd[1]: Unit lightdm.service entered failed state.
Aug 05 16:05:18 charlie systemd[1]: mnt-family.mount unmounting timed out. Stopping.
Aug 05 16:05:18 charlie systemd[1]: Unit mnt-family.mount entered failed state.
Aug 05 16:05:18 charlie systemd[1]: mnt-library.mount unmounting timed out. Stopping.
Aug 05 16:05:18 charlie systemd[1]: mnt-computers.mount unmounting timed out. Stopping.
Aug 05 16:05:18 charlie systemd[1]: Unit mnt-library.mount entered failed state.
Aug 05 16:05:18 charlie systemd[1]: Unit mnt-computers.mount entered failed state.
Aug 05 16:05:18 charlie systemd[1]: Shutting down.
Aug 05 16:05:18 charlie systemd-journal[158]: Journal stopped

Offline

#8 2012-08-06 09:19:55

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [SOLVED] systemd shutdown fails

Solved. Using netcfg and it's post_up and pre_down scripts work perfectly.

Offline

#9 2012-08-06 11:01:29

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] systemd shutdown fails

I can recommend this tray wifi monitor; https://bbs.archlinux.org/viewtopic.php?id=127649

I also replaced wicd with netcfg/nat_auto_wireless and qtwifimon came in handy to show the connection quality in the tray with icons.

Offline

#10 2012-08-07 09:32:23

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [SOLVED] systemd shutdown fails

swanson wrote:

I can recommend this tray wifi monitor; https://bbs.archlinux.org/viewtopic.php?id=127649

I also replaced wicd with netcfg/nat_auto_wireless and qtwifimon came in handy to show the connection quality in the tray with icons.

Thanks swanson, will have a look. But thinking along the lines of just creating a gtk icon referencing cat/sys/class/net/wireless/wlan0/level.

Cheers.

Offline

Board footer

Powered by FluxBB