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

mpdas failing with error 6 #10

Closed
pcwalden opened this issue Jul 13, 2014 · 8 comments
Closed

mpdas failing with error 6 #10

pcwalden opened this issue Jul 13, 2014 · 8 comments

Comments

@pcwalden
Copy link

my mpdas on a Raspberry Pi with raspbian began failing around Jul 3, 2014.

Did last.fm or mpd change something?

(14:58:11) [INFO] New song: Nelson Riddle - Night and Day
(14:58:12) [INFO] Updated "Now Playing" status successfully.
(15:01:19) [INFO] Scrobbling: -
(15:01:19) [ERROR] Last.fm returned an error while scrobbling:

Missing required parameter artist

(15:01:19) [ERROR] Code: 6
(15:01:19) [ERROR] Error scrobbling. Trying again in 5 minutes.
(15:01:19) [ERROR] Re-Handshaking!
(15:01:20) [INFO] Last.fm handshake successful. SessionID: c23b0f97b24674b576bd5b9c5471241e

@hrkfdn
Copy link
Owner

hrkfdn commented Jul 14, 2014

Which version are you using?
On Jul 14, 2014 12:12 AM, "pcwalden" [email protected] wrote:

my mpdas on a Raspberry Pi with raspbian began failing around Jul 3, 2014.

Did last.fm or mpd change something?

(14:58:11) [INFO] New song: Nelson Riddle - Night and Day
(14:58:12) [INFO] Updated "Now Playing" status successfully.
(15:01:19) [INFO] Scrobbling: -
(15:01:19) [ERROR] Last.fm returned an error while scrobbling:

Missing required parameter artist

(15:01:19) [ERROR] Code: 6
(15:01:19) [ERROR] Error scrobbling. Trying again in 5 minutes.
(15:01:19) [ERROR] Re-Handshaking!
(15:01:20) [INFO] Last.fm handshake successful. SessionID:
c23b0f97b24674b576bd5b9c5471241e


Reply to this email directly or view it on GitHub
#10.

@pcwalden
Copy link
Author

Hi Henrik
  $ mpdas -v
  mpdas-0.3.0, (C) 2010 Henrik Friedrichsen.
  I picked it up fro the Raspberry Pi forum thread here:http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=42908
  Philip
  Henrik wrote:
Which version are you using?

  On Jul 14, 2014 12:12 AM, "pcwalden"
  <[email protected]> wrote:

  > my mpdas on a Raspberry Pi with raspbian began failing around
  Jul 3, 2014.

  >

  > Did last.fm or mpd change something?

  >

  > (14:58:11) [INFO] New song: Nelson Riddle - Night and Day

  > (14:58:12) [INFO] Updated "Now Playing" status successfully.

  > (15:01:19) [INFO] Scrobbling: -

  > (15:01:19) [ERROR] Last.fm returned an error while
  scrobbling:

  > <?xml version="1.0" encoding="utf-8"?>

  >

  >

  > Missing required parameter artist

  >

  > (15:01:19) [ERROR] Code: 6

  > (15:01:19) [ERROR] Error scrobbling. Trying again in 5
  minutes.

  > (15:01:19) [ERROR] Re-Handshaking!

  > (15:01:20) [INFO] Last.fm handshake successful. SessionID:

  > c23b0f97b24674b576bd5b9c5471241e

  >

  > —

  > Reply to this email directly or view it on GitHub

  > <https://github.com/hrkfdn/mpdas/issues/10>.

  >
  —
    Reply to this email directly or view
      it on GitHub.

@hrkfdn
Copy link
Owner

hrkfdn commented Jul 14, 2014

Could you try with the latest version (0.3.1), please?

On Mon, Jul 14, 2014 at 6:59 PM, pcwalden [email protected] wrote:

Hi Henrik
$ mpdas -v
mpdas-0.3.0, (C) 2010 Henrik Friedrichsen.
I picked it up fro the Raspberry Pi forum thread here:
http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=42908
Philip

Henrik wrote:
Which version are you using?

On Jul 14, 2014 12:12 AM, "pcwalden"
[email protected] wrote:

my mpdas on a Raspberry Pi with raspbian began failing around
Jul 3, 2014.

Did last.fm or mpd change something?

(14:58:11) [INFO] New song: Nelson Riddle - Night and Day

(14:58:12) [INFO] Updated "Now Playing" status successfully.

(15:01:19) [INFO] Scrobbling: -

(15:01:19) [ERROR] Last.fm returned an error while
scrobbling:

Missing required parameter artist

(15:01:19) [ERROR] Code: 6

(15:01:19) [ERROR] Error scrobbling. Trying again in 5
minutes.

(15:01:19) [ERROR] Re-Handshaking!

(15:01:20) [INFO] Last.fm handshake successful. SessionID:

c23b0f97b24674b576bd5b9c5471241e

Reply to this email directly or view it on GitHub

#10.


Reply to this email directly or view
it on GitHub.


Reply to this email directly or view it on GitHub
#10 (comment).

@pcwalden
Copy link
Author

Hi Henrik
  I can, but it may take awhile as I have not built a C++ program
  for the Raspberry Pi before.
  Philip
  Henrik wrote:
Could you try with the latest version (0.3.1), please?

  On Mon, Jul 14, 2014 at 6:59 PM, pcwalden
  <[email protected]> wrote:

  >

  > Hi Henrik

  > $ mpdas -v

  > mpdas-0.3.0, (C) 2010 Henrik Friedrichsen.

  > I picked it up fro the Raspberry Pi forum thread here:

  >
  http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=42908

  > Philip

  >

  > Henrik wrote:

  > Which version are you using?

  >

  > On Jul 14, 2014 12:12 AM, "pcwalden"

  > <[email protected]> wrote:

  >

  > > my mpdas on a Raspberry Pi with raspbian began failing
  around

  > Jul 3, 2014.

  >

  > >

  >

  > > Did last.fm or mpd change something?

  >

  > >

  >

  > > (14:58:11) [INFO] New song: Nelson Riddle - Night and
  Day

  >

  > > (14:58:12) [INFO] Updated "Now Playing" status
  successfully.

  >

  > > (15:01:19) [INFO] Scrobbling: -

  >

  > > (15:01:19) [ERROR] Last.fm returned an error while

  > scrobbling:

  >

  > > <?xml version="1.0" encoding="utf-8"?>

  >

  > >

  >

  > >

  >

  > > Missing required parameter artist

  >

  > >

  >

  > > (15:01:19) [ERROR] Code: 6

  >

  > > (15:01:19) [ERROR] Error scrobbling. Trying again in 5

  > minutes.

  >

  > > (15:01:19) [ERROR] Re-Handshaking!

  >

  > > (15:01:20) [INFO] Last.fm handshake successful.
  SessionID:

  >

  > > c23b0f97b24674b576bd5b9c5471241e

  >

  > >

  >

  > > —

  >

  > > Reply to this email directly or view it on GitHub

  >

  > > <https://github.com/hrkfdn/mpdas/issues/10>.

  >

  >

  > >

  > —

  > Reply to this email directly or view

  > it on GitHub.

  >

  > —

  > Reply to this email directly or view it on GitHub

  >
  <https://github.com/hrkfdn/mpdas/issues/10#issuecomment-48926434>.

  >
  —
    Reply to this email directly or view
      it on GitHub.

@pcwalden
Copy link
Author

I built a 0.3.1 version for the Raspberry Pi, but I still get the same Error 6

$ Downloads/mpdas-0.3.1/mpdas
(16:42:13) [INFO] Config file (/usr/local/etc/mpdasrc) does not exist or is not readable.
(16:42:13) [INFO] Connected to MPD.
(16:42:13) [INFO] Last.fm handshake successful. SessionID: c23b0f97b24674b576bd5b9c5471241e
(16:42:13) [INFO] Scrobbling: -
(16:42:14) [ERROR] Last.fm returned an error while scrobbling:

Missing required parameter artist

(16:42:14) [ERROR] Code: 6
(16:42:14) [ERROR] Error scrobbling. Trying again in 5 minutes.
(16:46:17) [INFO] New song: Philip Sheppard - X15 Jet
(16:46:17) [INFO] Updated "Now Playing" status successfully.
(16:47:14) [INFO] Scrobbling: -
(16:47:14) [ERROR] Last.fm returned an error while scrobbling:

Missing required parameter artist

(16:47:14) [ERROR] Code: 6
(16:47:14) [ERROR] Error scrobbling. Trying again in 5 minutes.

@pcwalden
Copy link
Author

Scanning the code, it looks like the CCache is not working. The CCache::WorkCache() is not retrieving a valid entry. Both the artist and title are empty. [INFO] Scrobbling: - <title> Hence last.fm reports the Error 6.

The is a ~/.mpdascache file and it does have many entries:


-1092956996
-1228865908
1
Brian Eno
An Ending (Ascent) (2005 Digital Remaster)
266
1405440001
Apollo
1
Philip Sheppard
Re-Entry
206
1405440268
In The Shadow Of The Moon
1
: etc

Will try to add more debug messages.

@pcwalden
Copy link
Author

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.

@hrkfdn
Copy link
Owner

hrkfdn commented Jul 16, 2014

Glad to hear it. Let me know when it reoccurs. The caching (and storage) will be rewritten soon.

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

2 participants