{"action":"created","issue":{"url":"https://api.github.com/repos/matrix-org/synapse/issues/4191","repository_url":"https://api.github.com/repos/matrix-org/synapse","labels_url":"https://api.github.com/repos/matrix-org/synapse/issues/4191/labels{/name}","comments_url":"https://api.github.com/repos/matrix-org/synapse/issues/4191/comments","events_url":"https://api.github.com/repos/matrix-org/synapse/issues/4191/events","html_url":"https://github.com/matrix-org/synapse/issues/4191","id":381382107,"node_id":"MDU6SXNzdWUzODEzODIxMDc=","number":4191,"title":"Since 0.33.8, homeserver crashes with UnicodeDecodeError in logger","user":{"login":"kiorky","id":90111,"node_id":"MDQ6VXNlcjkwMTEx","avatar_url":"https://avatars0.githubusercontent.com/u/90111?v=4","gravatar_id":"","url":"https://api.github.com/users/kiorky","html_url":"https://github.com/kiorky","followers_url":"https://api.github.com/users/kiorky/followers","following_url":"https://api.github.com/users/kiorky/following{/other_user}","gists_url":"https://api.github.com/users/kiorky/gists{/gist_id}","starred_url":"https://api.github.com/users/kiorky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiorky/subscriptions","organizations_url":"https://api.github.com/users/kiorky/orgs","repos_url":"https://api.github.com/users/kiorky/repos","events_url":"https://api.github.com/users/kiorky/events{/privacy}","received_events_url":"https://api.github.com/users/kiorky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-11-15T23:23:57Z","updated_at":"2018-11-30T19:18:39Z","closed_at":"2018-11-29T13:50:34Z","author_association":"NONE","body":"### Description\r\nSince 0.33.8, homeserver crashes with UnicodeDecodeError in logger\r\n\r\n### Steps to reproduce\r\nI didnt found yet what's the cause but the reactor stops with patterns in logs\r\none is\r\n```\r\nResponseNeverReceived: [<twisted.python.failure.Failure twisted.internet.defer.CancelledError: >]\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1418, in _inlineCallbacks\r\n    result = g.send(result)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py\", line 121, in _respond_local_thumbnail\r\n    yield respond_with_responder(request, responder, t_type, t_length)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1613, in unwindGenerator\r\n    return _cancellableInlineCallbacks(gen)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1529, in _cancellableInlineCallbacks\r\n    _inlineCallbacks(None, g, status)\r\n--- <exception caught here> ---\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/http/server.py\", line 81, in wrapped_request_handler\r\n    yield h(self, request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py\", line 71, in _async_render_GET\r\n    request, media_id, width, height, method, m_type\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py\", line 121, in _respond_local_thumbnail\r\n    yield respond_with_responder(request, responder, t_type, t_length)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1418, in _inlineCallbacks\r\n    result = g.send(result)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/_base.py\", line 137, in respond_with_responder\r\n    yield responder.write_to_consumer(request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/media_storage.py\", line 263, in write_to_consumer\r\n    FileSender().beginFileTransfer(self.open_file, consumer)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/protocols/basic.py\", line 923, in beginFileTransfer\r\n    self.consumer.registerProducer(self, False)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/web/http.py\", line 958, in registerProducer\r\n    self.channel.registerProducer(producer, streaming)\r\nexceptions.AttributeError: 'NoneType' object has no attribute 'registerProducer'\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1418, in _inlineCallbacks\r\n    result = g.send(result)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py\", line 121, in _respond_local_thumbnail\r\n    yield respond_with_responder(request, responder, t_type, t_length)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1613, in unwindGenerator\r\n    return _cancellableInlineCallbacks(gen)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1529, in _cancellableInlineCallbacks\r\n    _inlineCallbacks(None, g, status)\r\n--- <exception caught here> ---\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/http/server.py\", line 81, in wrapped_request_handler\r\n    yield h(self, request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py\", line 71, in _async_render_GET\r\n    request, media_id, width, height, method, m_type\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py\", line 121, in _respond_local_thumbnail\r\n    yield respond_with_responder(request, responder, t_type, t_length)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py\", line 1418, in _inlineCallbacks\r\n    result = g.send(result)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/_base.py\", line 137, in respond_with_responder\r\n    yield responder.write_to_consumer(request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/media_storage.py\", line 263, in write_to_consumer\r\n    FileSender().beginFileTransfer(self.open_file, consumer)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/protocols/basic.py\", line 923, in beginFileTransfer\r\n    self.consumer.registerProducer(self, False)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/web/http.py\", line 958, in registerProducer\r\n    self.channel.registerProducer(producer, streaming)\r\nexceptions.AttributeError: 'NoneType' object has no attribute 'registerProducer'\r\n```\r\n\r\nthe other is\r\n```\r\n\r\n2018-11-15 12:24:45,357 - synapse.metrics - 374 - INFO - - Collecting gc 0\r\n2018-11-15 12:24:45,358 - synapse.access.http.8008 - 233 - INFO - OPTIONS-117976- 1.2.3.4 - 8008 - Received request: OPTIONS /_matrix/client/r0/sync?filter=0&timeout=30000&since=s543777_21972192_1149_607731_354593_779_10110_44441_153\r\n2018-11-15 12:24:45,358 - twisted - 243 - ERROR - POST-117962- Traceback (most recent call last): \r\n2018-11-15 12:24:45,359 - twisted - 243 - ERROR - POST-117962-   File \"/usr/lib/python2.7/logging/handlers.py\", line 76, in emit \r\n2018-11-15 12:24:45,360 - twisted - 243 - ERROR - POST-117962-     if self.shouldRollover(record):\r\n2018-11-15 12:24:45,360 - twisted - 243 - ERROR - POST-117962-   File \"/usr/lib/python2.7/logging/handlers.py\", line 156, in shouldRollover\r\n2018-11-15 12:24:45,360 - twisted - 243 - ERROR - POST-117962-     msg = \"%s\\n\" % self.format(record)\r\n2018-11-15 12:24:45,360 - twisted - 243 - ERROR - POST-117962-   File \"/usr/lib/python2.7/logging/__init__.py\", line 732, in format\r\n2018-11-15 12:24:45,361 - twisted - 243 - ERROR - POST-117962-     return fmt.format(record)\r\n2018-11-15 12:24:45,361 - twisted - 243 - ERROR - POST-117962-   File \"/usr/lib/python2.7/logging/__init__.py\", line 474, in format\r\n2018-11-15 12:24:45,361 - twisted - 243 - ERROR - POST-117962-     s = self._fmt % record.__dict__\r\n2018-11-15 12:24:45,361 - twisted - 243 - ERROR - POST-117962- UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 68: ordinal not in range(128)\r\n```\r\n### Version information\r\n0.33.8 (docker) "},"comment":{"url":"https://api.github.com/repos/matrix-org/synapse/issues/comments/443310017","html_url":"https://github.com/matrix-org/synapse/issues/4191#issuecomment-443310017","issue_url":"https://api.github.com/repos/matrix-org/synapse/issues/4191","id":443310017,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzMxMDAxNw==","user":{"login":"kiorky","id":90111,"node_id":"MDQ6VXNlcjkwMTEx","avatar_url":"https://avatars0.githubusercontent.com/u/90111?v=4","gravatar_id":"","url":"https://api.github.com/users/kiorky","html_url":"https://github.com/kiorky","followers_url":"https://api.github.com/users/kiorky/followers","following_url":"https://api.github.com/users/kiorky/following{/other_user}","gists_url":"https://api.github.com/users/kiorky/gists{/gist_id}","starred_url":"https://api.github.com/users/kiorky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiorky/subscriptions","organizations_url":"https://api.github.com/users/kiorky/orgs","repos_url":"https://api.github.com/users/kiorky/repos","events_url":"https://api.github.com/users/kiorky/events{/privacy}","received_events_url":"https://api.github.com/users/kiorky/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T19:18:39Z","updated_at":"2018-11-30T19:18:39Z","author_association":"NONE","body":"My bad, brain is a strange thing that make see what he wants.\r\nI update the former comment for posterity, but also see below \r\n\r\nhs.yaml\r\n```\r\nlog_file: \"/data/homeserver.log\"\r\nlog_config: \"/data/log.config\"\r\n```"}}
{"actor":{"display_login":"kiorky"}}