You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Hi backend team. Where to start, so I'm hosting my own Synapse homeserver. Which should be made easier, more stable and better performing. I think we all agree on that.
Personally, I'm facing quite a variety of issues on my homeserver (with just 2 users). To name a few:
Issues with joining rooms (~2000 people)
Issues with signature checking and decrypting keys
Other connection issues causing stability issues, ...
Trying to debug via the logging is very problematic to say the least. Therefore my approach would be the clear-up most of the error message --> low-hanging fruit. Which are basically spamming the logs (unnecessary).
Spamming the logs is not only problematic for debugging but also for the performance as well. The default log level of Synapse (DEBUG) can therefore cause a lot of disk I/O (which is very slow, slowing down the server in general). Especially the long trackback calls! I hope you agree.
Bottom-line; before I can provide you more useful information that would be easier to pin-pointing the root cause; I hope some of the following errors can be relativity easily solved (making it easier to find the actual errors).
2020-10-0712:20:57,369 - synapse.http.server - 616 - WARNING - GET-12739 - Not sending response to request <XForwardedForRequest at 0x7f7603d3e890 method='GET' uri='/_matrix/media/r0/download/tedomum.net/nMHNmjgeSZvIXWzrOWILkkFM' clientproto='HTTP/1.0' site=8008>, already disconnected.2020-10-0712:22:28,999 - synapse.rest.media.v1._base - 229 - WARNING - GET-12795 - Failed to write to consumer: <class 'AttributeError'> 'NoneType' object has no attribute 'registerProducer'2020-10-0712:22:29,000 - synapse.http.server - 85 - ERROR - GET-12795 - Failed handle request via 'DownloadResource': <XForwardedForRequest at 0x7f76187c4290 method='GET' uri='/_matrix/media/r0/download/tedomum.net/nMHNmjgeSZvIXWzrOWILkkFM' clientproto='HTTP/1.0' site=8008>Traceback (most recent call last):File "/usr/local/lib/python3.7/site-packages/synapse/rest/media/v1/_base.py", line 224, in respond_with_responderawait responder.write_to_consumer(request)File "/usr/local/lib/python3.7/site-packages/synapse/rest/media/v1/media_storage.py", line 257, in write_to_consumerFileSender().beginFileTransfer(self.open_file, consumer)File "/usr/local/lib/python3.7/site-packages/twisted/protocols/basic.py", line 923, in beginFileTransferself.consumer.registerProducer(self, False)File "/usr/local/lib/python3.7/site-packages/twisted/web/http.py", line 987, in registerProducerself.channel.registerProducer(producer, streaming)AttributeError: 'NoneType' object has no attribute 'registerProducer'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/usr/local/lib/python3.7/site-packages/synapse/http/server.py", line 230, in _async_render_wrappercallback_return = await self._async_render(request)File "/usr/local/lib/python3.7/site-packages/synapse/http/server.py", line 258, in _async_rendercallback_return = await raw_callback_returnFile "/usr/local/lib/python3.7/site-packages/synapse/rest/media/v1/download_resource.py", line 64, in _async_render_GETawait self.media_repo.get_remote_media(request, server_name, media_id, name)File "/usr/local/lib/python3.7/site-packages/synapse/rest/media/v1/media_repository.py", line 251, in get_remote_mediarequest, responder, media_type, media_length, upload_nameFile "/usr/local/lib/python3.7/site-packages/synapse/rest/media/v1/_base.py", line 233, in respond_with_responderrequest.unregisterProducer()File "/usr/local/lib/python3.7/site-packages/twisted/web/http.py", line 993, in unregisterProducerself.channel.unregisterProducer()
Steps to reproduce
Setup Synapse
Join a room and try to talk to others (from other federations) - so the basics
Description
Hi backend team. Where to start, so I'm hosting my own Synapse homeserver. Which should be made easier, more stable and better performing. I think we all agree on that.
Personally, I'm facing quite a variety of issues on my homeserver (with just 2 users). To name a few:
Trying to debug via the logging is very problematic to say the least. Therefore my approach would be the clear-up most of the error message --> low-hanging fruit. Which are basically spamming the logs (unnecessary).
Spamming the logs is not only problematic for debugging but also for the performance as well. The default log level of Synapse (DEBUG) can therefore cause a lot of disk I/O (which is very slow, slowing down the server in general). Especially the long trackback calls! I hope you agree.
Bottom-line; before I can provide you more useful information that would be easier to pin-pointing the root cause; I hope some of the following errors can be relativity easily solved (making it easier to find the actual errors).
Errors
Download all (compressed): log_files.tar.gz
Without further ado, lets see what I mean.
Stdout traceback with
PUT-4809
And another example with
federation_transaction_transmission_loop
:NoneType object errors
For example:
Steps to reproduce
Version information
If not matrix.org:
The text was updated successfully, but these errors were encountered: