You are not logged in.

#1 2014-12-15 00:11:40

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

[SOLVED] mpdscribble refuses to connect to mpd.

mpc and ncmpcpp work just fine. Both pick up $MPD_HOST, which points to a unix socket in my home folder. No passwords. A while ago, mpdscribble stopped working, and today I finally looked into it and it turns out that it can't connect to mpd. The only thing I get in the logs is "Dec 15 00:10:47 hydra mpdscribble[23667]: mpd error (5): Connection refused", over and over.

Any idea what might be wrong, or where I can get better logs? That's with --verbose=3, by the way.

Last edited by mkaito (2014-12-16 19:45:38)


Fear me! I have root! Sometimes...

Offline

#2 2014-12-15 00:24:22

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

Re: [SOLVED] mpdscribble refuses to connect to mpd.

How are you starting mpdscribble: with a service file? Please paste it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-15 00:40:18

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

[Unit]
Description=Music Player Daemon Scribbler
After=network.target sound.target mpd.service

[Service]
ExecStart=/bin/mpdscribble --no-daemon

[Install]
WantedBy=default.target

Fear me! I have root! Sometimes...

Offline

#4 2014-12-15 00:44:14

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

Re: [SOLVED] mpdscribble refuses to connect to mpd.

Are you running mpd as a user service as well?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-12-15 00:45:53

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

Yep.

[Unit]
Description=Music Player Daemon
After=network.target sound.target

[Service]
ExecStart=/usr/bin/mpd --no-daemon $HOME/.mpd/mpd.conf

[Install]
WantedBy=default.target

It drops a unix socket in $HOME/.mpd/mpd.sock, and $MPD_HOST is set to /home/chris/.mpd/mpd.sock, while $MPD_PORT is set to -1, as per the docs. This used to work, so maybe something changed?


Fear me! I have root! Sometimes...

Offline

#6 2014-12-15 00:52:24

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

Re: [SOLVED] mpdscribble refuses to connect to mpd.

I just use standard systemd services and it is working fine: can't help you with the user service thing, sorry.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-12-15 00:59:05

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

I didn't even know those were there. I wrote mine before the packages started including user service files. I removed mine now, since they seemed to do the same thing (aside from the cgroup stuff for mpd), but nothing seems to have changed in regards to mpdscribble.


Fear me! I have root! Sometimes...

Offline

#8 2014-12-15 01:05:19

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

Re: [SOLVED] mpdscribble refuses to connect to mpd.

This works for me: http://sprunge.us/AdEK


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-12-15 01:11:46

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

You seem to be pointing it at the config file, while I do not. However, it seems to be able to talk to last.fm just fine, so I figure it's picking up my credentials from the config file.

I tried adding the path explicitly to the unit, just to make sure, but it didn't make a difference. Maybe mpdscribble just can't talk to mpd over unix sockets any more? I think I had some issues with TCP back when, which is why I use a unix socket.


Fear me! I have root! Sometimes...

Offline

#10 2014-12-15 01:16:13

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

Switched to TCP. Conky works, ncmpcpp works, mpc works, mpdscribble doesn't. hmm


Fear me! I have root! Sometimes...

Offline

#11 2014-12-16 00:30:19

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

show both mpdscribble config and mpd config


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#12 2014-12-16 01:23:05

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

mpd.conf:

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"

user "chris"
group "users"
bind_to_address "any"
port "6660"
gapless_mp3_playback "yes"
auto_update "yes"

follow_outside_symlinks "yes"
follow_inside_symlinks "yes"

input {
  plugin "curl"
}


audio_output {
  type "pulse"
  name "MPD PulseAudio Output"
}

audio_output {
  type "fifo"
  name "fifo"
  path "~/.mpd/mpd.fifo"
  format "44100:16:2"
}

mpdscribble.conf:

log = syslog
verbose = 3
[last.fm]
url = http://post.audioscrobbler.com/
username = notme
password = supahsekrit
journal = /home/chris/.mpdscribble/lastfm.journal

Fear me! I have root! Sometimes...

Offline

#13 2014-12-16 19:45:24

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

Jesus I'm so stupid. I changed my last.fm password, and forgot to update it in the mpdscribble config.

Of course the log message could have told me that it was failing to connect to last.fm rather than just "failed to connect".


Fear me! I have root! Sometimes...

Offline

#14 2014-12-16 21:20:08

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] mpdscribble refuses to connect to mpd.

just a tiny detail: but normally you dont want to set the group in mpd.conf. it does not do what you think it does


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB