[GH-ISSUE #175] Dealer pong timeout #112

Closed
opened 2026-02-28 14:25:27 +03:00 by kerem · 5 comments
Owner

Originally created by @ceck90 on GitHub (Mar 14, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/175

When connections to domains of dealer list block one ore more hosts go-librespot follow this order:

Use the first one of the list
gew4-dealer.spotify.com

If fail it reconnect to second one into the list, up to use the latest 4th hostname.

But at the moment it fail with also the 4th hostname, instance remain into loop of reporting error into journal like

  • level error did not receive last pong ack from dealer, 3660s passed

I have tested this issue via MikroTik router with manual block of one dealer hostname at time and i see that when go/librespot fail to reconnect to the 4th dealer didn't-t retry with the first one of the list.

This could be happening in some router/firewall that try to block traffic to specific IP and release it after some time[time limited ban]

Using go-librespot release v 0.2.0

Originally created by @ceck90 on GitHub (Mar 14, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/175 When connections to domains of dealer list block one ore more hosts go-librespot follow this order: Use the first one of the list gew4-dealer.spotify.com If fail it reconnect to second one into the list, up to use the latest 4th hostname. But at the moment it fail with also the 4th hostname, instance remain into loop of reporting error into journal like - level error did not receive last pong ack from dealer, 3660s passed I have tested this issue via MikroTik router with manual block of one dealer hostname at time and i see that when go/librespot fail to reconnect to the 4th dealer didn't-t retry with the first one of the list. This could be happening in some router/firewall that try to block traffic to specific IP and release it after some time[time limited ban] Using go-librespot release v 0.2.0
kerem 2026-02-28 14:25:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ceck90 commented on GitHub (Aug 10, 2025):

@devgianlu this issue could be considered closed? I see another issue with similar context

<!-- gh-comment-id:3172745525 --> @ceck90 commented on GitHub (Aug 10, 2025): @devgianlu this issue could be considered closed? I see another issue with similar context
Author
Owner

@devgianlu commented on GitHub (Aug 10, 2025):

I have tested this issue via MikroTik router with manual block of one dealer hostname at time and i see that when go/librespot fail to reconnect to the 4th dealer didn't-t retry with the first one of the list.

I think this part is unique to this issue, are you still having issues with the recent versions?

<!-- gh-comment-id:3172746697 --> @devgianlu commented on GitHub (Aug 10, 2025): > I have tested this issue via MikroTik router with manual block of one dealer hostname at time and i see that when go/librespot fail to reconnect to the 4th dealer didn't-t retry with the first one of the list. I think this part is unique to this issue, are you still having issues with the recent versions?
Author
Owner

@ceck90 commented on GitHub (Aug 26, 2025):

@devgianlu at the moment I'm still using v 0.3.2 and don't have this issue. i keep monitored logs

<!-- gh-comment-id:3225214738 --> @ceck90 commented on GitHub (Aug 26, 2025): @devgianlu at the moment I'm still using v 0.3.2 and don't have this issue. i keep monitored logs
Author
Owner

@ceck90 commented on GitHub (Aug 27, 2025):

@devgianlu

I still have this issue when service still running but device isn't connected to the network, after reconnected, go-librespot service still stuck into this loop and isn't posbbile to connect from spotify APP(but MDNS work because APP list this device)

here some logs..

Aug 27 22:37:03 Soggiorno [2758695]: time="2025-08-27T22:37:03+02:00" level=error msg="did not receive last pong from dealer, 1235100s passed"
Aug 27 22:37:33 Soggiorno [2758695]: time="2025-08-27T22:37:33+02:00" level=error msg="did not receive last pong from dealer, 1235130s passed"
Aug 27 22:38:03 Soggiorno [2758695]: time="2025-08-27T22:38:03+02:00" level=error msg="did not receive last pong ack from accesspoint, 1216405s passed"
Aug 27 22:38:03 Soggiorno [2758695]: time="2025-08-27T22:38:03+02:00" level=error msg="did not receive last pong from dealer, 1235160s passed"
Aug 27 22:38:33 Soggiorno [2758695]: time="2025-08-27T22:38:33+02:00" level=error msg="did not receive last pong from dealer, 1235190s passed"

<!-- gh-comment-id:3229685831 --> @ceck90 commented on GitHub (Aug 27, 2025): @devgianlu I still have this issue when service still running but device isn't connected to the network, after reconnected, go-librespot service still stuck into this loop and isn't posbbile to connect from spotify APP(but MDNS work because APP list this device) here some logs.. Aug 27 22:37:03 Soggiorno <SPCLIENT>[2758695]: time="2025-08-27T22:37:03+02:00" level=error msg="did not receive last pong from dealer, 1235100s passed" Aug 27 22:37:33 Soggiorno <SPCLIENT>[2758695]: time="2025-08-27T22:37:33+02:00" level=error msg="did not receive last pong from dealer, 1235130s passed" Aug 27 22:38:03 Soggiorno <SPCLIENT>[2758695]: time="2025-08-27T22:38:03+02:00" level=error msg="did not receive last pong ack from accesspoint, 1216405s passed" Aug 27 22:38:03 Soggiorno <SPCLIENT>[2758695]: time="2025-08-27T22:38:03+02:00" level=error msg="did not receive last pong from dealer, 1235160s passed" Aug 27 22:38:33 Soggiorno <SPCLIENT>[2758695]: time="2025-08-27T22:38:33+02:00" level=error msg="did not receive last pong from dealer, 1235190s passed"
Author
Owner

@devgianlu commented on GitHub (Aug 30, 2025):

To debug this I need the goroutine dump, you can obtain it by sending a SIBABRT to go-librespot. See https://github.com/devgianlu/go-librespot/issues/186#issuecomment-2925098416

<!-- gh-comment-id:3239303126 --> @devgianlu commented on GitHub (Aug 30, 2025): To debug this I need the goroutine dump, you can obtain it by sending a `SIBABRT` to go-librespot. See https://github.com/devgianlu/go-librespot/issues/186#issuecomment-2925098416
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#112
No description provided.