I’m trying to run mpd on fedora server 37. I’ve copied /etc/mpd.conf
to ~/.config/mpd/mpd.conf
. Then:
systemctl --user start mpd
Job for mpd.service failed because the control process exited with error code.
See “systemctl --user status mpd.service” and “journalctl --user -xeu mpd.service” for details.
The relevent lines form above command I think are:
Jan 14 15:43:54 butler mpd[2165]: exception: failed to open log file “/var/log/mpd/mpd.log” (config line 38): Permission denied
Jan 14 15:43:54 butler systemd[1080]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Ok, so in ~/.config/mpd/mpd.conf
I’ve commented the log file:
#log_file "/var/log/mpd/mpd.log"
The config file even mentions this:
If you use systemd, do not configure a log_file. With systemd, MPD defaults to the systemd journal, which is fine.
It still doesn’t work though. The error from journalctl now is:
Jan 14 15:46:07 butler mpd[2174]: server_socket: bind to ‘0.0.0.0:6600’ failed (continuing anyway, because binding to ‘[::]:6600’ succeeded): Failed to bind socket: Address already in use
Jan 14 15:46:07 butler mpd[2174]: exception: Failed to set group 986: Operation not permitted
Jan 14 15:46:07 butler systemd[1080]: mpd.service: Main process exited, code=exited, status=1/FAILURE
There is nothing listening on port 6600. Why does mpd think there is?
What the group 986 business is about I have no idea.
I’ve set selinux to permissive, thus it’s not selinux fault.