-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Since 0.33.8, homeserver crashes with UnicodeDecodeError in logger #4191
Comments
what is your logging config? |
hs.yml verbose: 0
log_file: "/data/homeserver.log"
log_config: "/data/log.config" log.config version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s- %(message)s'
filters:
context:
(): synapse.util.logcontext.LoggingContextFilter
request: ""
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: precise
filename: /data/homeserver.log
maxBytes: 104857600
backupCount: 10
filters: [context]
console:
class: logging.StreamHandler
formatter: precise
filters: [context]
loggers:
synapse:
level: INFO
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: INFO
root:
level: INFO
handlers: [file, console] |
I was able to workaround the bug by having For now, the server hasnt crashed in 4 days. |
@kiorky are you on python 3? |
Nope i didnt had time to finish the py3 image and to switch on it. The logger bug as we saw with the issues in the tracker seems to be on both versions. |
@kiorky do you have a |
I already posted all my log config: #4191 (comment) The crash arrises when loglevel < |
Related to the other bug linked, i ll try to add |
It's on; now the server may crash in the next days/hours ^^ |
In that case, your |
What is wrong with my spelling in the former comment ? |
As i said, i added |
But do you have a
|
My bad, brain is a strange thing that make see what he wants. hs.yaml log_file: "/data/homeserver.log"
log_config: "/data/log.config" |
@aaronraimist thanks for helping out. FWIW if you do have a |
As an update, despite the encoding parameter the server just crashed today with the same log.
|
Im back to CRITICAL level |
Description
Since 0.33.8, homeserver crashes with UnicodeDecodeError in logger
Steps to reproduce
I didnt found yet what's the cause but the reactor stops with patterns in logs
one is
the other is
Version information
0.33.8 (docker)
The text was updated successfully, but these errors were encountered: