MusicPlayerDaemon / mpdscribble

a MPD client which submits information about tracks being played to a scrobbler (e.g. last.fm)
GNU General Public License v2.0
114 stars 15 forks source link

mpdscribble: "No username" #38

Closed pluc closed 2 years ago

pluc commented 2 years ago

Can't start mpdscribble 0.23.

Logs say:

Mar  8 14:44:32 hq systemd[1]: Starting AudioScrobbler for MPD...
Mar  8 14:44:32 hq mpdscribble[88042]: No 'username'
Mar  8 14:44:32 hq systemd[1]: mpdscribble.service: Main process exited, code=exited, status=1/FAILURE
Mar  8 14:44:32 hq systemd[1]: mpdscribble.service: Failed with result 'exit-code'.
Mar  8 14:44:32 hq systemd[1]: Failed to start AudioScrobbler for MPD.

Relevant config file:

[last.fm]
url = https://post.audioscrobbler.com/
username = myuser
password = 111111
# The file where mpdscribble should store its Last.fm journal in case
# you do not have a connection to the Last.fm server.
journal = /var/cache/mpdscribble/lastfm.journal

[libre.fm]
url = https://turtle.libre.fm/
username = myuser
password = 222222
journal = /var/cache/mpdscribble/librefm.journal

Launched with mpdscribble --conf configFile

MaxKellermann commented 2 years ago

I can't reproduce this problem. Are you really sure you're using mpdscribble 0.23? Your log output shows you did not launch mpdscribble with mpdscribble --conf configFile but with systemd. Did you edit the systemd service file to add this parameter? If this is true, then you removed the --no-daemon option, which is important (but does not cause this problem). Something is wrong with your bug report, I think.

pluc commented 2 years ago

I ran mpdscribble --conf because the systemd launcher consistently failed. I did not edit it !

$ sudo service mpdscribble start
Job for mpdscribble.service failed because the control process exited with error code.
See "systemctl status mpdscribble.service" and "journalctl -xeu mpdscribble.service" for details.
$ sudo journalctl -xeu mpdscribble.service
░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit mpdscribble.service has entered the 'failed' state with result 'exit-code'.
Mar 14 08:13:52 hq systemd[1]: Failed to start AudioScrobbler for MPD.
░░ Subject: A start job for unit mpdscribble.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit mpdscribble.service has finished with a failure.
░░ 
░░ The job identifier is 3124 and the job result is failed.
MaxKellermann commented 2 years ago

I ran mpdscribble --conf

No, you did not. The output you just pasted demonstrated again that you did not do that. You did not post any data showing that you ever did mpdscribble --conf ....

pluc commented 2 years ago
$ ps aux | grep mpdsc
pluc        5176  0.0  0.0 179900 19260 ?        Ss   08:12   0:00 mpdscribble --conf /home/pluc/.config/mpdscribble/mpdscribble.conf

That is the only way I can get it to run.

MaxKellermann commented 2 years ago

But the error you posted is not from that process. If it were, it wouldn't be running. Your bug report makes no sense, therefore I close it (unless you can explain the obvious contradictions).

pluc commented 2 years ago

The error report I posted was to show you that I can't run mpdscribble from systemd.

It makes sense you just choose not to understand.

MaxKellermann commented 2 years ago

If you believe that I "just choose not to understand", then please never again ask for my help. Becaus I now "just choose to never spend my free time to help you at no cost".