[Pkg-mpd-maintainers] Bug#813754: Bug#813754: Can't open port 6600 when run syste, -wide vis systemd

Lisandro Damián Nicanor Pérez Meyer perezmeyer at gmail.com
Tue Feb 9 04:16:15 UTC 2016


On Monday 08 February 2016 21:21:20 you wrote:
> Hi Lisandro,
> 
> > Hi! I use mpd on my personal machine as a system service, without
> > pulseaudio.
> > 
> > I noticed that if I let mpd start via systemd port 6600 will not be
> > opened.
> 
> mpd uses systemd's socket activation feature, as defined in
> /lib/systemd/system/mpd.socket,

Correct.

> so port 6600 should be open and you
> should see systemd listening there until the first connection is
> actually made.
> 
> What is the netstat output after system startup?

# netstat -putan | grep mpd
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      721/mpd

Nos I never though of grepping 6600:
         
# netstat -putan | grep 6600
tcp6       0      0 :::6600                 :::*                    LISTEN      1/init

Moreover:

# lsof | grep 6600
systemd      1            root   52u     IPv6              12676        0t0        TCP *:6600 (LISTEN)
mpd        641             mpd    4u     IPv6              12676        0t0        TCP *:6600 (LISTEN)
io         641 1113        mpd    4u     IPv6              12676        0t0        TCP *:6600 (LISTEN)
player     641 1114        mpd    4u     IPv6              12676        0t0        TCP *:6600 (LISTEN)
decoder    641 1115        mpd    4u     IPv6              12676        0t0        TCP *:6600 (LISTEN)
output:Lu  641 1281        mpd    4u     IPv6              12676        0t0        TCP *:6600 (LISTEN)
output:Lu  641 1282        mpd    4u     IPv6              12676        0t0        TCP *:6600 (LISTEN)

And also:

# cat /var/log/mpd/mpd.log
Feb 09 01:07 : state_file: Saving state file /var/lib/mpd/state
Feb 09 01:07 : listen: listen_global_finish called
Feb 09 01:09 : zeroconf: No global port, disabling zeroconf
Feb 09 01:09 : state_file: Loading state file /var/lib/mpd/state
Feb 09 01:09 : replay_gain: replay gain mode has changed -1->1
Feb 09 01:09 : replay_gain: scale=1.000000
Feb 09 01:09 : replay_gain: replay gain mode has changed -1->1
Feb 09 01:09 : replay_gain: scale=1.000000
Feb 09 01:09 : replay_gain: replay gain mode has changed -1->1
Feb 09 01:09 : replay_gain: scale=1.000000                                                                                                                           
Feb 09 01:09 : replay_gain: replay gain mode has changed -1->1                                                                                                       
Feb 09 01:09 : replay_gain: scale=1.000000                                                                                                                           
Feb 09 01:09 : inotify: initializing inotify                                                                                                                         
Feb 09 01:09 : inotify: watching music directory 

> Does 'systemctl status
> mpd.socket' tell you what's wrong?

# systemctl status mpd-socket
● mpd-socket.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

I'm faily noob with respect to systemd, so I might be missing some other tool to check stuff here.



-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-mpd-maintainers/attachments/20160209/ac3d8e28/attachment.sig>


More information about the Pkg-mpd-maintainers mailing list