element-hq / element-hq/synapse
Twisted: Bad Descriptor/Malformed Descriptor Found
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#9014](https://github.com/matrix-org/synapse/issues/9014).
---
### Description
The server has consistent downtime, usually lasting about a minute. Then it begins working again as it should. This appears to be due to an issue with Twisted. I'm not entirely sure if this is a bug or a support issue, but I have asked in the support chat and haven't been able to find anything out and have also triple checked my setup so I believe it may be a bug, potentially with Synapse on MacOS/M1 ARM chips as that is what I am running the server on and have tested it with.
### Steps to reproduce
- Start server, allow to run for some time
- Keep an eye on logs, issue begins to happen fairly quickly
- During the downtime, all connections to the server are not made correctly- including those to and from the reverse proxy
I've included the logs I'm looking at with this issue to see if this can help narrow things down. If this is not a bug, I do apologise but I think it could be: https://pastebin.com/W0uKH37G
### Version information
- **Homeserver**: Another homeserver, chat.casually.cat
If not matrix.org:
- **Version**: 1.24.0 with Python 3.9.1
- **Install method**:
Installed via pip, exclusively followed the git install guide here: https://github.com/matrix-org/synapse/blob/develop/INSTALL.md
- **Platform**: Apple Silicon (M1) Mac running Mac OS 11.1 Big Sur
The homeserver is running natively (not in a vm/container) by entering a python env and running synctl start in the app directory.
Contributor guide
Assessment
This issue has not been assessed yet.