# Issue with monit on pi2 running musicbox0.5.4beta

**URL:** <https://discourse.mopidy.com/t/issue-with-monit-on-pi2-running-musicbox0-5-4beta/613>\
**Category:** Pi MusicBox (archive)\
**Created:** [March 10, 2015, 8:21pm UTC](https://discourse.mopidy.com/t/issue-with-monit-on-pi2-running-musicbox0-5-4beta/613 "2015-03-10T20:21:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kibuy](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kibuy](https://discourse.mopidy.com/u/kibuy)\
**Post date:** [March 10, 2015, 8:21pm UTC](https://discourse.mopidy.com/t/issue-with-monit-on-pi2-running-musicbox0-5-4beta/613/1 "2015-03-10T20:21:40Z")

</div>

Hi

I have installed new pi2 with beta MusicBox, it seems to work good but after a short time sound stops.

found the problem with monit keeps to restart Mopidy, i dont use wifi and i think the network is Ok.  
HifiBerry Digi+ connected to amplifier

eth0 Link encap:Ethernet HWaddr b8:27:eb:f4:85:1d  
inet addr:192.168.0.99 Bcast:192.168.0.255 Mask:255.255.255.0  
inet6 addr: fe80::ba27:ebff:fef4:851d/64 Scope:Link  
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1  
RX packets:8615 errors:0 dropped:0 overruns:0 frame:0  
TX packets:5357 errors:0 dropped:0 overruns:0 carrier:0  
collisions:0 txqueuelen:1000  
RX bytes:4468455 (4.2 MiB) TX bytes:2015759 (1.9 MiB)

/var/log/monit.log

[CET Mar 10 20:50:46] info : ‘system\_kaispot’ Monit started  
[CET Mar 10 20:50:46] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 20:52:46] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 20:52:46] info : ‘mopidy’ trying to restart  
[CET Mar 10 20:52:46] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 20:52:47] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 20:54:47] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 20:54:47] info : ‘mopidy’ trying to restart  
[CET Mar 10 20:54:47] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 20:54:48] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 20:56:48] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 20:56:48] info : ‘mopidy’ trying to restart  
[CET Mar 10 20:56:48] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 20:56:49] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 20:58:49] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 20:58:49] info : ‘mopidy’ trying to restart  
[CET Mar 10 20:58:49] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 20:58:50] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 21:00:50] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 21:00:50] info : ‘mopidy’ trying to restart  
[CET Mar 10 21:00:50] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 21:00:51] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 21:02:51] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 21:02:51] info : ‘mopidy’ trying to restart  
[CET Mar 10 21:02:51] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 21:02:51] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 21:04:52] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 21:04:52] info : ‘mopidy’ trying to restart  
[CET Mar 10 21:04:52] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 21:04:52] info : ‘mopidy’ start: /etc/init.d/mopidy  
[CET Mar 10 21:06:52] error : ‘mopidy’ failed, cannot open a connection to INET[localhost:6680] via TCP  
[CET Mar 10 21:06:52] info : ‘mopidy’ trying to restart  
[CET Mar 10 21:06:52] info : ‘mopidy’ stop: /etc/init.d/mopidy  
[CET Mar 10 21:06:53] info : ‘mopidy’ start: /etc/init.d/mopidy

Any idea to fix this ?

---

<div class="post-metadata">

**Author:** ![kibuy](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kibuy](https://discourse.mopidy.com/u/kibuy)\
**Post date:** [March 11, 2015, 6:35am UTC](https://discourse.mopidy.com/t/issue-with-monit-on-pi2-running-musicbox0-5-4beta/613/2 "2015-03-11T06:35:06Z")

</div>

I disabled the check of Mopidy port 6680, file /etc/monit/monitrc.d/mopidy

check process mopidy with pidfile /var/run/mopidy.pid  
start program = "/etc/init.d/mopidy start"  
stop program = "/etc/init.d/mopidy stop"  
restart program = “/etc/init.d/mopidy restart”  
#if failed port 6680 protocol http for 10 cycles then restart

Strange that monit has failure on port, I cant see/hear any problem running MusicBox / Mopidy and  
/var/log/mopidy/mopidy.log has no error.

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/issue-with-monit-on-pi2-running-musicbox0-5-4beta/613/3 "2026-02-19T11:47:49Z")

</div>


