[SOLVED] mpd + mympd + MPDroid

Hello,

I’ve installed mympd but I can’t access the web interface at 192.168.1.24:1333, where 192.168.1.24 is the static IP of my RPi3

I’ve check the status of the service :

root@DietPi:~# service mympd status
● mympd.service - myMPD
   Loaded: loaded (/lib/systemd/system/mympd.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2018-10-08 14:38:25 CEST; 6h ago
  Process: 1844 ExecStart=/usr/bin/mympd /etc/mypd/mympd.conf (code=exited, status=1/FAILURE)
 Main PID: 1844 (code=exited, status=1/FAILURE)

oct. 08 14:38:25 DietPi systemd[1]: Started myMPD.
oct. 08 14:38:25 DietPi mympd[1844]: Parsing config file: /etc/mypd/mympd.conf
oct. 08 14:38:25 DietPi mympd[1844]: Can't load config file "/etc/mypd/mympd.conf"
oct. 08 14:38:25 DietPi systemd[1]: mympd.service: Main process exited, code=exited, status=1/FAILURE
oct. 08 14:38:25 DietPi systemd[1]: mympd.service: Unit entered failed state.
oct. 08 14:38:25 DietPi systemd[1]: mympd.service: Failed with result 'exit-code'.

Maybe someone can help me.

Hmm, works well here on VBox Stretch (€: and Jessie).

Seems something is wrong with our mympd.conf. Please check the following:

ls -al /etc/mympd/mympd.conf
cat /etc/mympd/mympd.conf

Thanks for answering

root@DietPi:~# ls -al /etc/mympd/mympd.conf
-rw-r--r-- 1 mympd mympd 765 oct.   7 12:00 /etc/mympd/mympd.conf
root@DietPi:~# cat /etc/mympd/mympd.conf
#myMPD config file

#Connection to mpd
mpdhost = 127.0.0.1
mpdport = 6600
#mpdpass = 

#Webserver options
webport = 1333

#Enable ssl
ssl = false
sslport = 443
sslcert = /etc/mympd/ssl/server.pem
sslkey = /etc/mympd/ssl/server.key

#myMPD user
user = mympd

#Port for mpd http stream
streamport = 8000

#Name for coverimages
coverimage = folder.jpg

#myMPD state directory
varlibdir = /var/lib/mympd

#Enable mixramp settings
mixramp = false

#Enable usage of mpd stickers for play statistics and voting
stickers = true

#List of tags in myMPD gui
#Supported tags: Artist,Album,AlbumArtist,Title,Track,Genre,Date,Composer,Performer
taglist = Artist,Album,AlbumArtist,Title,Track,Genre,Date,Composer,Performer

#Enable smart playlists
smartpls = true
group = dietpi

See solution.

https://github.com/Fourdee/DietPi/issues/2088

OK, I saw the github issue & applied the PRE V6.17 solution.
Now I can access the mympd interface at 192.168.1.24:1333, but the connection has failed.
I have a “connection error” message : “Connection to myMPD failed. Trying to reconnect to ws://192.168.1.24:1333/ws”

If I restart the mympd service, I can see that it is active with connection error with mpd :

root@DietPi:~# service mympd status
● mympd.service - myMPD
   Loaded: loaded (/lib/systemd/system/mympd.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-10-09 18:51:54 CEST; 5s ago
 Main PID: 3694 (mympd)
   CGroup: /system.slice/mympd.service
           └─3694 /usr/bin/mympd /etc/mympd/mympd.conf

oct. 09 18:51:59 DietPi mympd[3694]: MPD connection failed.
oct. 09 18:51:59 DietPi mympd[3694]: MPD Connecting to 127.0.0.1:6600
oct. 09 18:51:59 DietPi mympd[3694]: MPD connection: Connection refused
oct. 09 18:51:59 DietPi mympd[3694]: MPD connection failed.
oct. 09 18:51:59 DietPi mympd[3694]: MPD Connecting to 127.0.0.1:6600
oct. 09 18:51:59 DietPi mympd[3694]: MPD connection: Connection refused
oct. 09 18:51:59 DietPi mympd[3694]: MPD connection failed.
oct. 09 18:51:59 DietPi mympd[3694]: MPD Connecting to 127.0.0.1:6600
oct. 09 18:51:59 DietPi mympd[3694]: MPD connection: Connection refused
oct. 09 18:51:59 DietPi mympd[3694]: MPD connection failed.

After a few seconds, the status is “failed”, as you can see below.

root@DietPi:~# service mympd status
● mympd.service - myMPD
   Loaded: loaded (/lib/systemd/system/mympd.service; disabled; vendor preset: enabled)
   Active: failed (Result: signal) since Tue 2018-10-09 18:39:46 CEST; 2min 42s ago
  Process: 3596 ExecStart=/usr/bin/mympd /etc/mympd/mympd.conf (code=killed, signal=SEGV)
 Main PID: 3596 (code=killed, signal=SEGV)

oct. 09 18:39:45 DietPi mympd[3596]: MPD connection failed.
oct. 09 18:39:46 DietPi mympd[3596]: MPD Connecting to 127.0.0.1:6600
oct. 09 18:39:46 DietPi mympd[3596]: MPD connection: Connection refused
oct. 09 18:39:46 DietPi mympd[3596]: MPD connection failed.
oct. 09 18:39:46 DietPi mympd[3596]: MPD Connecting to 127.0.0.1:6600
oct. 09 18:39:46 DietPi mympd[3596]: MPD connection: Connection refused
oct. 09 18:39:46 DietPi mympd[3596]: MPD connection failed.
oct. 09 18:39:46 DietPi systemd[1]: mympd.service: Main process exited, code=killed, status=11/SEGV
oct. 09 18:39:46 DietPi systemd[1]: mympd.service: Unit entered failed state.
oct. 09 18:39:46 DietPi systemd[1]: mympd.service: Failed with result 'signal'.

An idea ?
Thanks.

OK I found my problem.
First I’ve used MPDroid to control mpd but I have too many connection bugs with my old phone, so in the mpd config I’ve changed the “bind to address” to 192.168.1.24 to use MPDroid on my phone.
In the config file of mympd, mpdhost is “localhost”, so I need to change the IP to 192.168.1.24 and that’s OK.

4nT01n3
Great it works now. I was not aware of the type on current master. Thanks to Edward for sharing :slight_smile:.

Might want to make it a static IP…otherwise if DHCP decides it wants to give it a new IP, all that work will have to be re-done