This was all working fine. But now the frontend will not initialize. The log has the following:
ERROR 2015-04-04 03:31:11,202 [2765:MainThread] mopidy.commands
Frontend (MpdFrontend) initialization error: MPD server startup failed: [Errno 99] Cannot assign requested address
Usually people get this message when they start Mopidy from a terminal and
don’t realise Mopidy is already running as a debian service.
https://docs.mopidy.com/en/latest/debian/#running-as-a-system-service
Running ‘sudo service mopidy status’ or ‘ps au | grep mopidy’ will show you
if it’s already running as a service.
wilberking https://discourse.mopidy.com/users/wilberking Wilberking
https://discourse.mopidy.com/users/wilberking
April 4
This was all working fine. But now the frontend will not initialize. The
log has the following:
ERROR 2015-04-04 03:31:11,202 [2765:MainThread] mopidy.commands
Frontend (MpdFrontend) initialization error: MPD server startup failed:
[Errno 99] Cannot assign requested address
Thanks Kingosticks,
The process is not already running. I checked. I went into config and disabled HTTP, but then got the same error when trying to start mpd server.
ERROR 2015-04-04 03:31:11,202 [2765:MainThread] mopidy.commands
Frontend (MpdFrontend) initialization error: MPD server startup failed: [Errno 99] Cannot assign requested address.
When I changed to hostname = 127.0.0.1 for mpd in mopidy.conf, then the frontend started ok.
2015-04-04 15:32:15,824 INFO [2466:MainThread] mopidy.commands: Starting Mopidy frontends: MpdFrontend
2015-04-04 15:32:15,847 INFO [2466:MainThread] mopidy.mpd.actor: MPD server running at [::ffff:127.0.0.1]:6600
I see the same error, and it looks like it is due to mopidy being started before the network connection is available, because after restarting the service once the box is running and connected, it runs just fine. I just can’t seem to find a wait to convince mopidy to wait long enough the first time. I added
After=network-online.target
to mopidy.service, but this doesn’t seem to do the trick.
Any suggestion what else I might try?