Skip to content

Error: Command failed: logrotate /etc/logrotate.d/nginx-proxy-manager #3400

Answered by FibreTTP
masterwishx asked this question in Q&A
Discussion options

You must be logged in to vote

The /data directory in your instance has full permissions. It's not supposed to be like that. You've probably used chmod on it from outside the Docker container.

logrotate is complaining because /data/logs also has full permissions. You will need to run the command:
docker exec <npm-container-id> chmod -R a=rX,u+w /data/logs
to fix this.

My PR that you commented on (#3219) doesn't have to do with this (it fixes permissions for when the user is not running as root, but still works when they are). The issue you commented on (#2938) is different from your issue (they're not running as root).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@masterwishx
Comment options

@FibreTTP
Comment options

@masterwishx
Comment options

Answer selected by masterwishx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants