Skip to content
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

Attempt permission fix for Clam AV Logs Directory #1404

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

dj-maisy
Copy link
Member

What?

We are encountering some permission errors in the Freshclam jobs:

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).

These permission errors are related to the /var/log/clamav directory. In Cisco's Debian Dockerfile, they do this:

install -d -m 755 -g "clamav" -o "clamav" "/var/log/clamav" && \

So let's do something similar for ours, except use the app user and group.

@dj-maisy dj-maisy merged commit bcd4303 into main Jun 18, 2024
10 checks passed
@dj-maisy dj-maisy deleted the dj-maisy/clamav-log-fix branch June 18, 2024 09:21
@sengi
Copy link
Contributor

sengi commented Jun 19, 2024

Hm. If it's trying to write logs to the filesystem then that suggests we've missed some config somewhere. All the logs need to go to stderr/stdout otherwise they won't be collected and they'll just fill up the storage they're being written to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants