[Pkg-mpd-maintainers] Bug#810218: mpd fails to open audio device when started by init script

Arian Sanusi debianbugs at semioptimal.net
Thu Jan 7 10:59:30 UTC 2016


Package: mpd
Version: 0.19.12-1
Severity: normal

Hi,

I have mpd set up to use alsa and use my desktop user 'arian'. 
When mpd is started by debian's init script, it is unable to open the alsa device:

Jan 07 11:42 : alsa_mixer: Failed to read mixer for 'My ALSA Device': failed to attach to default: No such file or directory
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM default
Jan 07 11:42 : alsa_output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "default": No such file or directory
Jan 07 11:42 : output: Failed to open audio output

I confirmed that mpd actually runs as user arian (belonging to audio group). 

When I run mpd manually it works as expected:

arian at paqi:~$ mpd --stderr
server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mpd depends on:
ii  adduser                           3.113+nmu3
ii  init-system-helpers               1.24
ii  libadplug-2.2.1-0v5               2.2.1+dfsg3-0.3
ii  libao4                            1.1.0-3
ii  libasound2                        1.0.29-1
ii  libaudiofile1                     0.3.6-2+b1
ii  libavahi-client3                  0.6.32~rc+dfsg-1
ii  libavahi-common3                  0.6.32~rc+dfsg-1
ii  libavcodec-ffmpeg56               7:2.8.4-1+b1
ii  libavformat-ffmpeg56              7:2.8.4-1+b1
ii  libavutil-ffmpeg54                7:2.8.4-1+b1
ii  libbz2-1.0                        1.0.6-8
ii  libc6                             2.21-6
ii  libcdio-cdda1                     0.83-4.2+b1
ii  libcdio-paranoia1                 0.83-4.2+b1
ii  libcdio13                         0.83-4.2+b1
ii  libcurl3-gnutls                   7.46.0-1
ii  libdbus-1-3                       1.10.6-1
ii  libexpat1                         2.1.0-7
ii  libfaad2                          2.8.0~cvs20150510-1
ii  libflac8                          1.3.1-4
ii  libfluidsynth1                    1.1.6-3
ii  libglib2.0-0                      2.46.2-3
ii  libgme0                           0.6.0-3
ii  libicu55                          55.1-7
ii  libid3tag0                        0.15.1b-11
ii  libiso9660-8                      0.83-4.2+b1
ii  libjack-jackd2-0 [libjack-0.116]  1.9.10+20150825git1ed50c92~dfsg-1
ii  libmad0                           0.15.1b-8
ii  libmikmod3                        3.3.8-1
ii  libmms0                           0.6.4-1
ii  libmodplug1                       1:0.8.8.5-2
ii  libmp3lame0                       3.99.5+repack1-9+b1
ii  libmpcdec6                        2:0.1~r475-1
ii  libmpdclient2                     2.9-1
ii  libmpg123-0                       1.22.4-1
ii  libnfs8                           1.9.8-1
ii  libogg0                           1.3.2-1
ii  libopenal1                        1:1.16.0-3
ii  libopus0                          1.1.1-1
ii  libpulse0                         7.1-2
ii  libresid-builder0c2a              2.1.1-14
ii  libroar2                          1.0~beta11-5
ii  libsamplerate0                    0.1.8-8
ii  libshout3                         2.3.1-3
ii  libsidplay2                       2.1.1-14
ii  libsidutils0                      2.1.1-14
ii  libsmbclient                      2:4.1.17+dfsg-4
ii  libsndfile1                       1.0.25-10
ii  libsoxr0                          0.1.2-1
ii  libsqlite3-0                      3.9.2-1
ii  libstdc++6                        5.3.1-5
ii  libsystemd0                       228-2+b1
ii  libupnp6                          1:1.6.19+git20141001-1
ii  libvorbis0a                       1.3.4-3
ii  libvorbisenc2                     1.3.4-3
ii  libvorbisfile3                    1.3.4-3
ii  libwavpack1                       4.75.0-1
ii  libwildmidi1                      0.3.8-2
ii  libwrap0                          7.6.q-25
ii  libyajl2                          2.1.0-2
ii  libzzip-0-13                      0.13.62-3
ii  lsb-base                          9.20150917
ii  zlib1g                            1:1.2.8.dfsg-2+b1

mpd recommends no packages.

Versions of packages mpd suggests:
ii  avahi-daemon             0.6.32~rc+dfsg-1
pn  icecast2                 <none>
pn  pulseaudio               <none>
ii  qmpdclient [mpd-client]  1.2.2-2

-- Configuration Files:
/etc/mpd.conf changed:
music_directory		"/music"
playlist_directory		"/var/lib/mpd/playlists"
db_file			"/var/lib/mpd/tag_cache"
log_file			"/var/log/mpd/mpd.log"
pid_file			"/run/mpd/pid"
state_file			"/var/lib/mpd/state"
sticker_file                   "/var/lib/mpd/sticker.sql"
user				"arian"
bind_to_address		"any"
input {
        plugin "curl"
}
audio_output {
	type		"alsa"
	name		"My ALSA Device"
}
filesystem_charset		"UTF-8"
id3v1_encoding			"UTF-8"


-- no debconf information



More information about the Pkg-mpd-maintainers mailing list