You are not logged in.
Pages: 1
Hi,
Iḿ not familiar with the configurables of MPD.conf.
Whenever i try to start it, it crashes.
systemctl status mpd.service
● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled; vendor preset: disabled)
Active: failed (Result: core-dump) since Fri 2018-02-09 17:13:55 CET; 1 day 23h ago
Docs: man:mpd(1)
man:mpd.conf(5)
Process: 448 ExecStart=/usr/bin/mpd --no-daemon (code=dumped, signal=ABRT)
Main PID: 448 (code=dumped, signal=ABRT)Feb 09 17:13:55 mpd01 mpd[448]: ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM default
Feb 09 17:13:55 mpd01 mpd[448]: alsa_output: Error opening default ALSA device: No such file or directory
Feb 09 17:13:55 mpd01 mpd[448]: output: Attempting to detect a oss audio device
Feb 09 17:13:55 mpd01 mpd[448]: oss_output: Error opening OSS device "/dev/dsp": No such file or directory
Feb 09 17:13:55 mpd01 mpd[448]: oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
Feb 09 17:13:55 mpd01 mpd[448]: output: Attempting to detect a pulse audio device
Feb 09 17:13:55 mpd01 mpd[448]: Assertion 'm' failed at pulse/thread-mainloop.c:241, function pa_threaded_mainloop_get_api()
Feb 09 17:13:55 mpd01 systemd[1]: mpd.service: Main process exited, code=dumped, status=6/ABRT
Feb 09 17:13:55 mpd01 systemd[1]: mpd.service: Failed with result 'core-dump'.
Feb 09 17:13:55 mpd01 systemd[1]: Failed to start Music Player Daemon.
And manually:
# sudo /usr/bin/mpd --no-daemon /etc/mpd.conf
exception: Failed to open /var/lib/mpd/mpd.db: No such file or directory
output: No 'AudioOutput' defined in config fileal/bin/mpd --no-daemon /etc/mpd.co
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4554:(_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:4554:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4554:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5033:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM default
alsa_output: Error opening default ALSA device: No such file or directory
output: Attempting to detect a oss audio device
oss_output: Error opening OSS device "/dev/dsp": No such file or directory
oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
output: Attempting to detect a pulse audio device
Assertion 'm' failed at pulse/thread-mainloop.c:241, function pa_threaded_mainloop_get_api(). Aborting.
Aborted
Any clue of what i may be doing wrong?
I want it to be streaming audio to a mpd-client on kodi.
Offline
mpd.conf:
# See: /usr/share/doc/mpd/mpdconf.example
pid_file "/run/mpd/mpd.pid"
#db_file "~/.config/mpd/database"
db_file "/var/lib/mpd/mpd.db"
state_file "/var/lib/mpd/mpdstate"
playlist_directory "/var/lib/mpd/playlists"
music_directory "/mnt/music"user "mpd"
# group "nogroup"bind_to_address "localhost"
#port "6600"#password "some_password"
Offline
One clue would be the invalid path exception you posted...
Offline
@OP: It depends on which way you set up your mpd.
That's my ~/.mpd/mpd.conf (local config)
music_directory "/home/justme/Music"
db_file "/home/justme/.mpd/database"
log_file "/home/justme/.mpd/log"
pid_file "/home/justme/.mpd/pid"
state_file "/home/justme/.mpd/state"
playlist_directory "/home/justme/.mpd/playlists"
log_level "default"
# necessary for IPv4:
bind_to_address "127.0.0.1"
port "6600"
#user "justme"
audio_output {
type "pulse"
name "Pulseaudio"
}
audio_output {
type "alsa"
name "Alsa output"
device "hw:0,0"
format "44100:16:2"
mixer_type "hardware"
mixer_device "default"
mixer_control "PCM"
mixer_index "0"
}
# for ncmpcpp eye candy
audio_output {
type "fifo"
name "my_fifo"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
It's also advisable to only use absolute paths. – I have no idea about "kodi". But you could try playing stuff with a simple client like "mpc" first.
Last edited by cameo (2018-02-11 17:28:22)
Offline
ok,
so i have to figure out how i want to run the backend application?
I saw there is an extra user "mpd" created on which i want to run it.
Have to dig in it, i was thinking it was not stable.
Thanks
Offline
so i have to figure out how i want to run the backend application?
Sure, at some point you will. But I meant rather you have to decide before if want to run the mpd server globally (on your machine) or just locally for your main user. Locally is easier IMHO.
Any mpd-client program won't work if mpd is not set up properly.
I saw there is an extra user "mpd" created on which i want to run it.
That's for the global config – for the local method, you do not specify a user.
Offline
check the wiki page on mpd, there're some special pitfalls with pulseaudio when running mpd as root.
Offline
Pages: 1