-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
python failure at the installation #10023
Comments
Are you trying to run the as non root by any chance? This sounds like #9970 |
@erikjohnston i startet it as root and no root:( |
Just chiming in to say I also hit this error, although I've yet to start debugging. Running docker container matrixdotorg/synapse:v1.34.0, default generated config. |
Actually this does sound like a complete duplicate of #9970 and can probably be closed as duplicate. @fertigfs there's several workarounds in that ticket, such as changing the location of the logfile, or my personal preference, just disabling logging to the file altogether, as docker will capture the stdout logs. |
same problem. doesnt work with non-root user. |
Change the path to homeserver.log to /data/homeserver.log before you start the container.you find it in the logging section of the homeserver.yml |
I'm going to close this as a duplicate of #9970 |
Hello all,
I've been trying for days to follow these instructions....
https://www.youtube.com/watch?v=H-6kfIqPoI4
...to install a Matrix Server in a Proxmox LXC container.
But whenever I include "docker logs synapse",
I get the following error message...
root@matrixxx:/var/lib/docker# docker logs synapse
This server is configured to use 'matrix.org' as its trusted key server via the parameter
trusted_key_servers configuration option. matrix.org' is a good choice for a key server, as it is a durable
server because it is durable, stable, and trusted. However, some administrators will want to use
want to use a different server for this purpose.
To suppress this warning and continue using 'matrix.org', admins should use the option
suppress_key_server_warning" option in the "homeserver.yaml" file to true.
Traceback (last call):
File "/usr/local/lib/python3.8/logging/config.py", line 563, in configure
handler = self.configure_handler(handler[name])
file "/usr/local/lib/python3.8/logging/config.py", line 744, in configure_handler
result = factory(**kwargs)
file "/usr/local/lib/python3.8/logging/handlers.py", line 200, in init
BaseRotatingHandler.init(self, filename, 'a', encoding, delay)
File "/usr/local/lib/python3.8/logging/handlers.py", line 55, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File "/usr/local/lib/python3.8/logging/init.py", line 1147, in init
StreamHandler.init(self, self._open())
file "/usr/local/lib/python3.8/logging/init.py", line 1176, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/homeserver.log'.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
file "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/site-packages/synapse/app/homeserver.py", line 507, in
main()
File "/usr/local/lib/python3.8/site-packages/synapse/app/homeserver.py", line 502, in main
hs = setup(sys.argv[1:])
file "/usr/local/lib/python3.8/site-packages/synapse/app/homeserver.py", line 355, in setup
synapse.config.logger.setup_logging(hs, config, use_worker_options=False)
File "/usr/local/lib/python3.8/site-packages/synapse/config/logger.py", line 318, in setup_logging
_setup_stdlib_logging(config, log_config_path, logBeginner=logBeginner)
File "/usr/local/lib/python3.8/site-packages/synapse/config/logger.py", line 204, in _setup_stdlib_logging
_load_logging_config(log_config_path)
file "/usr/local/lib/python3.8/site-packages/synapse/config/logger.py", line 282, in _load_logging_config
logging.config.dictConfig(log_config)
File "/usr/local/lib/python3.8/logging/config.py", line 808, in dictConfig
dictConfigClass(config).configure()
file "/usr/local/lib/python3.8/logging/config.py", line 570, in configure
raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'file'.
What can I do to make it work.
It has something to do with python.
I am running version 3.8.5.
Maybe someone can help me.
I am desperate...
Translated with www.DeepL.com/Translator (free version)
The text was updated successfully, but these errors were encountered: