You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: Runnin crowdsec as non-root on Cloudways Issue: "randomly" when log rotate, reader doesn't seem to have permission to read newly created file (maybe some weird race condition). It can work 3 days and crash the 4th or crash on first rotation, it seems random.
I assume it's because we're not root that this happens, but maybe there are other cases where log reader fails this way
Error:My crowdsec logs show this (I obfuscated the path):
time="2024-09-18T00:00:50Z" level=info msg="Re-opening moved/deleted file /<absolute_path>/nginx_wordpress-11111-11111.cloudwaysapps.com.access.log ..."
time="2024-09-18T00:00:50Z" level=warning msg="file reader of //<absolute_path>/nginx_wordpress-11111-11111.cloudwaysapps.com.access.log died : Unable to open file /<absolute_path>/nginx_wordpress-11111-11111.cloudwaysapps.com.access.log: open /<absolute_path>/nginx_wordpress-11111-11111.cloudwaysapps.com.access.log: permission denied" tail=/<absolute_path>/nginx_wordpress-11111-11111.cloudwaysapps.com.access.log type=file
Feature: Could we have a config to say that a reader retries like N times every X seconds if fails to read a rotating log ?
Why is this needed?
Be able to run CrowdSec on CloudWays managed servers (where we don't have root privileges)
The text was updated successfully, but these errors were encountered:
Check Releases to make sure your agent is on the latest version.
Details
I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.
@rr404: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.
/kind feature
/kind enhancement
/kind refactoring
/kind bug
/kind packaging
Details
I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.
/kind enhancement
What would you like to be added?
Context: Runnin crowdsec as non-root on Cloudways
Issue: "randomly" when log rotate, reader doesn't seem to have permission to read newly created file (maybe some weird race condition). It can work 3 days and crash the 4th or crash on first rotation, it seems random.
I assume it's because we're not root that this happens, but maybe there are other cases where log reader fails this way
Error:My crowdsec logs show this (I obfuscated the path):
Feature: Could we have a config to say that a reader retries like N times every X seconds if fails to read a rotating log ?
Why is this needed?
Be able to run CrowdSec on CloudWays managed servers (where we don't have root privileges)
The text was updated successfully, but these errors were encountered: