nikclayton / android-squeezer

Android SqueezeCenter / SqueezeBox remote control client.
https://nikclayton.github.io/android-squeezer/
Apache License 2.0
99 stars 41 forks source link

constant reconnects #659

Closed seth-space closed 3 years ago

seth-space commented 4 years ago

Update to 2 20 results in a reconnect every aprox 10 sec. Every option I choose result in a reconnect and back to the start page.

kaaholst commented 4 years ago

I am sorry that you have problems with the new version.

I have a few questions to help pinpoint the problem.

  1. What is the result of running a scan for servers from squeezer?
  2. Can you connect to the scan result from the browser on the same device you run Squeezer?
  3. Which version of LMS are you running?
  4. Is LMS password protected?
  5. What is "start page"? if possible post a screenshot
  6. If there is any error message in the server log when Squeezer attempts to connect, then please send it to me:
seth-space commented 4 years ago

answers inline edit: read the ""attention below"!

  1. What is the result of running a scan for servers from squeezer?

It find the server without any trouble.

  1. Can you connect to the scan result from the browser on the same device you run Squeezer?

if you mean i can connect to the logitech server via the browser on the smartphone the answer is YES.

  1. Which version of LMS are you running?

Logitech Media Server Versie: 8.0.0 - 1601033329 @ Fri Sep 25 13:51:05 WEDT 202

  1. Is LMS password protected?

No

  1. What is "start page"? if possible post a screenshot

start page is the first page squeezer starts..

  1. If there is any error message in the server log when Squeezer attempts to connect, then please send it to me:

No errors found..

Its a bit hit and mis. Sometimes Squeezer seems to work as expected and other times ( most) it keeps reconnecting.

Op wo 30 sep. 2020 om 08:15 schreef Kurt Aaholst notifications@github.com:

I am sorry that you have problems with the new version.

I have a few questions to help pinpoint the problem.

  1. What is the result of running a scan for servers from squeezer?
  2. Can you connect to the scan result from the browser on the same device you run Squeezer?
  3. Which version of LMS are you running?
  4. Is LMS password protected?
  5. What is "start page"? if possible post a screenshot
  6. If there is any error message in the server log when Squeezer attempts to connect, then please send it to me:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nikclayton/android-squeezer/issues/659#issuecomment-701179878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAT2MVOFQQORCAGG3KRHCTSILEGPANCNFSM4R43UTOA .

-- Ed van Delft

Attention!

Just upgraded to: Logitech Media Server Versie: 8.0.0 - 1601455867 @ Wed Sep 30 11:13:07 WEDT 2020

Looking at the https://github.com/Logitech/slimserver/commits/public/8.0 there is nothing related changed but i am able to run the new Squeezer without problems for the last hour.

kaaholst commented 4 years ago

Unfortunately I am not able to reproduce this. I also tried to upgrade to LMS 8 (October 2 version), and it runs without any problems.

Does Squeezer still run reliably and does not loose the connection?

seth-space commented 4 years ago

At the moment squeezer runs great.. not sure if it is related to the LMS update i did. Every LMS update always results in a restart so maybe there was a problem before. For now it seems solved. I will come back if the problem reappears.

thl81 commented 3 years ago

Hello, i have the same Problem. Device: Samsung Galaxy Note 10 and Huawei P30 pro. LMS 8.2 auf Raspberry Pi4 with MAX2PLAY-Image on Lan. Same with actual Version from Play-Store. No Errors in LMS and no Password protection. With older Versions everething was fine.

kaaholst commented 3 years ago

Does a restart of LMS fix the problem?

thl81 commented 3 years ago

No, it is the same after a restart of LMS. It immediately starts reconnecting. It works for a while on one cell phone, while the problem occurs on the other at the same time. Only clearing the cache from Squeezer brings something. It clearly seems to have to do with the installation on the phones. Can I see Squeezer log files somewhere?

kaaholst commented 3 years ago

I'm not sure what's causing this, and I am unable to reproduce it.

From a review on Google Play I learned that one user solved this issue by deselecting "Auto-connect" (in Squeezer select the three-dot-menu on the top right and select settings).

I'm not aware of an easy way to see the log files, and I'm not sure if they would provide any more insight to the issue (other than the connection is lost, which you already know). The see application logs you have to install Android Studio and use the logcat window (https://developer.android.com/studio/debug/am-logcat) or install adb and use "adb logcat ..." (https://developer.android.com/studio/command-line/logcat)

poltpolt commented 3 years ago

I have the same problem and I spotted one type of logs - maybe relevant maybe not

[21-01-04 00:03:38.3906] Slim::Web::Cometd::handler (200) Invalid request without clientId - discarding remaining requests in packet

kaaholst commented 3 years ago

@polrus Thanks for the log-info, I will investigate if it has any impact. Does disabling ""Auto-connect"" make any difference?

poltpolt commented 3 years ago

I have updated and restarted my LMS server to 8.1 for now the issue is not visible, but as soon as I see it I will check the impact of auto-connect

kaaholst commented 3 years ago

@polrus Thanks for the feedback, and happy to hear it's working now. I don't have any "Slim::Web::Cometd::handler (200) Invalid request without clientId" messages in the log files on my servers. I also inspected the server code, and as for as I can tell this log message does not signal a disconnect.

When/if this happens I'm interested in the server logs leading up to the disconnect. In the LMS web-interface select Settings/Advanced/Logging and raise the "(network.cometd) - Cometd protocol logging" log-level to Debug. Check the log-messages for any sensitive information, and then attach them to this issue.

thl81 commented 3 years ago

In the debug mode of the log files I now have the following entries. The problem is logged at 08:37:19.2211. And my squeezer is active on 192.168.0.115. Deactivating the automatic connection makes no difference to me. The Log-Snipped:

[21-01-06 08:37:16.6332] Slim::Web::Cometd::sendHTTPResponse (730) Sending Cometd chunk (192.168.0.115:47286):
[{"channel":"/a2674d63/slim/request/607","ext":{"priority":""},"data":{"item_loop":[{"textkey":"S","text":"DJ Sickamore","commonParams":{"artist_id":"600"},"presetParams":{"favorites_url":"db:contributor.name=DJ%20Sickamore","favorites_title":"DJ Sickamore","favorites_type":"playlist"},"type":"playlist"},{"commonParams":{"artist_id":"2743"},"text":"Sido","textkey":"S","type":"playlist","presetParams":{"favorites_title":"Sido","favorites_type":"playlist","favorites_url":"db:contributor.name=Sido"}},{"presetParams":{"favorites_url":"db:contributor.name=Beanie%20Sigel","favorites_title":"Beanie Sigel","favorites_type":"playlist"},"type":"playlist","textkey":"S","text":"Beanie Sigel","commonParams":{"artist_id":"123"}},{"commonParams":{"artist_id":"1522"},"textkey":"S","text":"Silbermond","type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Silbermond","favorites_type":"playlist","favorites_title":"Silbermond"}},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Silicon%20Head","favorites_type":"playlist","favorites_title":"Silicon Head"},"commonParams":{"artist_id":"2749"},"text":"Silicon Head","textkey":"S"},{"presetParams":{"favorites_url":"db:contributor.name=Silke%20Bischoff","favorites_title":"Silke Bischoff","favorites_type":"playlist"},"type":"playlist","text":"Silke Bischoff","textkey":"S","commonParams":{"artist_id":"2750"}},{"presetParams":{"favorites_url":"db:contributor.name=Silly%20Walks%20Movement","favorites_type":"playlist","favorites_title":"Silly Walks Movement"},"type":"playlist","textkey":"S","text":"Silly Walks Movement","commonParams":{"artist_id":"2751"}},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Lucie%20Silvas","favorites_type":"playlist","favorites_title":"Lucie Silvas"},"commonParams":{"artist_id":"1881"},"text":"Lucie Silvas","textkey":"S"},{"presetParams":{"favorites_title":"Simon & Garfunkel","favorites_type":"playlist","favorites_url":"db:contributor.name=Simon%20%26%20Garfunkel"},"type":"playlist","text":"Simon & Garfunkel","textkey":"S","commonParams":{"artist_id":"2753"}},{"textkey":"S","text":"Nina Simone","commonParams":{"artist_id":"2278"},"presetParams":{"favorites_title":"Nina Simone","favorites_type":"playlist","favorites_url":"db:contributor.name=Nina%20Simone"},"type":"playlist"},{"textkey":"S","text":"Simone Sommerland","commonParams":{"artist_id":"9"},"presetParams":{"favorites_url":"db:contributor.name=Simone%20Sommerland","favorites_type":"playlist","favorites_title":"Simone Sommerland"},"type":"playlist"},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Edward%20Simoni","favorites_type":"playlist","favorites_title":"Edward Simoni"},"commonParams":{"artist_id":"872"},"text":"Edward Simoni","textkey":"S"},{"commonParams":{"artist_id":"2755"},"text":"Simple Minds","textkey":"S","type":"playlist","presetParams":{"favorites_type":"playlist","favorites_title":"Simple Minds","favorites_url":"db:contributor.name=Simple%20Minds"}},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Simple%20Plan","favorites_type":"playlist","favorites_title":"Simple Plan"},"commonParams":{"artist_id":"2756"},"text":"Simple Plan","textkey":"S"},{"text":"Simply Red","textkey":"S","commonParams":{"artist_id":"2757"},"presetParams":{"favorites_title":"Simply Red","favorites_type":"playlist","favorites_url":"db:contributor.name=Simply%20Red"},"type":"playlist"},{"presetParams":{"favorites_type":"playlist","favorites_title":"Ashlee Simpson","favorites_url":"db:contributor.name=Ashlee%20Simpson"},"type":"playlist","textkey":"S","text":"Ashlee Simpson","commonParams":{"artist_id":"85"}},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Jessica%20Simpson","favorites_type":"playlist","favorites_title":"Jessica Simpson"},"commonParams":{"artist_id":"1634"},"text":"Jessica Simpson","textkey":"S"},{"presetParams":{"favorites_url":"db:contributor.name=Ray%20Simpson","favorites_type":"playlist","favorites_title":"Ray Simpson"},"type":"playlist","text":"Ray Simpson","textkey":"S","commonParams":{"artist_id":"2513"}},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Sin%20With%20Sebastian","favorites_title":"Sin With Sebastian","favorites_type":"playlist"},"commonParams":{"artist_id":"2758"},"text":"Sin With Sebastian","textkey":"S"},{"type":"playlist","presetParams":{"favorites_title":"Frank Sinatra","favorites_type":"playlist","favorites_url":"db:contributor.name=Frank%20Sinatra"},"commonParams":{"artist_id":"1013"},"text":"Frank Sinatra","textkey":"S"},{"textkey":"S","text":"Nancy Sinatra","commonParams":{"artist_id":"2189"},"presetParams":{"favorites_url":"db:contributor.name=Nancy%20Sinatra","favorites_title":"Nancy Sinatra","favorites_type":"playlist"},"type":"playlist"},{"presetParams":{"favorites_url":"db:contributor.name=Bob%20Sinclar","favorites_title":"Bob Sinclar","favorites_type":"playlist"},"type":"playlist","text":"Bob Sinclar","textkey":"S","commonParams":{"artist_id":"247"}},{"textkey":"S","text":"Bob Sinclar & Cutee B","commonParams":{"artist_id":"246"},"presetParams":{"favorites_url":"db:contributor.name=Bob%20Sinclar%20%26%20Cutee%20B","favorites_title":"Bob Sinclar & Cutee B","favorites_type":"playlist"},"type":"playlist"},{"text":"Sir Mix-A-Lot","textkey":"S","commonParams":{"artist_id":"1422"},"presetParams":{"favorites_url":"db:contributor.name=Sir%20Mix-A-Lot","favorites_title":"Sir Mix-A-Lot","favorites_type":"playlist"},"type":"playlist"},{"text":"The Sisters of Mercy","textkey":"S","commonParams":{"artist_id":"3242"},"presetParams":{"favorites_url":"db:contributor.name=The%20Sisters%20of%20Mercy","favorites_title":"The Sisters of Mercy","favorites_type":"playlist"},"type":"playlist"},{"textkey":"S","text":"Six Feet Under","commonParams":{"artist_id":"2770"},"presetParams":{"favorites_url":"db:contributor.name=Six%20Feet%20Under","favorites_type":"playlist","favorites_title":"Six Feet Under"},"type":"playlist"},{"presetParams":{"favorites_type":"playlist","favorites_title":"Size 9","favorites_url":"db:contributor.name=Size%209"},"type":"playlist","text":"Size 9","textkey":"S","commonParams":{"artist_id":"2771"}},{"presetParams":{"favorites_type":"playlist","favorites_title":"The Skatalites","favorites_url":"db:contributor.name=The%20Skatalites"},"type":"playlist","text":"The Skatalites","textkey":"S","commonParams":{"artist_id":"3243"}},{"textkey":"S","text":"Skeletal Earth","commonParams":{"artist_id":"2772"},"presetParams":{"favorites_url":"db:contributor.name=Skeletal%20Earth","favorites_title":"Skeletal Earth","favorites_type":"playlist"},"type":"playlist"},{"commonParams":{"artist_id":"2240"},"text":"Nick Skitz","textkey":"S","type":"playlist","presetParams":{"favorites_title":"Nick Skitz","favorites_type":"playlist","favorites_url":"db:contributor.name=Nick%20Skitz"}},{"commonParams":{"artist_id":"2773"},"text":"Sky","textkey":"S","type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Sky","favorites_type":"playlist","favorites_title":"Sky"}},{"presetParams":{"favorites_type":"playlist","favorites_title":"Slade","favorites_url":"db:contributor.name=Slade"},"type":"playlist","text":"Slade","textkey":"S","commonParams":{"artist_id":"2774"}},{"type":"playlist","presetParams":{"favorites_title":"Luke Slater","favorites_type":"playlist","favorites_url":"db:contributor.name=Luke%20Slater"},"commonParams":{"artist_id":"1888"},"text":"Luke Slater","textkey":"S"},{"commonParams":{"artist_id":"826"},"text":"slaughter mob","textkey":"S","type":"playlist","presetParams":{"favorites_url":"db:contributor.name=slaughter%20mob","favorites_type":"playlist","favorites_title":"slaughter mob"}},{"textkey":"S","text":"Slayer","commonParams":{"artist_id":"2775"},"presetParams":{"favorites_type":"playlist","favorites_title":"Slayer","favorites_url":"db:contributor.name=Slayer"},"type":"playlist"},{"presetParams":{"favorites_title":"Will Smith","favorites_type":"playlist","favorites_url":"db:contributor.name=Will%20Smith"},"type":"playlist","textkey":"S","text":"Will Smith","commonParams":{"artist_id":"3629"}},{"text":"Smokie","textkey":"S","commonParams":{"artist_id":"2776"},"presetParams":{"favorites_url":"db:contributor.name=Smokie","favorites_title":"Smokie","favorites_type":"playlist"},"type":"playlist"},{"type":"playlist","presetParams":{"favorites_type":"playlist","favorites_title":"Snap!","favorites_url":"db:contributor.name=Snap!"},"commonParams":{"artist_id":"2777"},"textkey":"S","text":"Snap!"},{"text":"Snoop Dogg","textkey":"S","commonParams":{"artist_id":"1426"},"presetParams":{"favorites_title":"Snoop Dogg","favorites_type":"playlist","favorites_url":"db:contributor.name=Snoop%20Dogg"},"type":"playlist"},{"text":"snoop dogg ft pharrell & kardi","textkey":"S","commonParams":{"artist_id":"6992"},"presetParams":{"favorites_type":"playlist","favorites_title":"snoop dogg ft pharrell & kardi","favorites_url":"db:contributor.name=snoop%20dogg%20ft%20pharrell%20%26%20kardi"},"type":"playlist"},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Snoop%20Doggy%20Dog","favorites_title":"Snoop Doggy Dog","favorites_type":"playlist"},"commonParams":{"artist_id":"1427"},"textkey":"S","text":"Snoop Doggy Dog"},{"textkey":"S","text":"Snow","commonParams":{"artist_id":"72"},"presetParams":{"favorites_title":"Snow","favorites_type":"playlist","favorites_url":"db:contributor.name=Snow"},"type":"playlist"},{"type":"playlist","presetParams":{"favorites_type":"playlist","favorites_title":"Mark Snow","favorites_url":"db:contributor.name=Mark%20Snow"},"commonParams":{"artist_id":"2000"},"text":"Mark Snow","textkey":"S"},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Snow%20Patrol","favorites_type":"playlist","favorites_title":"Snow Patrol"},"commonParams":{"artist_id":"2780"},"text":"Snow Patrol","textkey":"S"},{"text":"Florian Snyder","textkey":"S","commonParams":{"artist_id":"999"},"presetParams":{"favorites_url":"db:contributor.name=Florian%20Snyder","favorites_type":"playlist","favorites_title":"Florian Snyder"},"type":"playlist"},{"commonParams":{"artist_id":"2782"},"textkey":"S","text":"Sofa Surfers","type":"playlist","presetParams":{"favorites_url":"db:contributor.name=Sofa%20Surfers","favorites_type":"playlist","favorites_title":"Sofa Surfers"}},{"type":"playlist","presetParams":{"favorites_url":"db:contributor.name=S%C3%B6hne%20Mannheims","favorites_title":"Söhne Mannheims","favorites_type":"playlist"},"commonParams":{"artist_id":"2630"},"text":"Söhne Mannheims","textkey":"S"},{"presetParams":{"favorites_url":"db:contributor.name=Soilwork","favorites_title":"Soilwork","favorites_type":"playlist"},"type":"playlist","textkey":"S","text":"Soilwork","commonParams":{"artist_id":"2783"}},{"presetParams":{"favorites_title":"Martin Solveig","favorites_type":"playlist","favorites_url":"db:contributor.name=Martin%20Solveig"},"type":"playlist","textkey":"S","text":"Martin Solveig","commonParams":{"artist_id":"2021"}},{"textkey":"S","text":"Some Velvet Sidewalk","commonParams":{"artist_id":"2784"},"presetParams":{"favorites_url":"db:contributor.name=Some%20Velvet%20Sidewalk","favorites_title":"Some Velvet Sidewalk","favorites_type":"playlist"},"type":"playlist"}],"window":{"windowStyle":"text_list"},"offset":"2000","count":"2373","base":{"actions":{"set-preset-4":{"itemsParams":"presetParams","player":"0","cmd":["jivefavorites","set_preset","key:4"]},"set-preset-0":{"player":"0","cmd":["jivefavorites","set_preset","key:0"],"itemsParams":"presetParams"},"set-preset-9":{"cmd":["jivefavorites","set_preset","key:9"],"player":"0","itemsParams":"presetParams"},"set-preset-2":{"itemsParams":"presetParams","cmd":["jivefavorites","set_preset","key:2"],"player":"0"},"set-preset-1":{"itemsParams":"presetParams","cmd":["jivefavorites","set_preset","key:1"],"player":"0"},"set-preset-6":{"itemsParams":"presetParams","player":"0","cmd":["jivefavorites","set_preset","key:6"]},"set-preset-7":{"itemsParams":"presetParams","player":"0","cmd":["jivefavorites","set_preset","key:7"]},"set-preset-3":{"itemsParams":"presetParams","player":"0","cmd":["jivefavorites","set_preset","key:3"]},"add-hold":{"params":{"role_id":"ALBUMARTIST","cmd":"insert","menu":"1"},"player":"0","cmd":["playlistcontrol"],"itemsParams":"commonParams"},"go":{"itemsParams":"commonParams","cmd":["browselibrary","items"],"params":{"mode":"albums","menu":"1","role_id":"ALBUMARTIST"},"player":"0"},"add":{"itemsParams":"commonParams","cmd":["playlistcontrol"],"player":"0","params":{"cmd":"add","menu":"1","role_id":"ALBUMARTIST"}},"set-preset-8":{"itemsParams":"presetParams","player":"0","cmd":["jivefavorites","set_preset","key:8"]},"play":{"itemsParams":"commonParams","nextWindow":"nowPlaying","cmd":["playlistcontrol"],"params":{"role_id":"ALBUMARTIST","menu":"1","cmd":"load"},"player":"0"},"set-preset-5":{"itemsParams":"presetParams","cmd":["jivefavorites","set_preset","key:5"],"player":"0"},"playControl":{"cmd":["browselibrary","items"],"params":{"_quantity":"50","_index":"2000","useContextMenu":"1","mode":"artists","role_id":"ALBUMARTIST","menu":"1"},"player":"0","itemsParams":"playControlParams","window":{"isContextMenu":"1"}},"more":{"params":{"menu":"1"},"player":"0","cmd":["artistinfo","items"],"window":{"isContextMenu":"1"},"itemsParams":"commonParams"}}}},"id":"2588"}]
[21-01-06 08:37:16.6348] Slim::Web::Cometd::sendHTTPResponse (724) Sending Cometd response (192.168.0.115:47288):
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 81
Content-Type: application/json
Expires: -1
X-Time-To-Serve: 0.164697885513306

[{"id":"2588","successful":true,"clientId":"a2674d63","channel":"/slim/request"}]
[21-01-06 08:37:19.2198] Slim::Web::Cometd::handler (149) Cometd request (192.168.0.115:47288): [
  { channel => "/meta/disconnect", clientId => "a2674d63", id => 2591 },
]
[21-01-06 08:37:19.2211] Slim::Web::Cometd::disconnectClient (1035) Disconnect for a2674d63, removing subscriptions
[21-01-06 08:37:19.2227] Slim::Web::Cometd::disconnectClient (1040) Unregistered all auto-execute requests for client a2674d63
[21-01-06 08:37:19.2243] Slim::Web::Cometd::disconnectClient (1048) Unsubscribed from callback CODE(0x8202a40) for /a2674d63/slim/menustatus/dc:a6:32:e5:fd:5a
[21-01-06 08:37:19.2255] Slim::Web::Cometd::Manager::remove_channels (143) remove_channels for a2674d63: (?^:^/a2674d63/slim/request/[^/]+)
[21-01-06 08:37:19.2263] Slim::Web::Cometd::Manager::remove_channels (143) remove_channels for a2674d63: /a2674d63/slim/serverstatus
[21-01-06 08:37:19.2270] Slim::Web::Cometd::Manager::remove_channels (143) remove_channels for a2674d63: (?^:^/a2674d63/slim/playerstatus/[^/]+)
[21-01-06 08:37:19.2277] Slim::Web::Cometd::Manager::remove_channels (143) remove_channels for a2674d63: (?^:^/a2674d63/slim/displaystatus/[^/]+)
[21-01-06 08:37:19.2285] Slim::Web::Cometd::Manager::remove_channels (143) remove_channels for a2674d63: (?^:^/a2674d63/slim/menustatus/[^/]+)
[21-01-06 08:37:19.2292] Slim::Web::Cometd::Manager::remove_client (92) remove_client: a2674d63
[21-01-06 08:37:19.2314] Slim::Web::Cometd::sendHTTPResponse (724) Sending Cometd response (192.168.0.115:47288):
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: close
Pragma: no-cache
Content-Length: 116
Content-Type: application/json
Expires: -1
X-Time-To-Serve: 0.0137701034545898

[{"timestamp":"Wed, 06 Jan 2021 07:37:19 GMT","clientId":"a2674d63","successful":true,"channel":"/meta/disconnect"}]
[21-01-06 08:37:19.2330] Slim::Web::Cometd::webCloseHandler (974) Lost connection from 192.168.0.115:47288, clid: a2674d63, transport: none
[21-01-06 08:37:19.2338] Slim::Web::Cometd::webCloseHandler (998) Not the active connection, ignoring
[21-01-06 08:37:19.2391] Slim::Web::Cometd::webCloseHandler (974) Lost connection from 192.168.0.115:47286, clid: a2674d63, transport: streaming
[21-01-06 08:37:19.2398] Slim::Web::Cometd::webCloseHandler (998) Not the active connection, ignoring
[21-01-06 08:37:19.3528] Slim::Web::Cometd::handler (149) Cometd request (192.168.0.115:47330): [
  {
    channel => "/meta/handshake",
    ext => {
          mac  => "9E:DE:24:BB:75:62",
          rev  => "2.2.1",
          uuid => "7bc3e94221414466b42e3ba1da549e0d",
        },
    id => 2592,
    "supportedConnectionTypes" => ["streaming"],
    version => "1.0",
  },
]
[21-01-06 08:37:19.3535] Slim::Web::Cometd::Manager::add_client (42) add_client: 525da60e
[21-01-06 08:37:19.3553] Slim::Web::Cometd::sendHTTPResponse (724) Sending Cometd response (192.168.0.115:47330):
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 203
Content-Type: application/json
Expires: -1
X-Time-To-Serve: 0.00485706329345703

I hope it helps.

kaaholst commented 3 years ago

@thl81 Thank you very much for the detailed description. This was exactly what I requested. Unfortunately I am still not able to find the root cause, nor to reproduce it. The log however indicates that the disconnection is originated from the client (Squeezer on Android), not something Squeezer does which causes the server to disconnect. So this is the direction I'm investigating now.

chrisdx2 commented 3 years ago

For me it is the same issue I think since 3 or 4 versions now. Restarting often after few seconds makes the app more or less unusable. I have a Samsung Galaxy A6. All the topics mentioned above did not solve the issue. Please find here some logs from the LMS refelcting some re-connects. Let me know, if I can provide any additional information.

[21-01-23 00:05:39.7527] Slim::Web::Cometd::handler (149) Cometd request (10.4.8.62:52647): [ { channel => "/meta/connect", clientId => "7ae8d508", connectionType => "streaming", id => 5109, }, ] [21-01-23 00:05:39.7538] Slim::Web::Cometd::handler (253) Client (re-)connected: 7ae8d508 [21-01-23 00:05:39.7547] Slim::Web::Cometd::Manager::register_connection (53) register_connection: 7ae8d508 [21-01-23 00:05:39.7562] Slim::Web::Cometd::sendHTTPResponse (730) Sending Cometd chunk (10.4.8.62:52647): [{"successful":true,"clientId":"7ae8d508","channel":"/meta/connect","advice":{"interval":5000},"timestamp":"Fri, 22 Jan 2021 23:05:39 GMT"}] [21-01-23 00:05:44.7708] Slim::Web::Cometd::handler (149) Cometd request (10.4.8.62:52647): [ { channel => "/meta/connect", clientId => "7ae8d508", connectionType => "streaming", id => 5110, }, ] [21-01-23 00:05:44.7719] Slim::Web::Cometd::handler (253) Client (re-)connected: 7ae8d508 [21-01-23 00:05:44.7729] Slim::Web::Cometd::Manager::register_connection (53) register_connection: 7ae8d508 [21-01-23 00:05:44.7744] Slim::Web::Cometd::sendHTTPResponse (730) Sending Cometd chunk (10.4.8.62:52647): [{"timestamp":"Fri, 22 Jan 2021 23:05:44 GMT","advice":{"interval":5000},"clientId":"7ae8d508","channel":"/meta/connect","successful":true}] [21-01-23 00:05:49.7894] Slim::Web::Cometd::handler (149) Cometd request (10.4.8.62:52647): [ { channel => "/meta/connect", clientId => "7ae8d508", connectionType => "streaming", id => 5111, }, ] [21-01-23 00:05:49.7907] Slim::Web::Cometd::handler (253) Client (re-)connected: 7ae8d508 [21-01-23 00:05:49.7969] Slim::Web::Cometd::Manager::register_connection (53) register_connection: 7ae8d508 [21-01-23 00:05:49.7986] Slim::Web::Cometd::sendHTTPResponse (730) Sending Cometd chunk (10.4.8.62:52647): [{"successful":true,"channel":"/meta/connect","clientId":"7ae8d508","advice":{"interval":5000},"timestamp":"Fri, 22 Jan 2021 23:05:49 GMT"}] [21-01-23 00:05:52.0462] Slim::Web::Cometd::requestCallback (925) requestCallback got results for /512e94af/slim/serverstatus / 1 [21-01-23 00:05:52.0514] Slim::Web::Cometd::requestCallback (925) requestCallback got results for /a7ce72c2/slim/serverstatus / 1 [21-01-23 00:05:52.0556] Slim::Web::Cometd::requestCallback (925) requestCallback got results for /3267256e/slim/serverstatus / 1 [21-01-23 00:05:52.0597] Slim::Web::Cometd::requestCallback (925) requestCallback got results for /3f00d886/slim/serverstatus / 1 [21-01-23 00:05:52.0638] Slim::Web::Cometd::requestCallback (925) requestCallback got results for /9dc1add6/slim/serverstatus / 1

viertelb commented 3 years ago

Just my 2 cents on this. I have a Huawei P40 Pro (without Google) and was running Squeezer 2.2.1. I had the same problem. I found a 2.2.2. version somewhere and it's better now.

PGilm commented 3 years ago

This happens to me when I am mucking around with various players like my softsqueezes on various linux pcs, my squeezeboxes, some squeezeplays on windows devices, etc.

And the best answer is to turn off the devices or find the specific one that is causing the error because it seems to happen when one player fails to sync and tries over and over again.

Someone, I think a developer mentioned above it was a player issue and that is correct for the most part.

kaaholst commented 3 years ago

The issue tracker has moved to a the new location: https://github.com/kaaholst/android-squeezer/issues/660

Please use that for future comments.