April 20, 201511 yr Hello All, ever since i installed a cache drive i have to manually stop the pids to get the array to stop. I am trying to figure why the cache drive is still showing busy even though all the services are stopped. its pointing to Sonarr however, i have the service stopped and cannot access the webpage. has anyone seen this? Apr 20 20:21:12 SERVER emhttp: Unmounting disks... Apr 20 20:21:12 SERVER emhttp: shcmd (218): umount /mnt/cache |& logger Apr 20 20:21:12 SERVER logger: umount: /mnt/cache: device is busy. Apr 20 20:21:12 SERVER logger: (In some cases useful info about processes that use Apr 20 20:21:12 SERVER logger: the device is found by lsof( or fuser(1)) Apr 20 20:21:12 SERVER emhttp: Retry unmounting disk share(s)... root@SERVER:~# fuser -mv /mnt/cache /mnt/user/* Cannot stat /mnt/user/*: No such file or directory Cannot stat /mnt/user/*: No such file or directory Cannot stat /mnt/user/*: No such file or directory USER PID ACCESS COMMAND /mnt/cache: nobody 32276 F...m mono Apr 20 18:25:28 SERVER sudo: root : TTY=console ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /usr/local/PhAzE-Common/Sonarr/startcfg.sh; [u][i][b]mono-servic[/b][/i][/u]e -d:/usr/local/Sonarr -l:/tmp/Sonarr.lock --debug /usr/local/Sonarr/NzbDrone.exe /? root@SERVER:/mnt/cache/appdata# ps ax | grep mono 30512 pts/0 R+ 0:00 grep mono 32276 ? Sl 61:45 /usr/bin/mono --debug /usr/local/Sonarr/NzbDrone.exe /nobrowser
April 21, 201511 yr root@SERVER:/mnt/cache/appdata# ps ax | grep mono 30512 pts/0 R+ 0:00 grep mono 32276 ? Sl 61:45 /usr/bin/mono --debug /usr/local/Sonarr/NzbDrone.exe /nobrowser One thing is that being logged in with the current directory as /mnt/cache is enough to stop the system from unmounting the drive - because it is in use. Doubt its completely your problem, but it is something to be aware of
April 26, 201511 yr Author so i just upgraded to pro to add in some new HDD's and i stopped all my plugins and tried to down the array. waiting 15 mins and all it was logging was attempting to unmount over and over. i did a top again and see mono and after i killed the pid for that one service, the array stopped without issue. it does seem that sonarr is my problem however, i don't know why 1. it keeps the array from stopping as you advised it should not keep it from stopping 2. when i stop the plugin "sonarr" why is it not killing that that service?
April 26, 201511 yr Not sure if this will help your case. But when I have this problem, I always follow this guide and it helps: http://lime-technology.com/forum/index.php?topic=1905.msg13461#msg13461
April 26, 201511 yr Author i think i found the issue though not sure how to fix it. when you shutdown sonarr, its running /etc/rc.d.rc.Sonarr shutdown. and within that fine i done see any mention of the Mono pid only Sonarr # Read our configuration file and set variables APPNAME="Sonarr" DISPLAYNAME="Sonarr" PLGCONFFILE="/boot/config/plugins/${APPNAME}/${APPNAME}.cfg" APPCONFFILE="config.xml" APPEXECUTABLE="NzbDrone.exe" PHAZECOMMON="/usr/local/PhAzE-Common" STARTFILE="$PHAZECOMMON/${APPNAME}/startcfg.sh" PIDFILE="/var/run/${APPNAME}/${APPNAME}.pid" source "$PLGCONFFILE" # Send the kill command to gracefully shutdown kill $(cat "$PIDFILE" ) 2> /dev/null # Begin a timer for shutdown, force kill process if not shut down by end of timer TIMER=0 while [ -e "$PIDFILE" ]; do let TIMER=$TIMER+1 sleep 1 # Process has ended but PID file remains, so remove it if [ ! -f /proc/`cat "$PIDFILE" 2> /dev/null`/exe ]; then rm "$PIDFILE" 2> /dev/null fi if [ $TIMER -gt 30 ]; then echo "Application has not shut down yet, killing the process" sleep 1 kill -9 $(cat "$PIDFILE" ) 2> /dev/null rm "$PIDFILE" break
April 26, 201511 yr i think i found the issue though not sure how to fix it. when you shutdown sonarr, its running /etc/rc.d.rc.Sonarr shutdown. and within that fine i done see any mention of the Mono pid only Sonarr # Read our configuration file and set variables APPNAME="Sonarr" DISPLAYNAME="Sonarr" PLGCONFFILE="/boot/config/plugins/${APPNAME}/${APPNAME}.cfg" APPCONFFILE="config.xml" APPEXECUTABLE="NzbDrone.exe" PHAZECOMMON="/usr/local/PhAzE-Common" STARTFILE="$PHAZECOMMON/${APPNAME}/startcfg.sh" PIDFILE="/var/run/${APPNAME}/${APPNAME}.pid" source "$PLGCONFFILE" # Send the kill command to gracefully shutdown kill $(cat "$PIDFILE" ) 2> /dev/null # Begin a timer for shutdown, force kill process if not shut down by end of timer TIMER=0 while [ -e "$PIDFILE" ]; do let TIMER=$TIMER+1 sleep 1 # Process has ended but PID file remains, so remove it if [ ! -f /proc/`cat "$PIDFILE" 2> /dev/null`/exe ]; then rm "$PIDFILE" 2> /dev/null fi if [ $TIMER -gt 30 ]; then echo "Application has not shut down yet, killing the process" sleep 1 kill -9 $(cat "$PIDFILE" ) 2> /dev/null rm "$PIDFILE" break You should probably post in Phaze's thread. He may miss this thread here
Archived
This topic is now archived and is closed to further replies.