You are not logged in.

#1 2014-09-25 02:56:17

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

mpd - problems running

I'm trying to get mpd up and running with cantata.

I left the /etc/mpd.conf as was, except for adding in my library location (and then chowning the /var/lib/mpd directory to mpd)

If I run:

   

 systemctl --user start mpd.service

then when I run cantata, it reports the following error:

"MPD reported the following error: playlist_directory - stored playlist support is disabled"

and won't load the library


If I run:

   

(sudo) systemctl start mpd.service

nothing happens - mpd fails to start


if I run:

   

 (sudo) mpd

I get the following errors:

db: Database corrupted
output: No 'audio_output' defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_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:4259:(_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:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(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:236, function pa_threaded_mainloop_get_api(). Aborting.

I'm not really sure what to do at this point.

Last edited by emacsomancer (2014-09-25 03:23:47)

Offline

#2 2014-09-25 02:59:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: mpd - problems running

Please use code tags when pasting to the boards https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-09-25 03:37:39

felixculpa
Member
From: Alberta, Canada
Registered: 2012-06-12
Posts: 270

Re: mpd - problems running

Last time I checked the wiki states there is more that you need to set in the config for mpd to work. For instance a playlist location...

Offline

#4 2014-09-25 05:18:12

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

Re: mpd - problems running

felixculpa wrote:

Last time I checked the wiki states there is more that you need to set in the config for mpd to work. For instance a playlist location...

In my /etc/mpd.conf file I have:

# See: /usr/share/doc/mpd/mpdconf.example

user "mpd"
pid_file "/run/mpd/mpd.pid"
db_file "/var/lib/mpd/mpd.db"
state_file "/var/lib/mpd/mpdstate"
playlist_directory "/var/lib/mpd/playlists"
music_directory "/PATH/TO/MY/MUSIC"

bind_to_address "127.0.0.1"
port "6600"

Offline

#5 2014-09-25 05:42:12

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: mpd - problems running

what's the output of

ls -l /var/lib/mpd/mpd.db

and what user is mpd set to run as

Offline

#6 2014-09-25 05:43:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: mpd - problems running


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-09-25 12:50:16

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

Re: mpd - problems running

HiImTye wrote:

what's the output of

ls -l /var/lib/mpd/mpd.db

and what user is mpd set to run as

-rw-r--r-- 1 mpd root 0 Sep 24 20:55 /var/lib/mpd/mpd.db


Where do I check which user's it set to run as?

Offline

#8 2014-09-25 12:51:17

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

Re: mpd - problems running

Thanks. I'll try adding (both?) alsa & pulseaudio settings.

Offline

#9 2014-09-25 16:58:47

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: mpd - problems running

emacsomancer wrote:
HiImTye wrote:

what's the output of

ls -l /var/lib/mpd/mpd.db

and what user is mpd set to run as

-rw-r--r-- 1 mpd root 0 Sep 24 20:55 /var/lib/mpd/mpd.db

Where do I check which user's it set to run as?

mpd.conf, but for quick reference you can

ps -ef | grep mpd

while it's running

Offline

Board footer

Powered by FluxBB