TeleFrame icon indicating copy to clipboard operation
TeleFrame copied to clipboard

Bot connection loss

Open Trenar opened this issue 5 years ago • 4 comments

Hi all, I have still another problem with the TeleFrame. It seems that the bot looses the server-connection. The software itself works fine, no freezing system or so, but if I send an image, it will not be displayed until I restart the software (or pi). Can this be related to wifi power management in the pi or is it a software issue? By thinking over this, I thought about a notification (or a simple symbol like the pause-symbol) when the internet-connection is lost. I'm however not quite sure how to implement this...

Trenar avatar Dec 09 '19 12:12 Trenar

just checking (noob too) - did you try with a wired connection to narrow it down?

Kind regards, Andreas

palmerich avatar Dec 10 '19 21:12 palmerich

I tested this by triggering a reboot of my firewall. It then takes some time for the messages to arrive after the connection is reestablished - here about half an hour.

gegu avatar Dec 11 '19 10:12 gegu

did you try with a wired connection to narrow it down?

I'm running TeleFrame on a RasPi 3A+, which has no wired connector...

I tested this by triggering a reboot of my firewall. It then takes some time for the messages to arrive after the connection is reestablished - here about half an hour.

For me it seems like the reconnection can't be reestablished at all.. Tried running TeleFrame over night (without toggling monitor or so), sent new photos but they won't get displayed. Sending "Hi" to check if the bot is alive also gives no answer.

Trenar avatar Dec 12 '19 12:12 Trenar

Today I had another issue (which was related to the router failing) but the bot could not reconnect after re-establishing network connection. When the pi was reconnected, I ssh'ed to it and opened the screen session where Teleframe is running in. There was this error message Failed to fetch updates. Waiting: 1s request to https://api.telegram.org/botTOKEN/getUpdates?offset=569122325&limit=100&timeout=30 failed, reason: read ETIMEDOUT

This looks like it tries to connect a hundred times and then gives up. Do I get this right? How can we handle this? I was thinking of a daily reboot of the pi or restarting teleframe or at least the bot, or a regular check for a valid network connection..

Trenar avatar Dec 13 '19 21:12 Trenar