[GH-ISSUE #937] Music stops after ~ 10 minutes #407

Closed
opened 2026-02-28 14:48:59 +03:00 by kerem · 4 comments
Owner

Originally created by @Zac8668 on GitHub (Jan 6, 2022).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/937

My music stops after 10 minutes of normal use, I'm using spotifyd, this does not occur with the spotify web player, however I can connect with spotifyd with my phone just fine, on spotify-tui it shows this error Spotify API error code 404: Device not found when I try to connect to spotifyd again after it stops.

spotifyd log trough verbose:

attempting to decode a frame
command=Preload(SpotifyId { id: 214622400166714917883505202434654700827, audio_type: Track })
Preloading track
flushing framed transport
writing; remaining=83
framed transport flushed
At track 12 of 69 <"spotify:playlist:1e4g207Qvy7TJ1iZbJPf3x"> update [false]
Sending status to server: [kPlayStatusPlay]
command=Load(SpotifyId { id: 214622400166714917883505202434654700827, audio_type: Track }, true, 0)
== Stopping sink ==
Sending status to server: [kPlayStatusPlay]
flushing framed transport
writing; remaining=1888
framed transport flushed
flushing framed transport
writing; remaining=1888
framed transport flushed

spotifyd.conf (maybe I'm missing something here?):

[global]
# Fill this in with your Spotify login.
username = "myusername"
password = "mypassword"

# How this machine shows up in Spotify Connect.
device = "default"
device_name = "spotifyd"
device_type = "computer"

backend = "rodio"
cache_path = "/home/zac/.cache/spotifyd"

I also tried changing from the default backend(alsa, before I did not specify on the conf file) to rodio to see if the problem would solve, but nothing.

Originally created by @Zac8668 on GitHub (Jan 6, 2022). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/937 My music stops after 10 minutes of normal use, I'm using spotifyd, this does not occur with the spotify web player, however I can connect with spotifyd with my phone just fine, on spotify-tui it shows this error `Spotify API error code 404: Device not found` when I try to connect to spotifyd again after it stops. spotifyd log trough verbose: ``` attempting to decode a frame command=Preload(SpotifyId { id: 214622400166714917883505202434654700827, audio_type: Track }) Preloading track flushing framed transport writing; remaining=83 framed transport flushed At track 12 of 69 <"spotify:playlist:1e4g207Qvy7TJ1iZbJPf3x"> update [false] Sending status to server: [kPlayStatusPlay] command=Load(SpotifyId { id: 214622400166714917883505202434654700827, audio_type: Track }, true, 0) == Stopping sink == Sending status to server: [kPlayStatusPlay] flushing framed transport writing; remaining=1888 framed transport flushed flushing framed transport writing; remaining=1888 framed transport flushed ``` spotifyd.conf (maybe I'm missing something here?): ``` [global] # Fill this in with your Spotify login. username = "myusername" password = "mypassword" # How this machine shows up in Spotify Connect. device = "default" device_name = "spotifyd" device_type = "computer" backend = "rodio" cache_path = "/home/zac/.cache/spotifyd" ``` I also tried changing from the default backend(alsa, before I did not specify on the conf file) to rodio to see if the problem would solve, but nothing.
kerem closed this issue 2026-02-28 14:48:59 +03:00
Author
Owner

@Zac8668 commented on GitHub (Jan 7, 2022):

I looked more into it and now I think it's a spotifyd issue, not sure tho.

<!-- gh-comment-id:1007101534 --> @Zac8668 commented on GitHub (Jan 7, 2022): I looked more into it and now I think it's a spotifyd issue, not sure tho.
Author
Owner

@Zac8668 commented on GitHub (Jan 12, 2022):

Found out that this is not even spotifyd specific, not close to be spotify-tui, I have the same problem on ncspot, but there I found a solution, I made this script here:

while true
do
timeout --foreground 400 ncspot
#I think I need to add something to unpause here tho
done

It works but not practical, this is so specific and I hope it vanishes when I reinstall my OS, but if someone finds it too, here is my solution.

<!-- gh-comment-id:1010596953 --> @Zac8668 commented on GitHub (Jan 12, 2022): Found out that this is not even spotifyd specific, not close to be spotify-tui, I have the same problem on ncspot, but there I found a solution, I made this script here: ``` while true do timeout --foreground 400 ncspot #I think I need to add something to unpause here tho done ``` It works but not practical, this is so specific and I hope it vanishes when I reinstall my OS, but if someone finds it too, here is my solution.
Author
Owner

@Zac8668 commented on GitHub (Jan 17, 2022):

I did reinstall my OS and it did not vanish, that's crazy.

<!-- gh-comment-id:1014855540 --> @Zac8668 commented on GitHub (Jan 17, 2022): I did reinstall my OS and it did not vanish, that's crazy.
Author
Owner

@Zac8668 commented on GitHub (Jan 19, 2022):

It's solved now, I think the problem was that I had a application made on spotify dev, if someone encounters this I hope I can help

<!-- gh-comment-id:1016644295 --> @Zac8668 commented on GitHub (Jan 19, 2022): It's solved now, I think the problem was that I had a application made on spotify dev, if someone encounters this I hope I can help
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/spotify-tui#407
No description provided.