[GH-ISSUE #1278] Problem with logrotate that it has insecure permissions #1035

Closed
opened 2026-02-26 06:35:30 +03:00 by kerem · 3 comments
Owner

Originally created by @meibye on GitHub (Jul 31, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1278

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    Yes
  • Are you sure you're not using someone else's docker image?
    Yes
    Have you searched for similar issues (both open and closed)?
    Yes

Describe the bug
During start of a container with the lavest version of nginx (2.9.6) the following message is shown in the log for logrotate:

warning Error: Command failed: logrotate /etc/logrotate.d/nginx-proxy-manager
Error: skipping “/data/logs/fallback_access.log” because parent directory has insecure permissions (it’s world writable or writable by a group which is not “root”). ……

Nginx Proxy Manager Version
2.9.6

To Reproduce
Just start an app on a QNAP using a docker compose file as given in the Github README.med file.

Expected behavior
Clean startup

Screenshots

Operating System
QNAP QTS firmware version 4.5.4.1741

Additional context
Solution:
Add the following command in the /docker/rootfs/etc/cont-init.d/01_perms.sh:

chmod o-w /data/logs

Originally created by @meibye on GitHub (Jul 31, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1278 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? Yes - Are you sure you're not using someone else's docker image? Yes Have you searched for similar issues (both open and closed)? Yes **Describe the bug** During start of a container with the lavest version of nginx (2.9.6) the following message is shown in the log for logrotate: warning Error: Command failed: logrotate /etc/logrotate.d/nginx-proxy-manager Error: skipping “/data/logs/fallback_access.log” because parent directory has insecure permissions (it’s world writable or writable by a group which is not “root”). …… **Nginx Proxy Manager Version** 2.9.6 **To Reproduce** Just start an app on a QNAP using a docker compose file as given in the Github README.med file. **Expected behavior** Clean startup **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Operating System** QNAP QTS firmware version 4.5.4.1741 **Additional context** Solution: Add the following command in the /docker/rootfs/etc/cont-init.d/01_perms.sh: chmod o-w /data/logs <!-- Add any other context about the problem here, docker version, browser version, logs if applicable to the problem. Too much info is better than too little. -->
kerem 2026-02-26 06:35:30 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@Kopernikus1979 commented on GitHub (Sep 8, 2021):

Same problem here, but on Unraid

<!-- gh-comment-id:915096168 --> @Kopernikus1979 commented on GitHub (Sep 8, 2021): Same problem here, but on Unraid
Author
Owner

@github-actions[bot] commented on GitHub (Mar 7, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1982186739 --> @github-actions[bot] commented on GitHub (Mar 7, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 19, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2816465093 --> @github-actions[bot] commented on GitHub (Apr 19, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1035
No description provided.