Closed laugmanuel closed 1 month ago
@laugmanuel: Thanks for opening an issue, it is currently awaiting triage.
In the meantime, you can:
I did some more digging and found out, that it is caused by setting BOUNCER_KEY_traefik
as an environment variable for the automatic bouncer registration: https://github.com/crowdsecurity/crowdsec/blob/master/docker/README.md#automatic-bouncer-registration
Will be fixed by #3170
The TLDR; is when the bouncer is created in the database the LastPull
timestamp is nil
by default there was no check before attempting to use the value to convert it to a RFC
timestamp. We are adding the check in the linked PR onced it is merged you can repull the dev
image and it will fix the issue.
What happened?
When starting Crowdsec as a from the
dev
container image without mounting adb
volume (or empty volume), the service crashes when trying to send metrics to the APIC. The log shows:When using a pre-populated
db
directory from (taglatest
), the container starts up fine and works like it should.What did you expect to happen?
Crowdsec to startup and work normally even when the db directory is empty.
How can we reproduce it (as minimally and precisely as possible)?
and run
docker compose up -d
Anything else we need to know?
Starting tag
dev
with a pre-populated config and db directory from taglatest
works just fineCrowdsec version
OS version
Enabled collections and parsers
Acquisition config
Config show
Prometheus metrics
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.