You are not logged in.
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
How are you starting mpdscribble: with a service file? Please paste it.
Offline
[Unit]
Description=Music Player Daemon Scribbler
After=network.target sound.target mpd.service
[Service]
ExecStart=/bin/mpdscribble --no-daemon
[Install]
WantedBy=default.targetFear me! I have root! Sometimes...
Offline
Are you running mpd as a user service as well?
Offline
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.targetIt 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
I just use standard systemd services and it is working fine: can't help you with the user service thing, sorry.
Offline
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
This works for me: http://sprunge.us/AdEK
Offline
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
Switched to TCP. Conky works, ncmpcpp works, mpc works, mpdscribble doesn't. ![]()
Fear me! I have root! Sometimes...
Offline
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
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.journalFear me! I have root! Sometimes...
Offline
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
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