Public bug reported:
mpd ignores the "port" and port section in "listen_to_address" in
configuration file by default, listens always to port 6600 and fails to
tell user about the situation. If I have 'bind_to_address
"192.168.0.1:16600"' or 'port "16600"' (or both) in my /etc/mpd.conf,
mpd just ignores them and listens to default port (6600).
# lsof|grep mpd|grep TCP
mpd 20791 mpd 9u IPv4 269974 0t0
TCP moot:6600 (LISTEN)
io 20791 20793 mpd 9u IPv4 269974 0t0
TCP moot:6600 (LISTEN)
player 20791 20794 mpd 9u IPv4 269974 0t0
TCP moot:6600 (LISTEN)
decoder:f 20791 20795 mpd 9u IPv4 269974 0t0
TCP moot:6600 (LISTEN)
output:Al 20791 20796 mpd 9u IPv4 269974 0t0
TCP moot:6600 (LISTEN)
This is the only related thing I found from /var/log/mpd/mpd.log:
Nov 06 09:47 : zeroconf: No global port, disabling zeroconf
Googling that actually lead me to an URL(1) containing a solution.
To workaround the situation, I did:
systemctl disable mpd.socket
systemctl enable mpd.service
systemctl restart mpd.service
I have no idea whether that is a ideal solution or if it breaks
somethinge else. Anyway, I think the "port" and "bind_to_address"
options should work out of the box. I am also confused by the fact that
the default port was used instead of the one I specified and no errors
were shown in systemd or mpd logs about this fallback. The only thing
that was perhaps somehow related was this zeroconf thing. Example config
is attached.
(1) http://article.gmane.org/gmane.comp.audio.musicpd.devel/21785
** Affects: mpd (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Example mpd.conf"
https://bugs.launchpad.net/bugs/1639544/+attachment/4773289/+files/mpd.conf
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1639544
Title:
mpd ignores the "port" in config by default
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mpd/+bug/1639544/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs