seniorgod / ifi-tidal-release

tidal connect application for ARM SBC based on https://github.com/ppy2/ifi-tidal-release
59 stars 93 forks source link

Service crashes after some time #10

Closed jbrepogmailcom closed 2 years ago

jbrepogmailcom commented 2 years ago

Hello, often when I try to connect and play music, at the connection time, after some time without playing elapsed, I get error and have to restart the service. Any advice?

Feb 03 21:15:52 tidal-pi tidal_connect_application[23225]: [2022-02-03 21:15:52.356] [tisoc] [error] [logger.cpp:25] [http_stream_fetcher.cpp:162] Content-Range is missing from response!
Feb 03 21:15:52 tidal-pi tidal_connect_application[23225]: [2022-02-03 21:15:52.433] [tisoc] [error] [logger.cpp:25] [http_stream_fetcher.cpp:162] Content-Range is missing from response!
Feb 03 21:15:52 tidal-pi tidal_connect_application[23225]: [2022-02-03 21:15:52.510] [tisoc] [error] [logger.cpp:25] [http_stream_fetcher.cpp:162] Content-Range is missing from response!
Feb 03 21:15:52 tidal-pi tidal_connect_application[23225]: [2022-02-03 21:15:52.514] [tisoc] [warning] [logger.cpp:22] [audio_worker.cpp:288] Max connection attempts reached!
jbrepogmailcom commented 2 years ago

I solved it by running following command every 5 seconds in a loop:

journalctl -n 10 -u ifi-streamer-tidal-connect.service | grep -i "Max connection attempts" && sudo systemctl restart ifi-streamer-tidal-connect.service