Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrobbled tracks not saving #30

Closed
Firestorrrm opened this issue Mar 16, 2016 · 8 comments
Closed

Scrobbled tracks not saving #30

Firestorrrm opened this issue Mar 16, 2016 · 8 comments

Comments

@Firestorrrm
Copy link

Mpdas scrobbles the current song, but as soon as the song changes it doesn't save on Last.FM. Is there a fix for this?

@pcwalden
Copy link

This is a known problem with the cache file getting corrupt.

I documented this problem in Issue #10

My cure was:

"Solved I think.

Looks like the .mpdascache file was corrupt. In the above sample, the first entry was bad and kept failing. The rest of the cache was never subsequently processed. I deleted the .mpdascache and mpdas is working now."

This continues to happen occasionally and so I have a cron job that checks for and removes bad cache files daily.

@Firestorrrm
Copy link
Author

I never had the file so I created it. However, every time I launched mpdas, the file would disappear. If I entered something in the file, it would say "Scrobbled successfully."

ALSO, if I update to 0.4.1, I get

(23:08:21) [ERROR] Could not query MPD server: Not implemented
(23:08:21) [INFO] Reconnecting in 10 seconds.

@hrkfdn
Copy link
Owner

hrkfdn commented Mar 17, 2016

I'll need some debug logs of the problem occurring, otherwise it's very hard to track down the source of it.

Which version are you upgrading from? What is your mpd version?

As for the cache file corrupting: I'll have a closer look, esp. at the file provided by @pcwalden. Nevertheless, as I said, the mechanism will be reworked soon using a more mature data format.

@Firestorrrm
Copy link
Author

Where would I find these logs?

0.3.1 was installed from
brew install mpdas

@hrkfdn
Copy link
Owner

hrkfdn commented Mar 18, 2016

As of mpdas >=0.4 libmpdclient is used. Please make sure you're using the latest mpd and libmpdclient version.

Also you have reported the exact same bug for a different scrobbler: mopidy/mopidy-scrobbler#20

Maybe the problem lies somewhere else? Debug logs can be acquired by running mpdas in debug mode, e.g. by setting "debug=1" in the mpdasrc.

@Firestorrrm
Copy link
Author

Warning: libmpdclient-2.10 already installed

Error in connection() 61 - Connection refused
(22:43:59) [INFO] Connected to MPD.
(22:44:01) [INFO] Last.fm handshake successful. SessionID: <snip>
(22:44:01) [INFO] New song: The Weeknd - Acquainted
(22:44:02) [INFO] Updated "Now Playing" status successfully.
(22:44:02) [INFO] Scrobbling:  -
(22:44:02) [INFO] Scrobbled successfully.
(22:45:51) [INFO] New song: Kanye West;Lupe Fiasco - Touch The Sky
(22:45:51) [INFO] Updated "Now Playing" status successfully.

@hrkfdn
Copy link
Owner

hrkfdn commented Mar 21, 2016

Thanks. That does look similar to the issue @pcwalden had. I'll have a look at the caching again, soon.

@hrkfdn
Copy link
Owner

hrkfdn commented May 6, 2016

I'm going to close this for now. Please let me know if it reoccurs. Preferably with a debug log and cache file (if existent).

@hrkfdn hrkfdn closed this as completed May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants