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.

Docker image is slow to start due to chown command #4078

Closed
@scjudd

Description

@scjudd

Description

When running synapse under docker and setting up the /data directory to be a bind-mount to an AWS EFS file system, the recursive chown command that start.py executes takes between 5-10 minutes to finish. Synapse doesn't start until this is done.

Steps to reproduce

  • Create EFS file system, mount it from EC2 instance
  • Fill EFS volume with lots of files, ideally copying an existing synapse data directory that has been in use for awhile
  • Start docker synapse container with EFS volume bind-mounted to /data

I didn't have any sort of log output until after this command finished, so it could have been much simpler to diagnose with a "changing ownership of synapse data files" message. Ideally this shouldn't block synapse from starting.

Version information

  • Homeserver: corporate, internal homeserver
  • Version: v0.33.7
  • Install method: docker pull matrixdotorg:v0.33.7
  • Platform: CoreOS, AWS, EFS

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DockerDocker images, or making it easier to run Synapse in a container.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions