# Crowdsec service no longer starts: unknown func ParseKV

**URL:** <https://discourse.crowdsec.net/t/crowdsec-service-no-longer-starts-unknown-func-parsekv/1355>\
**Category:** Uncategorized\
**Created:** [July 19, 2023, 2:47pm UTC](https://discourse.crowdsec.net/t/crowdsec-service-no-longer-starts-unknown-func-parsekv/1355 "2023-07-19T14:47:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kociubin](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/kociubin/32/591_2.png) [@kociubin](https://discourse.crowdsec.net/u/kociubin)\
**Post date:** [July 19, 2023, 2:47pm UTC](https://discourse.crowdsec.net/t/crowdsec-service-no-longer-starts-unknown-func-parsekv/1355/1 "2023-07-19T14:47:56Z")

</div>

My previously working crowdsec install on Ubuntu 22.04 stopped working last night. The service no longer starts and the following is in the logs. Could someone help to point me in the right direction?

> time=“19-07-2023 09:41:51” level=error msg=“Statics Compilation failed unknown func ParseKV (1:1)\n | ParseKV(evt.Parsed.message, evt.Unmarshaled, "iptables")\n | ^.” id=red-wind name=crowdsecurity/iptables-logs stage=s01-parse  
> time=“19-07-2023 09:41:51” level=fatal msg=“crowdsec init: Failed to load parsers: failed to load parser config : failed to compile node ‘crowdsecurity/iptables-logs’ in ‘/etc/crowdsec/parsers/s01-parse/iptables-logs.yaml’ : unknown func ParseKV (1:1)\n | ParseKV(evt.Parsed.message, evt.Unmarshaled, "iptables")\n | ^”

---

<div class="post-metadata">

**Author:** ![kociubin](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/kociubin/32/591_2.png) [@kociubin](https://discourse.crowdsec.net/u/kociubin)\
**Post date:** [July 19, 2023, 7:01pm UTC](https://discourse.crowdsec.net/t/crowdsec-service-no-longer-starts-unknown-func-parsekv/1355/2 "2023-07-19T19:01:27Z")

</div>

Somehow I had two installs of crowdsec. I ran the following commands which fixed the issue.

systemctl stop crowdsec.service  
cd /usr/local/bin/  
rm crowdsec  
ln -s /usr/bin/crowdsec .  
systemctl start crowdsec.service

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [July 19, 2023, 8:07pm UTC](https://discourse.crowdsec.net/t/crowdsec-service-no-longer-starts-unknown-func-parsekv/1355/3 "2023-07-19T20:07:27Z")

</div>

[Discord thread](https://discord.com/channels/921520481163673640/1131256846028656713)

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [July 19, 2023, 8:07pm UTC](https://discourse.crowdsec.net/t/crowdsec-service-no-longer-starts-unknown-func-parsekv/1355/4 "2023-07-19T20:07:31Z")

</div>


