Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

generate option of docker image lacks a way to specify the data path #4830

@richvdh

Description

@richvdh

When you use the generate option of the docker image to generate a config file, there is no way to tell it where you want to put the media store etc, and it uses /.

Then, when you try to start synapse using the generated config, you get:

PermissionError: [Errno 13] Permission denied: '/media_store'

We should probably use /data by default (and recommend that a volume is mounted there), with an env var to allow you override the path. We also need to chown it so that synapse can write to it.

A workaround is:

  • Add -w /data to the generate commandline, then
  • docker run <volume_options> --entrypoint=chown matrixdotorg/synapse:latest 901 /data

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DockerDocker images, or making it easier to run Synapse in a container.z-p2(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions