Page 1 of 1

AmahiTunes server stopped - will not restart??

Posted: Sat May 08, 2010 6:38 am
by hfxrzw
Hi, in the control panel for servers it shows that the server has stopped and using the restart function doesn't work. Where do I start to look?

Re: AmahiTunes server stopped - will not restart??

Posted: Mon May 10, 2010 11:25 pm
by cpg
in /var/log/monit and also also:

Code: Select all

service mt-daapd restart
and look for errors in /var/log/messages as well.

Re: AmahiTunes server stopped - will not restart??

Posted: Wed May 12, 2010 12:26 pm
by stueyboy
I'm having a similar problem. AmahiTunes stops some time after starting. The Monit file shows this as the last entry
monit: Error reading pid from file '/var/run/mt-daapd.pid'
Any help gratefully appreciated. I am able to restart the service but it tends to stop soon afterwards.

Re: AmahiTunes server stopped - will not restart??

Posted: Wed May 12, 2010 4:09 pm
by cpg
do you see any errors in /var/log/messages ?

Re: AmahiTunes server stopped - will not restart??

Posted: Thu May 13, 2010 10:22 am
by stueyboy
No errors at all in the messages file, however after looking in the mt-daapd.log file I found this entry (several times)
2010-05-13 18:18:35: Short file: /var/hda/files/music/Music_2009/Simpson_sounds/heehee.mp3
2010-05-13 18:18:35: Short file: /var/hda/files/music/Music_2009/Simpson_sounds/m64slice.mp3
2010-05-13 18:18:36: Starting web server from /usr/share/mt-daapd/admin-root on port 3689
2010-05-13 18:18:36: Could not open port: Address already in use
2010-05-13 18:18:36: Error staring web server: Address already in use
2010-05-13 18:18:36: Aborting
I think I might delete that sound folder and see what happens.
OK So as a bit of an update, after moving the offending files I now get this cycle of messages every 30 second basically
2010-05-13 19:15:30: Starting rendezvous daemon
2010-05-13 19:15:30: Client running
2010-05-13 19:15:30: Current database version: 8
2010-05-13 19:15:30: Starting signal handler
2010-05-13 19:15:30: Loading playlists
2010-05-13 19:15:30: Initializing database
2010-05-13 19:15:31: Starting mp3 scan
2010-05-13 19:15:32: Starting web server from /usr/share/mt-daapd/admin-root on port 3689
2010-05-13 19:15:32: Could not open port: Address already in use
2010-05-13 19:15:32: Error staring web server: Address already in use
2010-05-13 19:15:32: Aborting

Re: AmahiTunes server stopped - will not restart??

Posted: Thu May 13, 2010 11:45 am
by cpg
the PID is stuck for this app. it's actually running one instance.

Code: Select all

rm /var/run/mt-daapd.pid && killall mt-daapd
This is a bug. It would be good if you could file one (bugs.amahi.org > projects > apps > new-issue).

Re: AmahiTunes server stopped - will not restart??

Posted: Thu May 13, 2010 12:37 pm
by stueyboy
Thanks for the help. This seems to have kickstarted the server again. I will log the issue as suggested.

Ta

Stu