-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bridges take very long time to answer (~20min-2h) #13423
Comments
Hi, I think it would be good to have some of Synapse's logs, notably ones that show:
If you could include those and point out which of the messages are the slow-to-be-processed ones and which are OK, that would help in seeing whether this is an issue in Synapse (and if so, what it is) or otherwise figuring out where the problem is coming from. Thanks. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi, I tried to get more information. I changed log level to debug and wrote to the SignalBot at 14:47, this time the bot took only three minutes and answered at 14:50. I'm not sure what is relevant so here is the whole log: I also looked in the old logs, I don't know if it is relevant but they are extremely huge, even though they were set to warning level.
|
I think I may see your problem, take a look at this:
I don't really know what to suggest; possibly your use of LXC is causing some DNS trouble (I had some mysterious DNS trouble when using LXC a long long time ago). I'd be tempted to check:
If you get very very desperate, you can probably change the addresses of your bridges (in the registration YAML files) to say |
@hubermat I think it will be best if you open a new issue, please. Even though it may turn out to be the same in the end, there's a very good chance that it won't be the same, so there's a good chance we'll make this issue's history quite confusing to follow. |
@reivilibre Thanks for your help.
And this is
BTW I don't know if it matters, but I have configured an localhosted AdGuard DNS on my router.
Digging 2:
|
I'm definitely not sure if this is the problem or not, but you have two entries for
The
In other words, it doesn't call Try removing Let me know how you get on. |
@reivilibre For now it looks like most of the bots work (the bots are all online for now), but heisenbridge not anymore. It joins the room and writes the first info message but after that the bot is dead and never online. |
@reivilibre Do you have an idea why? |
A few questions: when you say
are you determining this via presence or are there other indications that the bot is not working? Also just to make sure this is clear, you removed Finally, you mention writing messages to heisenbridge around 1:28, but the last timestamp on the logs provided is 1:15:02, could you provide logs that cover sending messages to heisenbridge? |
Bot is not answering anymore, not even after waiting for a while, like before. It isn't online either, the online indicator of the other bots is now constantly green.
That's correct.
I will try to get another log tomorrow, it's too late tonight. |
@H-Shay Here are the new logs: homeserver.log |
@H-Shay Do these logs help? Can you find something? |
Saw that an example leak in #13423 (comment) ``` 2022-08-04 14:47:57,925 - synapse.http.client - 401 - DEBUG - as-sender-signal-1 - Sending request PUT http://localhost:29328/transactions/10722?access_token=<redacted> 2022-08-04 14:47:57,926 - synapse.http.proxyagent - 223 - DEBUG - as-sender-signal-1 - Requesting b'http://localhost:29328/transactions/10722?access_token=leaked' via <HostnameEndpoint localhost:29328> ```
Is this still an issue or has this been resolved? |
It got resolved, changing hosts did work, but after a completely new installation the bug was gone too. |
This can happen specifically with an application service `/transactions/10722?access_token=leaked` request Fix #13010 --- Saw an example leak in #13423 (comment) ``` 2022-08-04 14:47:57,925 - synapse.http.client - 401 - DEBUG - as-sender-signal-1 - Sending request PUT http://localhost:29328/transactions/10722?access_token=<redacted> 2022-08-04 14:47:57,926 - synapse.http.proxyagent - 223 - DEBUG - as-sender-signal-1 - Requesting b'http://localhost:29328/transactions/10722?access_token=leaked' via <HostnameEndpoint localhost:29328> ```
Description
Hello!
I'm running an homeserver on Debian11 Proxmox LXC with 2 CPUs and 4GB RAM (never peaked out until now).
On the homeserver I have Discord, Signal, Telegram and WhatsApp Bridge running.
When no one interacted with bridge bot (no matter which one) for a while and initiates a conversation (invite or message) the bot takes a really long time for the first answer to appear or for it to join the chat.
But after the first reply of the bot and the user answers thereafter, it works without problems.
When not contacting the bot for a while, the problem repeats. Weirdly, the bridging itself works the whole time.
Since this issue is with every bot I thougt it should be a problem with synapse.
I looked into the logs, but didn't find anything, in my opinion relevant. It looks like the messages take a long to be sent to the bridge bot, rebooting the bridge doesn't help, but after rebooting synapse, the bots are answering instantly.
Steps to reproduce
Homeserver
https://chat.flowerhouse.at
Synapse Version
{"server_version":"1.63.1","python_version":"3.9.2"}
Installation Method
Debian packages from packages.matrix.org
Platform
Debian11 ProxMox LXC
Relevant log output
Didn't find anything relevant in the logs
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: