question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Leaking of log contexts: `Re-starting finished log context`

See original GitHub issue

Hello, tried asking in your matrix room but got no help, so…

I don’t know what kind of problem this is, so not opening a bug report, unless you want me to do that. I’m looking at journalctl -f -u matrix-synapse.service and this WARNING log keeps repeating (my server is quite idle).

Jul 22 17:42:54 pandora.woodpeckersnest.space matrix-synapse[90282]: 2022-07-22 15:42:54,886 - synapse.logging.context - 81 - WARNING - PUT-92
53 - Re-starting finished log context PUT-9253
Jul 22 17:44:43 pandora.woodpeckersnest.space matrix-synapse[90282]: 2022-07-22 15:44:43,186 - synapse.logging.context - 81 - WARNING - PUT-92
95 - Re-starting finished log context PUT-9295
Jul 22 17:45:13 pandora.woodpeckersnest.space matrix-synapse[90282]: 2022-07-22 15:45:13,754 - synapse.logging.context - 81 - WARNING - PUT-93
10 - Re-starting finished log context PUT-9310
Jul 22 17:45:45 pandora.woodpeckersnest.space matrix-synapse[90282]: 2022-07-22 15:45:45,020 - synapse.logging.context - 81 - WARNING - PUT-93
23 - Re-starting finished log context PUT-9323

What issue might it be? Thanks

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erikjohnstoncommented, Jul 29, 2022

Thanks, does this still apply if I have Matrix metrics disabled?

Yeah, all the machinery is still there even if metrics are disabled, it just means you have even less reason to be concerned by the warnings.

0reactions
richvdhcommented, Aug 5, 2022

(@squahtx says we didn’t fix all these)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Log Contexts - Synapse
Log Contexts. To help track the processing of individual requests, synapse uses a ' log context ' to track which request it is...
Read more >
Re-starting finished log context _maybe_retry_device_resync
Re-starting finished log context _maybe_retry_device_resync #8080 ; S-Tolerable Minor significance, cosmetic issues, low or no impact to users. ; T-Defect Bugs, ...
Read more >
Debugging High Latency Due to Context Leaks | by Grab
In Market-Store, we use background contexts because they are not bound by request contexts and can continue running even after a request  ......
Read more >
Chapter 5. Troubleshooting problems related to SELinux Red ...
When your scenario is blocked by SELinux, the /var/log/audit/audit.log file is the first place to check for more information about a denial.
Read more >
Python Logging Guide - Best Practices and Hands-on Examples
The handlers use their threshold logging level and filters to filter log records for processing. This additional filtering allows context- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found