0

I am trying to deploy my own synapse server in my qnap. I am following the steps in the official page in docker but I want to store all the data in a folder that I can easily access so I modified the lines as following: First this to generate the homeserver.yaml

docker run -it --rm \
    -v /share/DockerVol/matrix:/data \
    -e SYNAPSE_SERVER_NAME=mydomain.org \
    -e SYNAPSE_REPORT_STATS=yes \
    matrixdotorg/synapse:latest generate

Everything seem to work, files are generated correctly.

And then this.

docker run -d --name matrix \
    --network=mqtnet \
    -v /share/DockerVol/matrix:/data \
    -p 8008:8008 \
    matrixdotorg/synapse:latest

The result is an error due to permission, Log output:

Starting synapse with args -m synapse.app.homeserver --config-path /data/homeserver.yaml
Traceback (most recent call last):  
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main    return _run_code(code, main_globals, None,  
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code    exec(code, run_globals)  
File "/usr/local/lib/python3.9/site-packages/synapse/app/homeserver.py", line 387, in <module>    main()  
File "/usr/local/lib/python3.9/site-packages/synapse/app/homeserver.py", line 377, in main    hs = setup(sys.argv[1:])  
File "/usr/local/lib/python3.9/site-packages/synapse/app/homeserver.py", line 285, in setup    config = HomeServerConfig.load_or_generate_config(  
File "/usr/local/lib/python3.9/site-packages/synapse/config/_base.py", line 764, in load_or_generate_config    config_dict = read_config_files(config_files)  
File "/usr/local/lib/python3.9/site-packages/synapse/config/_base.py", line 846, in read_config_files    with open(config_file) as file_stream:
PermissionError: [Errno 13] Permission denied: '/data/homeserver.yaml'

Any idea how to solve this?

I tried to chmod the file but it didn't work I also tried using admin user but didn't work.

Juan
  • 21
  • 1
  • 1
  • 5

0 Answers0