Control: reopen -1
Control: severity -1 important

Hi Francois,

Francois Marier <franc...@debian.org> (2021-11-11):
> I see the following in my logs when I run `systemctl start crowdsec.service` 
> on Debian bullseye:
> 
> time="12-11-2021 06:28:58" level=warning msg="Starting processing data"
> time="12-11-2021 06:28:59" level=info msg="pull top: added 65 entries"
> time="12-11-2021 06:28:59" level=error msg="crowdsec - goroutine 
> crowdsec/runParse crashed : interface conversion: interface {} is nil, not 
> parser.GeoIpEnricherCtx"
> time="12-11-2021 06:28:59" level=error msg="please report this error to 
> https://github.com/crowdsecurity/crowdsec/";
> time="12-11-2021 06:28:59" level=error msg="stacktrace/report is written to 
> /tmp/crowdsec-crash.548920771.txt : please join it to your issue"
> time="12-11-2021 06:28:59" level=fatal msg="crowdsec stopped"
> 
> Then I installed the geoip-database package and was able to restart
> crowdsec successfully using systemctl restart crowdsec.service.
> 
> I reported the crash upstream: 
> https://github.com/crowdsecurity/crowdsec/issues/1049
> 
> and so this bug report is about what appears to be a missing
> dependency.

As you've learned from talking with upstream, it's not exactly about a
missing dependency: we try not to depend on the MMDB data files (the
license part could be problematic, so those are stripped by default),
and the core doesn't deal with the absence of those files gracefully.

Therefore, it looks like we should be backporting a few fixes from
master, so that users don't worry about errors in logs, and don't have
to learn about --force and friends.

That'd be:
 - 
https://github.com/crowdsecurity/crowdsec/commit/5ae69aa293048af2140c97781f7084cbdf2aca07
   which would avoid the error you've seen in the logs
 - 
https://github.com/crowdsecurity/crowdsec/commit/4dbbd4b3c49c7cc66e225fbb4a2b42c16046ca14
   which would make sure crowdsec downloads files when they're missing.


I'm currently checking the cherry-picks that upstream kindly prepared,
and I should be uploading a fixed package shortly.

We're also considering getting that fixed in bullseye.


Cheers,
-- 
Cyril Brulebois -- Debian Consultant @ DEBAMAX -- https://debamax.com/

Attachment: signature.asc
Description: PGP signature

Reply via email to