AmahiTunes server stopped - will not restart??

hfxrzw
Posts: 40
Joined: Sun Dec 27, 2009 8:03 am
Location: Scotland

AmahiTunes server stopped - will not restart??

Postby hfxrzw » Sat May 08, 2010 6:38 am

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?

User avatar
cpg
Administrator
Posts: 2605
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: AmahiTunes server stopped - will not restart??

Postby cpg » Mon May 10, 2010 11:25 pm

in /var/log/monit and also also:

Code: Select all

service mt-daapd restart
and look for errors in /var/log/messages as well.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

stueyboy
Posts: 101
Joined: Tue Mar 09, 2010 2:54 am

Re: AmahiTunes server stopped - will not restart??

Postby stueyboy » Wed May 12, 2010 12:26 pm

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.

User avatar
cpg
Administrator
Posts: 2605
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: AmahiTunes server stopped - will not restart??

Postby cpg » Wed May 12, 2010 4:09 pm

do you see any errors in /var/log/messages ?
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

stueyboy
Posts: 101
Joined: Tue Mar 09, 2010 2:54 am

Re: AmahiTunes server stopped - will not restart??

Postby stueyboy » Thu May 13, 2010 10:22 am

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

User avatar
cpg
Administrator
Posts: 2605
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: AmahiTunes server stopped - will not restart??

Postby cpg » Thu May 13, 2010 11:45 am

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).
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

stueyboy
Posts: 101
Joined: Tue Mar 09, 2010 2:54 am

Re: AmahiTunes server stopped - will not restart??

Postby stueyboy » Thu May 13, 2010 12:37 pm

Thanks for the help. This seems to have kickstarted the server again. I will log the issue as suggested.

Ta

Stu

Who is online

Users browsing this forum: No registered users and 3 guests