[Pkg-matrix-maintainers] Bug#923573: PermissionError: [Errno 13] Permission denied: '/etc/matrix-synapse/homeserver.signing.key'
sergio
sergio+it at outerface.net
Sat Mar 2 13:05:19 GMT 2019
# apt -t stretch-backports install matrix-synapse
Leave "Name of the server" blank.
# echo 'server_name: domain' > /etc/matrix-synapse/conf.d/server_name.yaml
# chmod 644 /etc/matrix-synapse/conf.d/server_name.yaml
# ls -l /etc/matrix-synapse/homeserver.signing.key
ls: cannot access '/etc/matrix-synapse/homeserver.signing.key': No such
file or directory
# /etc/init.d/matrix-synapse start
...
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/synapse/app/homeserver.py", line
657, in <module>
main()
File "/usr/lib/python3/dist-packages/synapse/app/homeserver.py", line
652, in main
hs = setup(sys.argv[1:])
File "/usr/lib/python3/dist-packages/synapse/app/homeserver.py", line
320, in setup
config_options,
File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line
366, in load_or_generate_config
generate_keys=generate_keys,
File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line
412, in read_config_files
self.invoke_all("read_config", config)
File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line
156, in invoke_all
results.append(getattr(cls, name)(self, *args, **kargs))
File "/usr/lib/python3/dist-packages/synapse/config/key.py", line 41,
in read_config
self.signing_key = self.read_signing_key(config["signing_key_path"])
File "/usr/lib/python3/dist-packages/synapse/config/key.py", line
137, in read_signing_key
signing_keys = self.read_file(signing_key_path, "signing_key")
File "/usr/lib/python3/dist-packages/synapse/config/_base.py", line
144, in read_file
with open(file_path) as file_stream:
PermissionError: [Errno 13] Permission denied:
'/etc/matrix-synapse/homeserver.signing.key'
# ls -l /etc/matrix-synapse/homeserver.signing.key
-rw-r----- 1 root root 59 2019-03-02 16:02
/etc/matrix-synapse/homeserver.signing.key
And yes, my umask is 027.
--
sergio.
More information about the Pkg-matrix-maintainers
mailing list