element-hq / element-hq/synapse

Errors during init get lost in the logs

Open
#4,641 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.