Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cant stop array (mnt/cache/ busy)

Featured Replies

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

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

  • 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?

 

  • 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

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.