Gestern Abend hatte ich den Fehler auf jeden Fall auch wieder. Also reproduzierbar.
Gerade das Update durchgeführt. Werde es beobachten. Schon mal Danke!
[0.5 stable] Kein Shutdown nach Timern
-
-
Leider habe ich seit dem update au vdr 2.0 Probleme beim Shutdown meines VDR. Drücken ich die Power Taste, detached sich nur das frontend und der VDR fährt nicht herunter. Hier mal die log Einträge:
/var/log/syslog:
http://pastebin.com/Kjd41HCQIn der vdr-frontend.log gibt es keinen log Eintrag. Ich hatte Problem einmal lösen können, weiß aber leider nicht mehr wie. Nach dem upgrade/dist-ugrade von Freitag, der scheinbar auch das yavdr-util geupdated hat, ist das Problem wieder aufgetreten.
Gruß
Oc86 -
Da hat das Frontend-Skript aber nichts mehr damit zu tun, denn der VDR sieht ja den Druck auf die Power-Taste und löst den shutdown-wrapper aus. Nutzt du den Standby-Modus oder fährt dein Rechner komplett herunter?
-
ich hatte exakt das gleiche Problem, dass der Rechner nicht mehr herunter fahren wollte.
Er lies sich dann noch über das frontend und per ssh steuern. Nachdem ich mir einen Wolf
gesucht habe, hatte ich das vdr-plugin-graphtftng, vdr-plugin-dvbsddevice und das vdr-plugin-dvbshddevice deinstalliert,
die beim update wohl automatisch geladen wurden. Danach ging mein shutdown wieder.
Ob es wirklich der Grund war liegt im Dunkeln. -
achdem ich mir einen Wolf
gesucht habe, hatte ich das vdr-plugin-dvbsddevice und das vdr-plugin-dvbshddevice deinstalliert,
die beim update wohl automatisch geladen wurden.
Aber das passiert nur, wenn man blind die order.conf beim Update überschreiben lässt... -
Der Rechner sollte komplett runterfahren. Macht aber leider nicht. Bei Lifeguard ist nichts ausgewählt, dass sollte nicht das Problem sein.
Wenn ich versuche die Plugins vdr-plugin-graphtftng, vdr-plugin-dvbsddevice und vdr-plugin-dvbsddevice zu deinstallieren, möchte apt-get yavdr-essential auch deinstallieren...:Ich wollte diese Pakete schon vorher deinstallieren, da ich sie nicht benötige.
-
Einfach in der order.conf deaktivieren, dann muss man die nicht deinstallieren.
Lars
-
nur nebenbei bemerkt, die waren bei mir in der order.conf auch vorher deaktiviert.
Wie gesagt mir ist nicht klar, ob da ein Zusammenhang besteht. Nun geht es aber. -
Moin!
Wie schon im Update-Thread beschrieben bringt das Update auf vdr 2.0.2 auch ein paar neue Konfigurationsdateien mit. Die darf man nicht einfach überschreiben lassen, sondern muss sich die Unterschiede anzeigen lassen, um dann eine Datei zu erstellen, die die eventuellen Neuerungen und die eigenen Änderungen vereint.
Die order.conf gehörte dazu.Lars.
-
Die drei plugins sind auch schon bei mir deaktiviert. Bei /etc/default/vdr is auch ENABLED_SHUTDOWN aktiviert. Habe auch das shutdown hooks S99.shutdown den SHUTDOWNCMD von echo "SHUTDOWNCMD=\"stop vdr ; /sbin/halt -p\"" nach echo "SHUTDOWNCMD=\"stop vdr ; /sbin/shutdown -h now\"" geändert ... leider ohne Erfolg.
-
Zum Problem, welches seb_k und ich hatten. Auch bei mir fährt der VDR jetzt herunter.
-
@ Oc86:
Kannst du mal rausschreiben lassen, was als Reaktion auf den Shutdown-Befehl passiert?
Dazu mal in der /usr/lib/vdr/vdr-shutdown in der letzten Zeile
eine Umleitung in eine Datei anlegen:
Und dann mal dort nachsehen, was beim Aufruf des Shutdown-Befehls raus kommt. -
Code
stop: You do not have permission to modify job: vdr shutdown: Administratorrechte (»root«-Rechte) benötigt
Meine sudoers einträge für den user vdr(standard):
Codevdr ALL=NOPASSWD: /usr/bin/start-xterm vdr ALL=NOPASSWD: /sbin/reboot vdr ALL=NOPASSWD: /sbin/shutdown
Das wundert mich jetzt ein wenig..
-
Hast du etwas an den Upstart-Dateien oder sonstigen Skripten des VDR geändert?
Kannst du mal nachsehen wie deine /etc/sudoers und die Dateien unter /etc/sudoers.d/* aussehen?
Bei mir sieht das so aus:
/etc/sudoers http://paste.ubuntu.com/6142440/
/etc/sudoers.d/yavdr http://paste.ubuntu.com/6142446/ -
An /etc/init/vdr.conf habe ich ENABLE_SHUTDOWN=1 eingestellt.
/etc/sudoers:Code
Alles anzeigen# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges min ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d # Added by yavdr-startup, don't remove vdr ALL=NOPASSWD: /usr/bin/start-xterm vdr ALL=NOPASSWD: /sbin/reboot vdr ALL=NOPASSWD: /sbin/shutdown
/etc/sudoers.d/yavdr:
-
An /etc/init/vdr.conf habe ich ENABLE_SHUTDOWN=1 eingestellt.
Ja, er versucht ja auch den Shutdown, darf es aber aufgrund fehlender Berechtigungen nicht - ENABLE_SHUTDOWN=1 gehört in die /etc/default/vdr
Wie sehen denn deine /etc/init/vdr.conf, /etc/default/vdr und /usr/lib/vdr/config-loader aus?Code
Alles anzeigen################################################################################# # # # The following configuration file is generated automatically by the yaVDR # # system. Don't change this file as every update of yaVDR will overwrite # # the local changes. Instead put your required customizations # # into /etc/yavdr/templates_custom/ based on the original templates # # under /usr/share/yavdr/templates. # # # # http://www.yavdr.org/developer-zone/template-overview/ # # # # # ################################################################################# # /etc/default/vdr # # See also /usr/share/doc/vdr/README.Debian.gz # # Change to 1 to enable vdr's init-script ENABLED=1 # Change this to 1 if you want vdr to be able to shutdown the # computer ENABLE_SHUTDOWN=1 # Options that will be passed to vdr's commandline # for example: OPTIONS="-w 15" OPTIONS="-w 0 --vfat" if [ -e /opt/lib/libmediaclient.so ]; then export LD_PRELOAD=/opt/lib/libmediaclient.so fi # this is to late... rm -f /etc/ld.so.preload VDR_CHARSET_OVERRIDE=ISO-8859-9
Code
Alles anzeigen# Starts the vdr, with config and installed plugins description "VDR upstart script" author "Steffen Barszus <steffenbpunkt@gmail.com" start on ( (started dbus and started udev and stopped networking) or \ (dbus-activation de.tvdr.vdr and startup) or \ stopped vdr-exit-other or \ resume ) stop on runlevel [!2345] kill timeout 60 normal exit 0 expect stop nice -10 env quiet env yavdr setgid audio script # load default values and overrides from /etc/default/vdr . /usr/lib/vdr/config-loader mkdir -p /var/run/vdr chown -R vdr:vdr /var/run/vdr # reduce verbosity if quiet is set in grub if [ "quiet" = "n" ]; then OPTIONS="$OPTIONS -l 3" fi # load all plugins from plugin folder . /usr/lib/vdr/plugin-loader # extract and prepare all commands . /usr/lib/vdr/commands-loader mergecommands "reccmds" # Set shutdown command test "$ENABLE_SHUTDOWN" = "1" && VDRSHUTDOWN="/usr/lib/vdr/vdr-shutdown.wrapper" \ || VDRSHUTDOWN="/usr/lib/vdr/vdr-shutdown-message" # enable debug measures if [ "$(basename $DAEMON)" = "vdr-dbg" ]; then ulimit -c unlimited OPTIONS="$OPTIONS --userdump" echo "/var/log/vdr/core.%p" > /proc/sys/kernel/core_pattern fi # set language (default by environment, else by /etc/default/vdr) LANG=$VDR_LANG LC_ALL=$VDR_LANG export LANG LC_ALL if [ -n "$VDR_CHARSET_OVERRIDE" ] ; then export VDR_CHARSET_OVERRIDE=$VDR_CHARSET_OVERRIDE fi export HOME=/var/lib/vdr exec $DAEMON --lirc=$LIRC -v $VIDEO_DIR -c $CFG_DIR -L $PLUGIN_DIR -r $REC_CMD -s $VDRSHUTDOWN -E $EPG_FILE -u $USER -g /tmp --port $SVDRP_PORT $OPTIONS "${PLUGINS[@]}" $REDIRECT end script
Code
Alles anzeigen# # This file is called by /etc/init.d/vdr # # # Defaults - don't touch, edit options for the VDR daemon in # /etc/default/vdr !!! # # Daemon ( e.g. vdr or vdr-dbg) DAEMON="/usr/bin/vdr" # Lirc-Socket LIRC="/var/run/lirc/lircd" # Config-Directory CFG_DIR="/var/lib/vdr" # Plugin-Directory PLUGIN_DIR="/usr/lib/vdr/plugins" # Plugin Config-Directory PLUGIN_CFG_DIR="/etc/vdr/plugins" # Plugin prefix PLUGIN_PREFIX="libvdr-" # Command-Hooks Directory CMDHOOKSDIR="/usr/share/vdr/command-hooks" # Commmand executed on start, stop and editing of a recording REC_CMD=/usr/lib/vdr/vdr-recordingaction # Commmand executed by vdr to shutdown the system SHUTDOWNCMD="/sbin/shutdown -h now" # EPG data file EPG_FILE=/var/cache/vdr/epg.data # Username under which vdr will run (Note: the user root is not # allowed to run vdr, vdr will abort when you try to start it as # root or with "-u root") USER=vdr # Default port for SVDRP SVDRP_PORT=6419 # Enable / Disable vdr daemon ENABLED=0 # Enable / Disable automatic shutdown ENABLE_SHUTDOWN=0 # Video-Directory VIDEO_DIR="/srv/vdr/video.00" # Set this to load only startable plugins (check with "vdr -V -P plugin") PLUGIN_CHECK_STARTABLE="yes" # Default Console for controlling VDR by keyboard. Empty means no console # input. KEYB_TTY="" # Set this to 1 to make VDR switch to the console specified in KEYB_TTY # on startup KEYB_TTY_SWITCH=0 # get locale which is used for running vdr from /etc/default/locale or # /etc/environment or fall back to "C" ENV_FILE="none" [ -r /etc/environment ] && ENV_FILE="/etc/environment" [ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale" [ $ENV_FILE = none ] || \ for var in LANG LC_ALL; do eval VDR_LANG=$(egrep "^[^#]*${var}=" $ENV_FILE | tail -n1 | cut -d= -f2) [ -z "$VDR_LANG" ] || break done [ -z "$VDR_LANG" ] && VDR_LANG="C" # Enable VFAT file system support by default VFAT=1 test -f /etc/default/vdr && . /etc/default/vdr
Mit welchen Argumenten wird der VDR gestartet? -
vdr:
Codevdr 1208 9.0 3.8 2955448 157164 ? S<sl 16:50 24:12 /usr/bin/vdr --lirc=/var/run/lirc/lircd -v /srv/vdr/video.00 -c /va r/lib/vdr -L /usr/lib/vdr/plugins -r /usr/lib/vdr/vdr-recordingaction -s /usr/lib/vdr/vdr-shutdown.wrapper -E /var/cache/vdr/epg.dat a -u vdr -g /tmp --port 6419 -w 0 -Psc -B0 -B1 -B2 -B3 -Pfemon -Pdynamite -Pchannellists -Pconflictcheckonly -Pdbus2vdr --shutdown- hooks=/usr/share/vdr/shutdown-hooks --shutdown-hooks-wrapper=/usr/share/vdr-plugin-dbus2vdr/shutdown-wrapper --network --upstart -Pm arkad -Pimonlcd -d /dev/lcd0 -p 0038 -Ptext2skin -Pquickepgsearch -Pxvdr -t 10 -Pextrecmenu -Psofthddevice -D -Posdteletext -Prestf ulapi --port=8002 --ip=0.0.0.0 --epgimages=/var/cache/vdr/epgimages --channellogos=/usr/share/vdr-channellogos -Pepgsearch -f /usr/b in/svdrpsend -Pmenuorg -Pwirbelscan -Plive --port=8008 --ip=0.0.0.0 --log=INFO --epgimages=/var/cache/vdr/epgimages -Pskinpearlhd -- epgimages=/var/cache/vdr/epgimages -Pnordlichtsepg -Psundtek -Pstreamdev-server -Piptv -Pepgsearchonly
/etc/default/vdr:
Code
Alles anzeigen################################################################################# # # # The following configuration file is generated automatically by the yaVDR # # system. Don't change this file as every update of yaVDR will overwrite # # the local changes. Instead put your required customizations # # into /etc/yavdr/templates_custom/ based on the original templates # # under /usr/share/yavdr/templates. # # # # http://www.yavdr.org/developer-zone/template-overview/ # # # # # ################################################################################# # /etc/default/vdr # # See also /usr/share/doc/vdr/README.Debian.gz # # Change to 1 to enable vdr's init-script ENABLED=1 # Change this to 1 if you want vdr to be able to shutdown the # computer ENABLE_SHUTDOWN=1 # Options that will be passed to vdr's commandline # for example: OPTIONS="-w 15" OPTIONS="-w 0" if [ -e /opt/lib/libmediaclient.so ]; then export LD_PRELOAD=/opt/lib/libmediaclient.so fi # this is to late... rm -f /etc/ld.so.preload VDR_CHARSET_OVERRIDE=ISO-8859-9
/etc/init/vdr.conf:
Code
Alles anzeigen# Starts the vdr, with config and installed plugins description "VDR upstart script" author "Steffen Barszus <steffenbpunkt@gmail.com" start on ( (started dbus and started udev and stopped networking) or \ stopped vdr-exit-other or \ resume ) stop on runlevel [!2345] kill timeout 60 normal exit 0 expect stop nice -10 env quiet env yavdr script # load default values and overrides from /etc/default/vdr . /usr/lib/vdr/config-loader mkdir -p /var/run/vdr chown -R vdr:vdr /var/run/vdr # reduce verbosity if quiet is set in grub if [ "quiet" = "n" ]; then OPTIONS="$OPTIONS -l 3" fi # load all plugins from plugin folder . /usr/lib/vdr/plugin-loader # extract and prepare all commands . /usr/lib/vdr/commands-loader mergecommands "reccmds" # Set shutdown command test "$ENABLE_SHUTDOWN" = "1" && VDRSHUTDOWN="/usr/lib/vdr/vdr-shutdown.wrapper" \ || VDRSHUTDOWN="/usr/lib/vdr/vdr-shutdown-message" # enable debug measures if [ "$(basename $DAEMON)" = "vdr-dbg" ]; then ulimit -c unlimited OPTIONS="$OPTIONS --userdump" echo "/var/log/vdr/core.%p" > /proc/sys/kernel/core_patternfi # set language (default by environment, else by /etc/default/vdr) LANG=$VDR_LANG LC_ALL=$VDR_LANG export LANG LC_ALL if [ -n "$VDR_CHARSET_OVERRIDE" ] ; then export VDR_CHARSET_OVERRIDE=$VDR_CHARSET_OVERRIDE fi export HOME=/var/lib/vdr exec $DAEMON --lirc=$LIRC -v $VIDEO_DIR -c $CFG_DIR -L $PLUGIN_DIR -r $REC_CMD -s $VDRSHUTDOWN -E $EPG_FILE -u $USER -g /tmp --port $SVDRP_PORT $OPTIONS "${PLUGINS[@]}" $REDIRECT end script
/usr/lib/vdr/config-loader:
Code
Alles anzeigen## This file is called by /etc/init.d/vdr# ## Defaults - don't touch, edit options for the VDR daemon in# /etc/default/vdr !!!# # Daemon ( e.g. vdr or vdr-dbg) DAEMON="/usr/bin/vdr" # Lirc-Socket LIRC="/var/run/lirc/lircd" # Config-Directory CFG_DIR="/var/lib/vdr" # Plugin-Directory PLUGIN_DIR="/usr/lib/vdr/plugins" # Plugin Config-Directory PLUGIN_CFG_DIR="/etc/vdr/plugins" # Plugin prefix PLUGIN_PREFIX="libvdr-" # Command-Hooks Directory CMDHOOKSDIR="/usr/share/vdr/command-hooks" # Commmand executed on start, stop and editing of a recording REC_CMD=/usr/lib/vdr/vdr-recordingaction # Commmand executed by vdr to shutdown the system SHUTDOWNCMD="/sbin/shutdown -h now" # EPG data file EPG_FILE=/var/cache/vdr/epg.data # Username under which vdr will run (Note: the user root is not # allowed to run vdr, vdr will abort when you try to start it as # root or with "-u root") USER=vdr # Default port for SVDRP SVDRP_PORT=6419 # Enable / Disable vdr daemon ENABLED=0 # Enable / Disable automatic shutdown ENABLE_SHUTDOWN=0 # Video-Directory VIDEO_DIR="/srv/vdr/video.00" # Set this to load only startable plugins (check with "vdr -V -P plugin") PLUGIN_CHECK_STARTABLE="yes" # Default Console for controlling VDR by keyboard. Empty means no console # input. KEYB_TTY="" # Set this to 1 to make VDR switch to the console specified in KEYB_TTY # on startup KEYB_TTY_SWITCH=0 # get locale which is used for running vdr from /etc/default/locale or # /etc/environment or fall back to "C" ENV_FILE="none" [ -r /etc/environment ] && ENV_FILE="/etc/environment" [ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale" [ $ENV_FILE = none ] || \ for var in LANG LC_ALL; do eval VDR_LANG=$(egrep "^[^#]*${var}=" $ENV_FILE | tail -n1 | cut -d= -f2) [ -z "$VDR_LANG" ] || break done [ -z "$VDR_LANG" ] && VDR_LANG="C" # Enable VFAT file system support by default VFAT=1 test -f /etc/default/vdr && . /etc/default/vdr
-
Sieht deine /etc/dbus-1/system.d/vdr-upstart.conf wie im Git aus: https://github.com/yavdr/yavdr…system.d/vdr-upstart.conf ?
Mir ist noch nicht klar, warum da die Rechte fehlen... -
Die sieht mir bei mir genau so aus. Das mit den Rechten kann ich mir auch irgendwie nicht erklären.
-
Hast du die /etc/sudoers mit visudo (also "sudo visudo") bearbeitet? Da hast du ja etwas herumgeschnibbelt:
statt
Endet die Datei mit einer Leerzeile?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!