Synapse does not start anymore

YunoHost 3.8.4.8
Synapse 1.12.4~ynh1

synapse does not start anymore
here is the Log:
> – Logs begin at Tue 2020-06-09 13:32:31 UTC, end at Tue 2020-06-09 13:59:12 UTC. –

    Jun 09 13:58:29 systemd[1]: Starting Synapse Matrix homeserver...
    -- Subject: Unit matrix-synapse.service has begun start-up
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    -- 
    -- Unit matrix-synapse.service has begun starting up.
    Jun 09 13:58:49 systemd[1]: Started Synapse Matrix homeserver.
    -- Subject: Unit matrix-synapse.service has finished start-up
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    -- 
    -- Unit matrix-synapse.service has finished starting up.
    -- 
    -- The start-up result is done.
    Jun 09 13:59:06 python[5071]: This server is configured to use 'matrix.org' as its trusted key server via the
    Jun 09 13:59:06 python[5071]: 'trusted_key_servers' config option. 'matrix.org' is a good choice for a key
    Jun 09 13:59:06 python[5071]: server since it is long-lived, stable and trusted. However, some admins may
    Jun 09 13:59:06 python[5071]: wish to use another server for this purpose.
    Jun 09 13:59:06 python[5071]: To suppress this warning and continue using 'matrix.org', admins should set
    Jun 09 13:59:06 python[5071]: 'suppress_key_server_warning' to 'true' in homeserver.yaml.
    Jun 09 13:59:06 python[5071]: --------------------------------------------------------------------------------
    Jun 09 13:59:07 python[5071]: Traceback (most recent call last):
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/config.py", line 558, in configure
    Jun 09 13:59:07 python[5071]:     handler = self.configure_handler(handlers[name])
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/config.py", line 731, in configure_handler
    Jun 09 13:59:07 python[5071]:     result = factory(**kwargs)
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/handlers.py", line 150, in __init__
    Jun 09 13:59:07 python[5071]:     BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/handlers.py", line 57, in __init__
    Jun 09 13:59:07 python[5071]:     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/__init__.py", line 1009, in __init__
    Jun 09 13:59:07 python[5071]:     StreamHandler.__init__(self, self._open())
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/__init__.py", line 1038, in _open
    Jun 09 13:59:07 python[5071]:     return open(self.baseFilename, self.mode, encoding=self.encoding)
    Jun 09 13:59:07 python[5071]: PermissionError: [Errno 13] Permission denied: '/var/log/matrix-synapse/homeserver.log'
    Jun 09 13:59:07 python[5071]: During handling of the above exception, another exception occurred:
    Jun 09 13:59:07 python[5071]: Traceback (most recent call last):
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    Jun 09 13:59:07 python[5071]:     "__main__", mod_spec)
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    Jun 09 13:59:07 python[5071]:     exec(code, run_globals)
    Jun 09 13:59:07 python[5071]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 651, in <module>
    Jun 09 13:59:07 python[5071]:     main()
    Jun 09 13:59:07 python[5071]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 646, in main
    Jun 09 13:59:07 python[5071]:     hs = setup(sys.argv[1:])
    Jun 09 13:59:07 python[5071]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 343, in setup
    Jun 09 13:59:07 python[5071]:     synapse.config.logger.setup_logging(hs, config, use_worker_options=False)
    Jun 09 13:59:07 python[5071]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/logger.py", line 252, in setup_logging
    Jun 09 13:59:07 python[5071]:     logger = _setup_stdlib_logging(config, log_config_body, logBeginner=logBeginner)
    Jun 09 13:59:07 python[5071]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/logger.py", line 174, in _setup_stdlib_logging
    Jun 09 13:59:07 python[5071]:     logging.config.dictConfig(log_config)
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/config.py", line 795, in dictConfig
    Jun 09 13:59:07 python[5071]:     dictConfigClass(config).configure()
    Jun 09 13:59:07 python[5071]:   File "/usr/lib/python3.5/logging/config.py", line 566, in configure
    Jun 09 13:59:07 python[5071]:     '%r: %s' % (name, e))
    Jun 09 13:59:07 python[5071]: ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/matrix-synapse/homeserver.log'
    Jun 09 13:59:09 systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
    Jun 09 13:59:09 systemd[1]: matrix-synapse.service: Unit entered failed state.
    Jun 09 13:59:09 systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
    Jun 09 13:59:12 systemd[1]: matrix-synapse.service: Service hold-off time over, scheduling restart.
    Jun 09 13:59:12 systemd[1]: Stopped Synapse Matrix homeserver.
    -- Subject: Unit matrix-synapse.service has finished shutting down
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    -- 
    -- Unit matrix-synapse.service has finished shutting down.
    Jun 09 13:59:12 systemd[1]: Starting Synapse Matrix homeserver...
    -- Subject: Unit matrix-synapse.service has begun start-up
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    -- 
    -- Unit matrix-synapse.service has begun starting up.

what could be the reason ?
Thanlks

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.