dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

[mpd] does not work

Open LennyLip opened this issue 6 years ago • 6 comments

trying to start image without port and values mapping in portainer - got (bridge network):

exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address in use
exception: Failed to open '/var/lib/mpd/database': No such file or directory
exception: Failed to configure output in line 23
exception: nested: No such audio output plugin: pulse

LennyLip avatar Nov 11 '19 13:11 LennyLip

Also got this, looking else where

DarkAxi0m avatar May 05 '20 06:05 DarkAxi0m

trying to start image without port and values mapping in portainer - got (bridge network):

exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address in use
exception: Failed to open '/var/lib/mpd/database': No such file or directory
exception: Failed to configure output in line 23
exception: nested: No such audio output plugin: pulse

You can solve the exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address in use adding bind_to_address "0.0.0.0" in mpd.conf.

Relating to exception: Failed to open '/var/lib/mpd/database': No such file or directory I solved mounting /var/lib/mpd.

You have to check your audio_outputs in mpd.conf to solve the exception: nested: No such audio output plugin: pulse.

HOWEVER, the only way I'm able to start this container is using privileged: true, otherwise I have standard_init_linux.go:211: exec user process caused "operation not permitted". Does anyone know why? @vimagick could you help on this? Thank you.

marcovitali avatar Jun 09 '20 08:06 marcovitali

@marcovitali after messing with individual capability flags on the docker container I have found that the needed option to be used to avoid the standard_init_linux.go:211: exec user process caused "operation not permitted" is SYS_NICE.

I do not recommend running the container with privileged: true as this is a security concern.

LJ-Software avatar Jul 27 '20 15:07 LJ-Software

@marcovitali after messing with individual capability flags on the docker container I have found that the needed option to be used to avoid the standard_init_linux.go:211: exec user process caused "operation not permitted" is SYS_NICE.

I do not recommend running the container with privileged: true as this is a security concern.

@LJ-Software Thank you for the suggestion. I agree with you, but privileged=true was the only way. Now I have removed it. I had not tried with capabilities.

Now I have only the error avahi: Failed to create client: Daemon not running on container startup, but all works correctly.

marcovitali avatar Jul 27 '20 16:07 marcovitali

+1

Seems like this error persists to this day..

radusuciu avatar Aug 06 '20 02:08 radusuciu

FWIW, it seems like the location for the mpd.conf file changed.

The "config" volume specified in the example docker-compose.yml needs to change from:

./data/config:/root/.config

to:

./data/config:/root/.mpd

Once I made that change everything worked.

JCapriotti avatar Aug 21 '23 14:08 JCapriotti