-
Notifications
You must be signed in to change notification settings - Fork 467
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
UnmarshalJSON : invalid character 'i' in literal true (expecting 'r') #2859
Comments
@C8opmBM: Thanks for opening an issue, it is currently awaiting triage. In the meantime, you can:
DetailsI 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. |
I think it's related to crowdsecurity/hub#961 |
The reason is seems authelia is in Debug mode and is logging lines that are not captured by the first node so it falls into the Unmarshal json which then generally errors because its a not a JSON line |
Unfortunately changing the log level to info (in authelia) does not fix it. So I thought this was only related to LePresidente/Authelia but I noticed also Unmarshall errors with other unrelated errors/warns. Same when parsing the caddy logs, etc. LE: I should add that I tested the filter (authelia) and it works as intended - blocked my repeated logins - so functionality doesn't seem to be affected. aFAIK My caddy log format is as follows:
Do I need to change anything? It has been working fine (as mentioned) for a couple of years until recently. |
No you dont need to change anything It still working fine, it just some log lines dont match the parsers so it errors when it tries to parse them as JSON. We could update the parser to check if the first character is a |
Amazing, thank you!! |
@LaurenceJJones i think i am having a similar issue with multiple errors in logs.
Let me know if i should open a new bug report. |
What happened?
Hello,
I've been using crowdsec for maybe 2 years, it was a a set and forget thing, but lately I've seen constant errors in the logs.
Every 2-3 lines, I get one of these:
UnmarshalJSON : invalid character 'i' in literal true (expecting 'r')
I haven't made any changes to the config.
What did you expect to happen?
No errors
How can we reproduce it (as minimally and precisely as possible)?
Run crowdsec with authelia and some collections
Anything else we need to know?
My docker
Crowdsec version
OS version
Enabled collections and parsers
Acquisition config
No response
Config show
Prometheus metrics
No response
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.
The text was updated successfully, but these errors were encountered: