Skip to content

Sudden problem with filesystem permissions - chmod -R fails #149

@NateRobinsonS

Description

@NateRobinsonS

I've been using Monica (4) in Docker for about a year without much difficulty. However, the latest release, or potentially another recent change in docker, seems to have caused a problem.

Upon startup, the entrypoing.sh tries runs chown -R www-data:www-data ${STORAGE} which works find. Then chmod -R g+rw ${STORAGE} fails with a Operation not permitted error for each file. As such, the container never comes up and restarts continually.

To debug, I can enter the (cron) container (that doesn't call entrypoint.sh). As the root user in this shell, I can perform chmod g+rw on individual files. However, using the recursive version chmod -R g+rw on a directory fails (once for each file in the directory). (I find this very strange.)

Adding priveleged: true to the service definition in my docker_compose file "solves" the problem, but I don't like running the container

If it matters, I migrated to the fpm-alpine image about a month ago, but this seems unlikely to be relevant to me. I definitely had fpm-alpine running properly before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions