Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chown failures #86

Open
ishitatsuyuki opened this issue Jul 24, 2017 · 11 comments
Open

Allow chown failures #86

ishitatsuyuki opened this issue Jul 24, 2017 · 11 comments
Labels

Comments

@ishitatsuyuki
Copy link
Contributor

Both mailman-core and mailman-web bails when I mount the configs ro like this:

volumes:
  - ./mailman-extra.cfg:/opt/mailman/mailman-extra.cfg
chown: /opt/mailman/mailman-extra.cfg: Read-only file system
mailman-core exited with code 1

I prefer mounting them because /opt is hard to manage and doesn't scale.

@maxking
Copy link
Owner

maxking commented Jul 24, 2017

To be able to persist the data, you need to mount something at /opt/mailman/ inside the core container which is writable for the container and something at /opt/mailman-web-data inside the web container.

ou can mount ANY two directories at those locations and things should work as long as they are writable by uid 1000 I guess.

@ishitatsuyuki
Copy link
Contributor Author

ishitatsuyuki commented Jul 24, 2017

I use named volumes. (And ro configs on top)

@maxking
Copy link
Owner

maxking commented Jul 24, 2017

Technically, I don't need mailman-extra.cfg to be writable, but I do need /opt/mailman to writable inside core.
I might have to investigate more on how to do that, do you have ideas?

@ishitatsuyuki
Copy link
Contributor Author

I would assume other things to break when it's not writable, so I think chown -f is enough.

@maxking
Copy link
Owner

maxking commented Jul 24, 2017

Why not break early instead of waiting for the Mailman to break later?

@decentral1se
Copy link

Hey folks, I'm running into this as well:

image

Where I template out that mailman-extra.cfg file using Docker swarm configs (read-only files):

    configs:
      - source: mailman_extra_cfg
        target: /opt/mailman/core/mailman-extra.cfg

And this is failing because of the above mentioned chown issue:

chown -R mailman /opt/mailman

Maybe passing -f is enough? Idk maybe a configurable env var?

@pgmillon
Copy link
Contributor

pgmillon commented Jan 8, 2022

Same issue here, when using docker-mailman in a K8s cluster and mounting mailman-extra.cfg from a config map, there's no way to make it writable.
As such, the containers are crash-looping.
Either read the extra conf from another location than /opt/mailman (which would make sense IMHO) or support chown failures.

@github-actions
Copy link

github-actions bot commented Jan 8, 2023

This issue has not been updated for more than 1year

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2023
@pgmillon
Copy link
Contributor

Closing stale issues doesn't solve the problem, please remove this automation.
From my understanding only /opt/mailman/var needs to be writable not the root directory.

@maxking
Copy link
Owner

maxking commented Aug 30, 2024

if you see the automation close issue that you care about, or if there is a PR attached that I might have missed, please feel free to reopen it.

@maxking maxking reopened this Aug 30, 2024
@pgmillon
Copy link
Contributor

pgmillon commented Aug 30, 2024

AFAIK you're the only one who can reopen issues, we can only open new ones (which would cause more overhead IMHO).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants