xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
576 stars 130 forks source link

[error] Got nothing in the socket in DC 4.0, reconnecting... #60

Closed artin closed 3 years ago

artin commented 3 years ago

Hello , Every few days I am restarting TelegramApiServer to free up memory usage caused by memory leak, But it didn't start like always It keep showing Following error in infinite loop upgrading TelegramApiServer didn't help ... Do you have any Idea ? Thanks

..... [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [warning] Connected to DC 4.0! [2021-03-13 18:03:51] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers, on DC 4.0, sending state request [2021-03-13 18:03:51] [warning] OK! [2021-03-13 18:03:51] [error] Got nothing in the socket in DC 4.0, reconnecting... [2021-03-13 18:03:51] [warning] Reconnecting to DC 4 (0) from existing [2021-03-13 18:03:51] [warning] Connecting to DC 4.0 [2021-03-13 18:03:51] [warning] Connected to DC 4.0! ......

artin commented 3 years ago

Weird error messages and even more weird solution ! After re-creating telegram sessions problem fixed ! :|

xtrime-ru commented 3 years ago

Yes, Looks like some data in session gets corrupted.

anguschiu1 commented 3 years ago

@artin Have you still experienced same problem since then? I am consistently encountering the problem with similar error and docker failed to spin up. I have tried to use new Telegram account with fresh App api_id / App api_hash, but problem persists.

telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 2.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getConfig,  on DC 2.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
telegram-api-server        | [2021-07-11 05:45:56] [error] Got nothing in the socket in DC 5.0, reconnecting...
telegram-api-server        | [2021-07-11 05:45:56] [warning] Reconnecting to DC 5 (0) from existing
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connecting to DC 5.0
telegram-api-server        | [2021-07-11 05:45:56] [error] Got nothing in the socket in DC 2.0, reconnecting...
telegram-api-server        | [2021-07-11 05:45:56] [warning] Reconnecting to DC 2 (0) from existing
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connecting to DC 2.0
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 5.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers,  on DC 5.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 2.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getConfig,  on DC 2.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
telegram-api-server        | [2021-07-11 05:45:56] [error] Got nothing in the socket in DC 5.0, reconnecting...
telegram-api-server        | [2021-07-11 05:45:56] [warning] Reconnecting to DC 5 (0) from existing
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connecting to DC 5.0
telegram-api-server        | [2021-07-11 05:45:56] [error] Got nothing in the socket in DC 2.0, reconnecting...
telegram-api-server        | [2021-07-11 05:45:56] [warning] Reconnecting to DC 2 (0) from existing
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connecting to DC 2.0
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 5.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers,  on DC 5.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 2.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getConfig,  on DC 2.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
telegram-api-server        | [2021-07-11 05:45:56] [error] Got nothing in the socket in DC 5.0, reconnecting...
telegram-api-server        | [2021-07-11 05:45:56] [warning] Reconnecting to DC 5 (0) from existing
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connecting to DC 5.0
telegram-api-server        | [2021-07-11 05:45:56] [error] Got nothing in the socket in DC 2.0, reconnecting...
telegram-api-server        | [2021-07-11 05:45:56] [warning] Reconnecting to DC 2 (0) from existing
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connecting to DC 2.0
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 5.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getTermsOfServiceUpdate, users.getUsers,  on DC 5.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
telegram-api-server        | [2021-07-11 05:45:56] [warning] Connected to DC 2.0!
telegram-api-server        | [2021-07-11 05:45:56] [error] Still missing help.getConfig,  on DC 2.0, sending state request
telegram-api-server        | [2021-07-11 05:45:56] [warning] OK!
....