usememos / telegram-integration

Memogram is an easy to use integration service for syncing messages and images from a Telegram bot into your Memos.
59 stars 15 forks source link

Need add aoption to always restart/reconnect to memos service #17

Closed VecH closed 2 months ago

VecH commented 3 months ago

Need add aoption to always restart/reconnect to memos service If the memogram service starts before the memos service, then it crashes with an error, but it needs to be reconnected

2024/06/07 12:49:12 INFO Memogram started
2024/06/07 12:49:12 ERROR failed to get workspace profile err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 127.0.0.1:5230: connect: connection refused\""
boojack commented 3 months ago

Need add aoption to always restart/reconnect to memos service

It is recommended to reboot manually, there is no need to keep listening for memos to start.

VecH commented 3 months ago

I'm running it as a systemd service and on startup it starts after networking, but the memos docker container isn't running yet, so it throws an error and the service stops https://www.linux.org.ru/forum/admin/17638203?cid=17640286

I'm running it as a systemd service and on startup it starts after networking, but the memos docker container isn't running yet, so it throws an error and the service stops

You can restart the service indefinitely until it connects, but this is wrong