-
Notifications
You must be signed in to change notification settings - Fork 177
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
Logrotate not working due to file permission #111
Comments
If I change file permission to 644 before building the docker image, logrotate will work. Should we fix file permissions in Dockerfile? |
On which OS a umask of 002 is default? That seems quite odd to me. |
I'm using Linux Mint 19.1, which is based on Ubuntu 18.04. I have an EC2 instance on AWS with Ubuntu 16.04 and I also see 664 file permission. Not sure if it is normal. |
Just did some Googling, I suppose default umask is 002 for normal user, 022 for root user. |
I think it's better to fix that in runtime, because |
Fixed in 1.1.5-13 |
Hello, I experience the same issue.
When I checked the /etc/logrotate.d it had owner
When I changed it manually:
Then the logrotate worked fine. In my I am running the graphite-statsd in a container and my Dockerfile looks like so:
Do I need to manually chmod the logrotate config? Edit: |
Argh. |
Should be fixed in 1.1.7-2 |
Thank you for the fast turnover @deniszh |
With umask 002, when I git clone the repo, the
conf/etc/logrotate.d/graphite-statsd
has file permission 664. But logrotate doesn't like that:This means if the project is cloned and run with docker-compose and default system settings, logrotate most probably won't work.
The text was updated successfully, but these errors were encountered: