element-hq / element-hq/synapse
Errors during init get lost in the logs
Open
A-Logging
O-Uncommon
S-Minor
T-Defect
z-p2
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#4641](https://github.com/matrix-org/synapse/issues/4641).
---
When started with `-D`, Synapse daemonizes itself *before* it binds any TCP/SSL listeners, which means that any errors that occur during that process (such as permission errors or "Address already in use", but also any of a number of potential configuration errors) get lost in the logs rather than being visible in stderr, and the process manager (`synctl` or `systemd`) can't tell that there was an error.
Contributor guide
Assessment
This issue has not been assessed yet.