[GH-ISSUE #1362] Docker Container - Logrorate Doesnt Rotate Logs #5187

Closed
opened 2026-03-01 15:40:06 +03:00 by kerem · 4 comments
Owner

Originally created by @jiriteach on GitHub (Sep 27, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1362

Running the latest version of nginx-ui. Enable Logrotate under preferences but logs are not rotating.

/var/log/nginx is mapped as a volume in Docker so I can access them.
Logs are working fine - just not rotating.

Could this be a bug?

Originally created by @jiriteach on GitHub (Sep 27, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1362 Running the latest version of nginx-ui. Enable Logrotate under preferences but logs are not rotating. /var/log/nginx is mapped as a volume in Docker so I can access them. Logs are working fine - just not rotating. Could this be a bug?
kerem 2026-03-01 15:40:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Oct 2, 2025):

Hi @jiriteach,

Did you set the command for the log rotation?
Image

<!-- gh-comment-id:3361317954 --> @0xJacky commented on GitHub (Oct 2, 2025): Hi @jiriteach, Did you set the command for the log rotation? <img width="1844" height="1108" alt="Image" src="https://github.com/user-attachments/assets/0a5935ca-677d-4bdd-a0c5-03a88eb3f015" />
Author
Owner

@jiriteach commented on GitHub (Oct 2, 2025):

I did run this manually on the container and the logs rotated.

Assumed that turning this setting on - setup a cronjob automatically on the container.

Otherwise - how should I set it for that command to run automatically?

<!-- gh-comment-id:3362358337 --> @jiriteach commented on GitHub (Oct 2, 2025): I did run this manually on the container and the logs rotated. Assumed that turning this setting on - setup a cronjob automatically on the container. Otherwise - how should I set it for that command to run automatically?
Author
Owner

@0xJacky commented on GitHub (Oct 3, 2025):

Please refer to this documentation: https://nginxui.com/guide/config-logrotate.html

<!-- gh-comment-id:3363803875 --> @0xJacky commented on GitHub (Oct 3, 2025): Please refer to this documentation: https://nginxui.com/guide/config-logrotate.html
Author
Owner

@jiriteach commented on GitHub (Oct 3, 2025):

Thanks. I did -

This bit - "The crontab task scheduler of Nginx UI will execute the logrotate command at the interval you set in minutes."

Is not running regularly.

I enabled the setting. Doesn't rotate the logs hence it's looking like a big.

I also checked crontab on the container and cannot see any regular schedules setup.

<!-- gh-comment-id:3363844683 --> @jiriteach commented on GitHub (Oct 3, 2025): Thanks. I did - This bit - "The crontab task scheduler of Nginx UI will execute the logrotate command at the interval you set in minutes." Is not running regularly. I enabled the setting. Doesn't rotate the logs hence it's looking like a big. I also checked crontab on the container and cannot see any regular schedules setup.
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-ui#5187
No description provided.