Shutdown is very slow

Raspberry Pi related support

Shutdown is very slow

Postby Elliott B » 15 Jan 2014, 19:43

Shutting down this my Raspberry Pi running RuneAudio takes around 4 minutes. How can I troubleshoot this?
I read here to enable debug options:
Code: Select all
systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M enforcing=0
but I don't know where to type that.
Elliott B
 
Posts: 11
Joined: 15 Jan 2014, 10:40

Re: Shutdown is very slow

Postby ACX » 15 Jan 2014, 22:35

I was reading the same article today! This point in particular:
http://freedesktop.org/wiki/Software/sy ... eventually
We are aware of the problem but we still didn't fount a satisfatory solution. It seems we are not the only ones to suffer this weird behaviour:
https://bbs.archlinux.org/viewtopic.php?id=170756&p=1

PS: Elliott B, you already are our most prolific bug reporter :D Just let me tell you that your cooperation on this is really appreciated. Thank you and keep it up!
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Shutdown is very slow

Postby tux » 27 Mar 2014, 18:27

I did some tests in my custom archlinuxARM/mpd distro. I also suffered from slow shutdowns. I decided to replace netctl with systemd-networkd. The change was extremely easy and the configuration is as easy as netctl was.

After this change, boot is faster and shutdown is finally as it should be.
User avatar
tux
 
Posts: 34
Joined: 22 Jan 2014, 23:39
Location: Greece

Re: Shutdown is very slow

Postby ab.eccolo » 09 Mar 2016, 21:17

Hi,
also here very slow shutdown.
I've activated the debug and I've found a lot of errors like:
.....
Failed to send unit remove signal for <.....> Transport endpoint is not connected, any ideas?
ab.eccolo
 
Posts: 3
Joined: 09 Mar 2016, 21:13

Re: Shutdown is very slow

Postby hondagx35 » 10 Mar 2016, 17:50

Hi ab.eccolo,

without more information it's very hard to help.

- device (RP1, RP2, Odroid, Cubietruck)
- shutdown via user interface UI or via console?
- updates installed
- is it a new installation or a older one?
- free space on sd card (df -h)

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Shutdown is very slow

Postby ab.eccolo » 12 Mar 2016, 11:08

Thank a lot Frank, you are right, without any information is not simple:-)
So,
-device -> raspberry 2
-shutdown -> i use a ATXRaspi board to shutdown the raspberry, so I've enabled the rc-local service in order to run in background a script that execute "systemctl poweroff" if I press the power button.
-yes update rune ui instelld
- new installation (if with my modifications can be called fresh instalation again..... :-)

[root@runeaudio ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.7G 1.4G 254M 85% /
devtmpfs 367M 0 367M 0% /dev
tmpfs 371M 0 371M 0% /dev/shm
tmpfs 371M 316K 371M 1% /run
tmpfs 371M 0 371M 0% /sys/fs/cgroup
tmpfs 371M 804K 370M 1% /tmp
logs 5.0M 44K 5.0M 1% /var/log
rune-logs 5.0M 1.4M 3.7M 27% /var/log/runeaudio
/dev/mmcblk0p1 100M 13M 88M 13% /boot
[root@runeaudio ~]#


Thanks again for your support

EDIT -> I've expaned the partition, new df:
[root@runeaudio ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 1.4G 13G 11% /
devtmpfs 367M 0 367M 0% /dev
tmpfs 371M 0 371M 0% /dev/shm
tmpfs 371M 316K 371M 1% /run
tmpfs 371M 0 371M 0% /sys/fs/cgroup
tmpfs 371M 20K 371M 1% /tmp
logs 5.0M 44K 5.0M 1% /var/log
rune-logs 5.0M 1.3M 3.8M 26% /var/log/runeaudio
/dev/mmcblk0p1 100M 13M 88M 13% /boot
//nas_dlinkVolume_1/Music 915G 725G 191G 80% /mnt/MPD/NAS/Libreria

EDIT 2 : as workaround to poweroff the runeaudio in the script I've set instead of systemctl poweroff:
sync ; sync ; poweroff -f

I know that is not the best way to shutdown a distro, but for now works...



@tux, is there any tutorial in order to set the modification on netctl? ( I don't still know very well systemd ....)
ab.eccolo
 
Posts: 3
Joined: 09 Mar 2016, 21:13

Re: Shutdown is very slow

Postby hondagx35 » 12 Mar 2016, 13:12

Hi ab.eccolo,

thank you for the detailed information, now it is clear what your problem is.
Also your topic title is a bit misleading, because shutdown triggered from the UI works.

What is the best way to shut down RuneAudio?
Here a explanation how it's done in Rune:
- stop mpd
- stop spopd
- stop nginx
- unmount the shares

Code: Select all
mpc stop
systemctl stop nginx
sleep 1
systemctl stop mpd
systemctl stop spopd
sleep 1
export DISPLAY=:0
xset dpms force off
sleep 1
umount -aft nfs
umount -aft cifs

https://github.com/RuneAudio/RuneUI/blo ... e_shutdown

So please try to add this to your shutdown script, or just call rune_shutdown from your script.

@tux
I decided to replace netctl with systemd-networkd.

In this case it has nothing to do with netctl.
Switching to networkd without further modifications will brake RuneAudio.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Shutdown is very slow

Postby ab.eccolo » 12 Mar 2016, 21:51

It works perfectly! Thanks a lot :-)
Great support for a great (good, very good) sound oriented distro :-)
Thanks again.
ab.eccolo
 
Posts: 3
Joined: 09 Mar 2016, 21:13

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests