Skip to content

Configure Apache log rotation in docker deployment scenario #5970

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

Open
alexgarel opened this issue Oct 12, 2021 · 2 comments · May be fixed by #11782
Open

Configure Apache log rotation in docker deployment scenario #5970

alexgarel opened this issue Oct 12, 2021 · 2 comments · May be fixed by #11782
Assignees
Labels
🪶 Apache We use Apache as a server to run Open Food Facts infrastructure https://wiki.openfoodfacts.org/Infrastructure logs ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.

Comments

@alexgarel
Copy link
Member

Is your feature request related to a problem? Please describe.

We do not configure Apache log rotation with docker deployment, it can leads to potential problems at a moment in the future.

Describe the solution you'd like

It seems the best for now could be setting up logrotate system wide (ensure it in deploy script ?), as system logrotate has access to volume containing log and can sens signal to apache process running say docker-compose exec -T backend killall -s SIGHUP apache2).

Describe alternatives you've considered

Normally we should send all logs to docker log handling and harvest them in a log facility… but that's for later on.

I didn't see any way Apache can auto-rotate logs by itself, see https://httpd.apache.org/docs/2.4/logs.html#rotation

Additional context

No response

Number of products impacted

No response

Time per product

No response

@alexgarel alexgarel added the ✨ Feature Features or enhancements to Open Food Facts server label Oct 12, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Jan 11, 2022
@teolemon teolemon added the 🪶 Apache We use Apache as a server to run Open Food Facts label Mar 5, 2022
@teolemon teolemon moved this to To discuss and validate in 🍊 Open Food Facts Server issues Apr 23, 2024
@teolemon teolemon added infrastructure https://wiki.openfoodfacts.org/Infrastructure logs labels Aug 14, 2024
@teolemon teolemon removed the ✨ Feature Features or enhancements to Open Food Facts server label Oct 18, 2024
@github-throwaway
Copy link
Collaborator

👋 Hi @ocervell, it has been over a week since you were assigned to this issue, but we haven't detected a linked pull request referencing this issue. Please link your PR (it can be a draft) at your earliest convenience. If you have any remaining questions, don't hesitate to ask ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪶 Apache We use Apache as a server to run Open Food Facts infrastructure https://wiki.openfoodfacts.org/Infrastructure logs ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Projects
Status: No status
Status: To discuss and validate
Development

Successfully merging a pull request may close this issue.

5 participants