I messed up my mpd install :'(

hi all

sorry to worry again … but i have messed up my mpd install and i’m really lost

my mpd.conf

See: /usr/share/doc/mpd/mpdconf.example

pid_file “/home/angelus/.config/mpd/pid/mpd.pid”
db_file “/home/angelus/.config/mpd/database/mpd.db”
log_file “/home/angelus/.config/mpd/log/mpd.log”
state_file “/home/angelus/.config/mpd/state/”
playlist_directory “/home/angelus/.config/mpd/playlists/”
user “angelus”
#bind_to_address “127.0.0.1”
port “6600”
bind_to_address “/home/angelus/.config/mpd/socket”
log_level “error”
auto_update “yes”
music_directory “/home/angelus/Music/”
audio_output {
type “alsa”
name “Alsa for audio sound card”
mixer_type “software” # optional
}

my mpd.socket

[Socket]
ListenStream=%t/mpd/socket
ListenStream=6600
Backlog=5
KeepAlive=true
PassCredentials=true

[Install]
WantedBy=sockets.target

first part of my ncmpcpp config

Files

mpd_music_dir = “/home/angelus/Music/”
lyrics_directory = ~/.ncmpcpp/lyrics
ncmpcpp_directory = ~/.ncmpcpp
#mpd_host = “127.0.0.1”
mpd_host = “/home/angelus/.config/mpd/socket”
mpd_port = “6600”
mpd_connection_timeout = “5”
mpd_crossfade_time = “5”

output of “mpd” in terminal

[angelus@Angelus ~]$ mpd
May 26 13:14 : libsamplerate: libsamplerate converter ‘Fastest Sinc Interpolator’
May 26 13:14 : vorbis: Xiph.Org libVorbis 1.3.7
May 26 13:14 : opus: libopus 1.3.1
May 26 13:14 : sndfile: libsndfile-1.0.31
May 26 13:14 : hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
May 26 13:14 : exception: Decoder plugin ‘wildmidi’ is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
May 26 13:14 : simple_db: reading DB
May 26 13:14 : exception: Input plugin ‘tidal’ is not configured: No Tidal application token configured
May 26 13:14 : exception: Input plugin ‘qobuz’ is not configured: No Qobuz app_id configured
May 26 13:14 : curl: version 7.76.1
May 26 13:14 : curl: with OpenSSL/1.1.1k

systemctl status mpd.service

× mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-05-26 13:04:47 SAST; 11min ago
TriggeredBy: × mpd.socket
Docs: man:mpd(1)
man:mpd.conf(5)
Process: 9983 ExecStart=/usr/bin/mpd --no-daemon (code=exited, status=1/FAILURE)
Main PID: 9983 (code=exited, status=1/FAILURE)
CPU: 83ms

May 26 13:04:47 Angelus systemd[1]: Starting Music Player Daemon…
May 26 13:04:47 Angelus mpd[9983]: exception: failed to open log file "/home/angelus/.config/mpd/lo>
May 26 13:04:47 Angelus systemd[1]: mpd.service: Main process exited, code=exited, status=1/FAILURE
May 26 13:04:47 Angelus systemd[1]: mpd.service: Failed with result ‘exit-code’.
May 26 13:04:47 Angelus systemd[1]: Failed to start Music Player Daemon.

systemctl status mpd.socket

× mpd.socket
Loaded: loaded (/usr/lib/systemd/system/mpd.socket; disabled; vendor preset: disabled)
Active: failed (Result: service-start-limit-hit) since Wed 2021-05-26 12:58:22 SAST; 19min ago
Triggers: ● mpd.service
Listen: /run/mpd/socket (Stream)
[::]:6600 (Stream)
CPU: 414us

May 26 12:11:32 Angelus systemd[1]: Listening on mpd.socket.
May 26 12:58:22 Angelus systemd[1]: mpd.socket: Failed with result ‘service-start-limit-hit’.

:man_shrugging:

Apparently there’s something wrong with the log file?

yeah i saw that … it abit strange to me because it is writing to the log file

[angelus@Angelus log]$ ls -l
total 8
-rw-r–r-- 1 angelus angelus 4153 May 26 13:19 mpd.log
[angelus@Angelus log]$

and mpd is in the angelus group so it should have the same permissions

Have you checked traverse permissions (X) on all its parent directories?

um are u talking about this ?

[angelus@Angelus mpd]$ ls -l
total 24
drwxr-xr-x 2 angelus angelus 4096 May 25 22:42 database
drwxr-xr-x 2 angelus angelus 4096 May 25 19:15 log
-rw-r–r-- 1 angelus angelus 634 May 26 13:12 mpd.conf
drwxr-xr-x 2 angelus angelus 4096 May 26 10:06 pid
drwxr-xr-x 2 angelus angelus 4096 May 25 19:14 playlists
srw-rw-rw- 1 angelus angelus 0 May 26 13:19 socket
drwxr-xr-x 2 angelus angelus 4096 May 25 19:13 state

changed it now to

[angelus@Angelus log]$ ls -l
total 8
-rwxrwxr-- 1 angelus angelus 4153 May 26 13:19 mpd.log
[angelus@Angelus log]$

edit ;

it does the same errors

Partly. Check the entire path to make sure group traversal is allowed all the way down the tree.

[angelus@Angelus ~]$ namei -l /home/angelus/.config/mpd/*
f: /home/angelus/.config/mpd/database
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
drwxr-xr-x angelus angelus database
f: /home/angelus/.config/mpd/log
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
drwxr-xr-x angelus angelus log
f: /home/angelus/.config/mpd/mpd.conf
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
-rw-r–r-- angelus angelus mpd.conf
f: /home/angelus/.config/mpd/pid
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
drwxr-xr-x angelus angelus pid
f: /home/angelus/.config/mpd/playlists
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
drwxr-xr-x angelus angelus playlists
f: /home/angelus/.config/mpd/socket
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
srw-rw-rw- angelus angelus socket
f: /home/angelus/.config/mpd/state
drwxr-xr-x root root /
drwxr-xr-x root root home
drwx–x— angelus angelus angelus
drwx------ angelus angelus .config
drwxr-xr-x angelus angelus mpd
drwxr-xr-x angelus angelus state

Yeah. 

ohhhhh ok lol what is it supposed to be lol

https://wiki.archlinux.org/index.php/File_permissions_and_attributes

thanks i’ll go check and report back … thanks for the help

could be also you need to use pulseaudio to get it working instead of alsa, for me also never worked on arch for mpd:

#pulseaudio

audio_output {
type "pulse"
name "pulse audio"
}

@jonathon @joekamprad

ok ncmpcpp opened and loaded my music up so that is good

but then i opened a different player that i want to try out and then they both lost connection lol

so how do i release and reconnect please

ok restart sorted it … thanks alot

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.