You are not logged in.

#1 2015-02-21 10:58:01

demo
Member
Registered: 2015-02-21
Posts: 6

[Solved] mpd.service fails to start

hello, i've switched to arch recently,
love it so far.

I've been trying to start mpd, with no success :

systemctl status mpd.service 
   mpd.service - Music Player Daemon
   Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2015-02-21 12:52:02 CET; 3s ago
   Process: 1924 ExecStart=/usr/bin/mpd --no-daemon (code=exited, status=1/FAILURE)
   Main PID: 1924 (code=exited, status=1/FAILURE)

I cant really see what goes wrong, I get no error message on "systemctl start mpd.service", and I dont see anything in "journalctl" :

Feb 21 12:30:42 SGC cantata[1694]: libpng warning: iCCP: known incorrect sRGB profile
Feb 21 12:30:42 SGC cantata[1694]: libpng warning: iCCP: known incorrect sRGB profile
Feb 21 12:30:42 SGC cantata[1694]: QStringList Solid::Backends::UDisks::UDisksManager::allDevicesInternal()  error:  "org.freedesktop.DBus.Error.ServiceUnknown"
Feb 21 12:35:01 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:35:01 SGC baloo_file[507]: Normal
Feb 21 12:35:44 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:35:44 SGC baloo_file[507]: Normal
Feb 21 12:36:50 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:36:50 SGC baloo_file[507]: Normal
Feb 21 12:39:45 SGC konsole[659]: org.kde.kurlfilter-ikws: "d2a291c6bf4fad8aaf7442433364ab6bfb2eecd969885543bfd1e4071db8633b"
Feb 21 12:40:26 SGC konsole[659]: org.kde.kurlfilter-ikws: "d2a291c6bf4fad8aaf7442433364ab6bfb2eecd969885543bfd1e4071db8633b"
Feb 21 12:42:48 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:42:48 SGC baloo_file[507]: Normal
Feb 21 12:43:43 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:43:43 SGC baloo_file[507]: Normal
Feb 21 12:43:52 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:43:52 SGC baloo_file[507]: Normal
Feb 21 12:45:45 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:45:45 SGC baloo_file[507]: Normal
Feb 21 12:45:48 SGC konsole[659]: org.kde.kurlfilter-ikws: "systemctl status mpd.service ● mpd.service - Music Player Daemon Loaded: loaded (/usr/lib/systemd/system/mpd.serv
Feb 21 12:45:56 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:45:56 SGC baloo_file[507]: Normal
Feb 21 12:46:07 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:46:07 SGC baloo_file[507]: Normal
Feb 21 12:48:52 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:48:52 SGC baloo_file[507]: Normal
Feb 21 12:49:07 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:49:07 SGC baloo_file[507]: Normal
Feb 21 12:49:40 SGC konsole[659]: org.kde.kurlfilter-ikws: "Feb 21 12:45:56 SGC baloo_file[507]: Normal Feb 21 12:46:07 SGC baloo_file[507]: "/home/demo/.xsession-errors" Fe
Feb 21 12:49:44 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:49:44 SGC baloo_file[507]: Normal
Feb 21 12:50:04 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:50:04 SGC baloo_file[507]: Normal
Feb 21 12:50:28 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:50:28 SGC baloo_file[507]: Normal
Feb 21 12:51:00 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:51:00 SGC baloo_file[507]: Normal
Feb 21 12:53:49 SGC konsole[659]: org.kde.kurlfilter-ikws: "Feb 21 12:14:12 SGC kded5[480]: kf5.kservice.sycoca: Trying to open ksycoca from "/home/demo/.cache/ksycoca5" Feb
Feb 21 12:54:03 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:54:03 SGC baloo_file[507]: Normal
Feb 21 12:54:56 SGC konsole[659]: org.kde.kurlfilter-ikws: "systemctl status mpd.service ● mpd.service - Music Player Daemon Loaded: loaded (/usr/lib/systemd/system/mpd.serv
Feb 21 12:55:01 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:55:01 SGC baloo_file[507]: Normal
Feb 21 12:55:17 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:55:17 SGC baloo_file[507]: Normal
Feb 21 12:55:36 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:55:36 SGC baloo_file[507]: Normal
Feb 21 12:55:48 SGC baloo_file[507]: "/home/demo/.xsession-errors"
Feb 21 12:55:48 SGC baloo_file[507]: Normal

Here's my /etc/mpd.conf :

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

music_directory "~/Music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"

bind_to_address "127.0.0.1"
port "6600"

audio_output { 
  type "alsa"
  name "Output"
}

#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"

Thanks in advance,

Last edited by demo (2015-02-21 13:14:00)

Offline

#2 2015-02-21 11:15:44

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] mpd.service fails to start

Mpd runs as a system service, you're running journalctl as a user. Have a look at `sudo journalctl` or sudo systemctl status mpd (should tell you the relevant journal-entries directly)

Offline

#3 2015-02-21 12:52:29

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] mpd.service fails to start

Spider.007 wrote:

Mpd runs as a system service

In this case the system service is indeed the one that failed, but mpd also provides a user service file and all the paths in demo's /etc/mpd.conf (even though that is the default config for the system service) seem to indicate a user service might be more appropriate.

Last edited by Raynman (2015-02-21 12:53:17)

Offline

#4 2015-02-21 13:05:06

demo
Member
Registered: 2015-02-21
Posts: 6

Re: [Solved] mpd.service fails to start

Thanks,
The relevant journal showed me the error (since it was running as system, "~/.mpd/mpd.db" wasnt where i thought it was)

Offline

#5 2015-02-21 13:09:15

demo
Member
Registered: 2015-02-21
Posts: 6

Re: [Solved] mpd.service fails to start

Raynman wrote:
Spider.007 wrote:

Mpd runs as a system service

In this case the system service is indeed the one that failed, but mpd also provides a user service file and all the paths in demo's /etc/mpd.conf (even though that is the default config for the system service) seem to indicate a user service might be more appropriate.

Indeed, I've made the appropriate change to run it as user service
(put my mdp.conf in ~/.mpd, and add "mpd ~/.mpd/mpd.conf" to my home ".profile")

Last edited by demo (2015-02-21 13:13:41)

Offline

#6 2015-02-21 13:10:49

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] mpd.service fails to start

Great, then you can mark this topic as solved smile

Offline

Board footer

Powered by FluxBB