Hi guys!
I've been having a recurrent issue with Monit and Sonarr and failed to solve it. I was hoping someone could give me a hand on this issue.
Monit is checking my processes, and does a wonderful job at keeping my apps up, except for Sonaar. It always fail to restart it.
Below is my monit/sonarr config :
and here is the log file when Sonarr crashes and monit fails to reload :
Any clue on what I did wrong? I have no trouble stopping/starting sonarr using the following :
Thanks for your help!
I've been having a recurrent issue with Monit and Sonarr and failed to solve it. I was hoping someone could give me a hand on this issue.
Monit is checking my processes, and does a wonderful job at keeping my apps up, except for Sonaar. It always fail to restart it.
Below is my monit/sonarr config :
Code:
check process Sonarr with pidfile /home/pi/.config/NzbDrone/nzbdrone.pid
start program = "/usr/sbin/service nzbdrone start" with timeout 60 seconds
stop program = "/usr/sbin/service nzbdrone stop"
if failed host 127.0.0.1 port 8989 with timeout 60 seconds then restart
if changed pid then exec /etc/monit/pushbullet.sh
if 10 restarts within 10 cycles then exec "/etc/monit/pushbullet.sh"
if 11 restarts within 11 cycles then unmonitor
Code:
[CEST Jun 23 20:27:39] error : 'Sonarr' process is not running
[CEST Jun 23 20:27:39] info : 'Sonarr' trying to restart
[CEST Jun 23 20:27:39] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:28:39] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:29:40] error : 'Sonarr' process is not running
[CEST Jun 23 20:29:40] info : 'Sonarr' trying to restart
[CEST Jun 23 20:29:40] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:30:40] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:31:40] error : 'Sonarr' process is not running
[CEST Jun 23 20:31:40] info : 'Sonarr' trying to restart
[CEST Jun 23 20:31:40] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:32:40] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:33:40] error : 'Sonarr' process is not running
[CEST Jun 23 20:33:40] info : 'Sonarr' trying to restart
[CEST Jun 23 20:33:40] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:34:40] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:35:41] error : 'Sonarr' process is not running
[CEST Jun 23 20:35:41] info : 'Sonarr' trying to restart
[CEST Jun 23 20:35:41] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:36:41] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:37:41] error : 'Sonarr' process is not running
[CEST Jun 23 20:37:41] info : 'Sonarr' trying to restart
[CEST Jun 23 20:37:41] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:38:41] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:39:41] error : 'Sonarr' process is not running
[CEST Jun 23 20:39:41] info : 'Sonarr' trying to restart
[CEST Jun 23 20:39:41] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:40:42] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:41:42] error : 'Sonarr' process is not running
[CEST Jun 23 20:41:42] info : 'Sonarr' trying to restart
[CEST Jun 23 20:41:42] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:42:43] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:43:43] error : 'Sonarr' process is not running
[CEST Jun 23 20:43:43] info : 'Sonarr' trying to restart
[CEST Jun 23 20:43:43] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:44:44] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:45:44] error : 'Sonarr' process is not running
[CEST Jun 23 20:45:44] info : 'Sonarr' trying to restart
[CEST Jun 23 20:45:44] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:46:45] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:47:45] error : 'Sonarr' service restarted 10 times within 10 cycles(s) - exec
[CEST Jun 23 20:47:45] info : 'Sonarr' exec: /etc/monit/pushbullet.sh
[CEST Jun 23 20:47:45] error : 'Sonarr' process is not running
[CEST Jun 23 20:47:45] info : 'Sonarr' trying to restart
[CEST Jun 23 20:47:45] info : 'Sonarr' start: /usr/sbin/service
[CEST Jun 23 20:48:46] error : 'Sonarr' failed to start (exit status 0) -- no output
[CEST Jun 23 20:49:46] error : 'Sonarr' service restarted 11 times within 11 cycles(s) - unmonitor
Code:
sudo service nzbdrone stop
sudo service nzbdrone start
Thanks for your help!