Autor Thema: Synology NAS won't shutdown after mediaclient --start is called  (Gelesen 12553 mal)

tougher

  • Newbie
  • *
  • Beiträge: 8
    • Profil anzeigen
Synology NAS won't shutdown after mediaclient --start is called
« am: August 20, 2012, 10:25:30 Nachmittag »
I've read that the Sundtek dongle now is support on the Synology NAS's. And it seems to be working great with Tvheadend.

But the NAS won't shutdown or reboot after /opt/bin/mediaclient --start has been called. Even if /opt/bin/mediaclient --shutdown is called shutdown and reboots hangs.

Nothing spectacular in the mediasrv.log file:
2012-08-20 12:09:19 [9167] Enabling standby
2012-08-20 12:09:19 [9167] clearing id: 0
2012-08-20 12:09:19 [9167] removing devices
2012-08-20 12:09:19 [9167] Shutting down driver now
2012-08-20 12:09:19 [9168] received shutdown request
2012-08-20 12:25:31 [7996] Starting up Multimedia Framework (Aug  7 2012 02:14:30)

Anyone experiencing the same issues?

My NAS is running DSM 4.1 beta (can't downgrade :()

tougher

  • Newbie
  • *
  • Beiträge: 8
    • Profil anzeigen

tougher

  • Newbie
  • *
  • Beiträge: 8
    • Profil anzeigen
Re:Synology NAS won't shutdown after mediaclient --start is called
« Antwort #2 am: August 20, 2012, 10:32:42 Nachmittag »
By the way, I've made this script to be sure that --shutdown is called.

#!/bin/sh

case "$1" in
start)
  echo "Starting Sundtek Mediaclient"
  /opt/bin/mediaclient --start
  ;;
stop)
  /opt/bin/mediaclient --shutdown
  ;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
esac
 
exit 0

It's in the /usr/syno/etc/rc.d folder.

tougher

  • Newbie
  • *
  • Beiträge: 8
    • Profil anzeigen
Re:Synology NAS won't shutdown after mediaclient --start is called
« Antwort #3 am: August 21, 2012, 09:18:42 Vormittag »
Correction. As soon as the installer script is run the NAS won't shutdown or reboot. Uninstalling with -u won't help. I reinstalled the NAS to make it working. Maby this is due to the 4.1 beta  :-\

I see a crap load of this as the last thing in /var/log/messages:

Aug 20 22:34:48 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:34:49 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:34:50 umount: umount /opt kill the process "" with /opt/bin/bash.
[...]
Aug 20 22:35:10 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:11 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:12 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:14 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:15 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:16 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:17 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:18 umount: umount /opt kill the process "" with /opt/bin/bash.
Aug 20 22:35:19 umount: umount /opt start to send kill process.

I don't know how to debug this, anyone?

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:Synology NAS won't shutdown after mediaclient --start is called
« Antwort #4 am: August 21, 2012, 10:37:53 Vormittag »
Hi, that might sound more clear now.

Maybe the Synology NAS tries to unmount /opt, but cannot since the driver is still being accessed.

Can you contact us via Skype-Chat "sundtek" in order to try some workaround?
Failure is a good thing! I'll fix it

tougher

  • Newbie
  • *
  • Beiträge: 8
    • Profil anzeigen
Re:Synology NAS won't shutdown after mediaclient --start is called
« Antwort #5 am: August 21, 2012, 10:59:31 Nachmittag »
I figured that this issue only happens when the NAS i bootstrapped, so now it's not.
After "force" downgrading to DSM 4.0 I don't see any abnormal entries in /var/log/messages after a power cycle. I have come to the conclusion that it will be hard to debug and I will just leave my NAS unbootstrapped.

Thanks for a great product! I think it's must be the oldest product I own which still gets updates :)

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:Synology NAS won't shutdown after mediaclient --start is called
« Antwort #6 am: August 21, 2012, 11:24:04 Nachmittag »
if possible please contact us via skype chat "sundtek" or webchat http://chat.sundtek.de (irc.freenode.net #sundtek)


Our software is written to keep up support for all devices we ever sold, also for the future.
Failure is a good thing! I'll fix it