# Impossible de lancer Crowdsec

**URL:** <https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255>\
**Category:** Support Debian\
**Created:** [Mars 13, 2022, 1:15 UTC](https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255 "2022-03-13T13:15:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cannabis38](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@Cannabis38](https://www.debian-fr.org/u/Cannabis38)\
**Post date:** [Mars 13, 2022, 1:15 UTC](https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255/1 "2022-03-13T13:15:45Z")

</div>

Je viens d’installer crowdsec sur mon raspberry avec ces deux commandes :

```bash
curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bash 
sudo apt install crowdsec

```

Mais il est impossible de lancer crowdsec :

`systemctl status crowdsec` :

```nohighlight
● crowdsec.service - Crowdsec agent
   Loaded: loaded (/lib/systemd/system/crowdsec.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2022-03-13 14:12:19 CET; 54
  Process: 23109 ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t (code=exited,
  Process: 23117 ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml (code=exited, status
 Main PID: 23117 (code=exited, status=1/FAILURE)

mars 13 14:12:19 Canna-pi systemd[1]: crowdsec.service: Failed with result 'exit-code'.
mars 13 14:12:19 Canna-pi systemd[1]: Failed to start Crowdsec agent.

```

Le résultat de `journalctl -xe` :

```nohighlight
-- The unit crowdsec.service has entered the 'failed' state with result 'exit-co
mars 13 13:55:35 Canna-pi systemd[1]: Failed to start Crowdsec agent.
-- Subject: L'unité (unit) crowdsec.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support

```

---

<div class="post-metadata">

**Author:** ![Cannabis38](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@Cannabis38](https://www.debian-fr.org/u/Cannabis38)\
**Post date:** [Mars 13, 2022, 5:37 UTC](https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255/2 "2022-03-13T17:37:21Z")

</div>

Solutionner en changeant le port

---

<div class="post-metadata">

**Author:** ![Almtesh](https://www.debian-fr.org/user_avatar/www.debian-fr.org/almtesh/32/10312_2.png) [@Almtesh](https://www.debian-fr.org/u/Almtesh)\
**Post date:** [Mars 13, 2022, 6:28 UTC](https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255/3 "2022-03-13T18:28:04Z")

</div>

> [@Cannabis38](#):
>
> ```bash
> curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bash
> 
> ```

Alors, juste un petite remarque comme ça, fais très attention au script que tu lances comme ça en tant que root, c’est un coup à creuser un trou de sécurité béant dans ton système sans même t’en rendre compte.  
D’autant que je n’en vois pas l’intérêt, `crowdsec` est présent dans les dépôts Debian.

---

<div class="post-metadata">

**Author:** ![Cannabis38](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@Cannabis38](https://www.debian-fr.org/u/Cannabis38)\
**Post date:** [Mars 13, 2022, 10:36 UTC](https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255/4 "2022-03-13T22:36:30Z")

</div>

Je l’installe sur un raspberry et crowdsec n’est pas disponible dans les dépôts

---

<div class="post-metadata">

**Author:** ![Almtesh](https://www.debian-fr.org/user_avatar/www.debian-fr.org/almtesh/32/10312_2.png) [@Almtesh](https://www.debian-fr.org/u/Almtesh)\
**Post date:** [Mars 15, 2022, 6:14 UTC](https://www.debian-fr.org/t/impossible-de-lancer-crowdsec/86255/5 "2022-03-15T06:14:38Z")

</div>

Ah non, au temps pour moi, `crowdsec` n’est disponible qu’à partir de Debian 11, tu as probablement la version 10 sur ta machine, c’est pour ça.  
Il ne semble pas être disponible en backports.
