This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
stderr goes to /dev/null when we run with --daemonize
#1539
Labels
A-Logging
Synapse's logs (structured or otherwise). Not metrics.
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
Comments
matrixbot
changed the title
synctl runs synapse.app.homeserver --daemonise which swallows stderr (SYN-686)
synctl runs synapse.app.homeserver --daemonise which swallows stderr (https://github.com/matrix-org/synapse/issues/1539)
Nov 7, 2016
matrixbot
changed the title
synctl runs synapse.app.homeserver --daemonise which swallows stderr (https://github.com/matrix-org/synapse/issues/1539)
synctl runs synapse.app.homeserver --daemonise which swallows stderr (SYN-686)
Nov 7, 2016
This was referenced Jul 2, 2018
richvdh
changed the title
synctl runs synapse.app.homeserver --daemonise which swallows stderr (SYN-686)
stderr goes to /dev/null when we run with Nov 1, 2018
--daemonise
richvdh
changed the title
stderr goes to /dev/null when we run with
stderr goes to /dev/null when we run with Nov 1, 2018
--daemonise
--daemonize
The problem here is not so much that synctl uses I think the ideal here is:
This then allows the following configurations:
I see one particular fly in this ointment:
[1] redirecting the real stdout and stderr looks like: import os
original_stdout = os.dup(1)
with open('file', 'w+') as f:
os.dup2(f.fileno(), 2)
os.dup2(f.fileno(), 1) |
richvdh
added
the
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
label
Nov 1, 2018
This was referenced Oct 4, 2019
squahtx
added
A-Logging
Synapse's logs (structured or otherwise). Not metrics.
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
labels
Aug 31, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-Logging
Synapse's logs (structured or otherwise). Not metrics.
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
Submitted by @matthew:matrix.org
just wasted 30 minutes because an uncaught exception sent to stderr was being swallowed by synctl >:(
(Imported from https://matrix.org/jira/browse/SYN-686)
The text was updated successfully, but these errors were encountered: