FoxxMD / multi-scrobbler

Scrobble plays from multiple sources to multiple clients
https://foxxmd.github.io/multi-scrobbler
MIT License
299 stars 14 forks source link

Polling Error #88

Closed elit3ge closed 9 months ago

elit3ge commented 11 months ago

Please check the FAQ before submitting a bug report.

Describe the bug After booting Multi-Scrobbler, it polls for a little while and then errors and stops.

To Reproduce Steps to reproduce the behavior: Start up multi-scrobbler and wait.

Expected behavior It to work and keep polling.

Logs If possible reproduce the issue with debug logging ON

2023-07-22T13:00:14+10:00 debug   : [Sources] [Lastfm - myLastFM] No new tracks discovered
2023-07-22T13:00:14+10:00 debug   : [Sources] [Lastfm - myLastFM] Last activity was at 2023-07-22T12:49:01+10:00 which is 6 minutes outside of active polling period of (last activity + 300 seconds). Will sleep for max interval 60 seconds.
2023-07-22T13:00:14+10:00 verbose : [Sources] [Lastfm - myLastFM] Sleeping for 60s
2023-07-22T13:01:14+10:00 debug   : [Sources] [Lastfm - myLastFM] Refreshing recently played
2023-07-22T13:01:19+10:00 error   : [Sources] [Lastfm - myLastFM] Error occurred while polling
2023-07-22T13:01:19+10:00 error   : [Sources] [Lastfm - myLastFM] getaddrinfo EAI_AGAIN ws.audioscrobbler.com {"code":"EAI_AGAIN","errno":-3001,"hostname":"ws.audioscrobbler.com","syscall":"getaddrinfo"}
Error: 

    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)

2023-07-22T13:01:19+10:00 warn    : [Sources] [Lastfm - myLastFM] Poll retries (0) equal to max poll retries (0), stopping polling!

Versions (please complete the following information): Provide version information for any related sources/clients.

Additional context Used to work, I have polling at 0.

FoxxMD commented 11 months ago

Hi can you try using this docker image and see if this resolves your issue:

foxxmd/multi-scrobbler:experimental
elit3ge commented 11 months ago

New error.


2023-07-25T20:06:18+10:00 error   : [Sources] [Lastfm - myLastFM] getaddrinfo EAI_AGAIN ws.audioscrobbler.com {"code":"EAI_AGAIN","errno":-3001,"hostname":"ws.audioscrobbler.com","syscall":"getaddrinfo"}

Error: 

    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)

2023-07-25T20:06:18+10:00 warn    : [Sources] [Lastfm - myLastFM] Poll retries (0) equal to max poll retries (0), stopping polling!```
FoxxMD commented 11 months ago

Have you made any changes to your network recently? Anything like a new router, setting up pihole or changing dns at the docker, host, or router level?

I can't reproduce your issue and haven't had any other users report this. The error you receiving is due to a DNS server not responding which is very likely outside of the control of multi-scrobbler https://github.com/nodejs/node/issues/15780#issuecomment-334496907

If you are using a file-based configuration (config.json or lastfm.json as opposed to ENV) you can increase the number of polling/retry attempts -- by specifying maxPollRetries or maxRequestRetries in the data property -- and see if that solves things for you:

lastfm.json example:

{
  "clients": [
    "MyMalojaConfig",
  ],
  "data": {
    "clientId": "787c921a2a2ab42320831aba0c8f2fc2",
    "clientSecret": "ec42e09d5ae0ee0f0816ca151008412a",
    "redirectUri": "http://localhost:9078/callback",
    "maxPollRetries": 3,
    "maxRequestRetries": 2
  },
  "name": "MyLastFmClient"
}
FoxxMD commented 11 months ago

@elit3ge please try pulling the latest foxxmd/multi-scrobbler:experimental image and see if that makes a difference.

FoxxMD commented 9 months ago

The DNS fix is included in 0.6.0