---
title: "Erreurs OpenWrt et appareils embarqués | Wantastic Docs"
description: "kmod-tun, flash en lecture seule, procd, flash pleine, horloges incorrectes et problèmes BusyBox sur les routeurs et les modules."
url: "https://wantastic.app/fr/docs/errors-openwrt-embedded"
category: "Troubleshooting"
reading_time: "5 min"
---

# Erreurs OpenWrt et appareils embarqués

kmod-tun, flash en lecture seule, procd, flash pleine, horloges incorrectes et problèmes BusyBox sur les routeurs et les modules.

> **Outcome:** wantasticd s’exécute en tant que service, survit à un redémarrage, et l’appareil est Online.

## Before you start

- Un shell root (SSH) sur l’appareil.
- Un accès Internet depuis l’appareil.

## Avant de commencer

La plupart des problèmes viennent d’un module TUN manquant, d’une flash pleine, d’une prise en charge HTTPS absente ou d’une horloge en 1970. Cette séquence corrige les cas courants.

- Journaux : logread -e wantasticd | tail -n 50.
- Alpine : redémarrez avec rc-service wantasticd restart. BusyBox : exécutez killall wantasticd, et inittab le relance.
- Le Quectel RM520N-GL conserve la configuration dans /usrdata/wantastic/etc/config.conf.

OpenWrt (root):

```bash
ntpd -q -p pool.ntp.org
opkg update && opkg install kmod-tun
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

## Points à vérifier

1. TUN : ls -l /dev/net/tun.
2. Espace : df -h /overlay (environ 6 MB nécessaires).
3. Horloge : date -u.
4. Journaux : logread -e wantasticd | tail -n 50.

*En échec : pas de kmod-tun, puis corrigé: Installez kmod-tun et redémarrez le service.*

```
$ root@OpenWrt:~# logread -e wantasticd | tail -n 1
daemon.err wantasticd[2210]: Failed to start agent: create device: create tun: CreateTUN("wantastic0") failed; /dev/net/tun does not exist
$ root@OpenWrt:~# opkg update && opkg install kmod-tun
$ root@OpenWrt:~# /etc/init.d/wantasticd restart
$ root@OpenWrt:~# wantasticd status
Status      Connected
```

## Tableau récapitulatif

| Erreur ou symptôme | Solution la plus simple |
| --- | --- |
| /dev/net/tun does not exist | opkg install kmod-tun. |
| could not remount … read-write | Exécutez en root ; le firmware est peut-être verrouillé. |
| still not writable after remounting | Libérez de l’espace sur la flash. |
| procd service did not become healthy | kmod-tun, puis revendiquez avec genkey. |
| wget failed / HTTP … downloading | Installez wget-ssl et ca-bundle ; corrigez l’horloge. |
| Horloge en 1970 | Activez NTP. |

## Verify the result

- wantasticd status affiche Connected.
- L’appareil est Online après un redémarrage.

## Common issues

### Périphérique TUN manquant.

```
Failed to start agent: create device: create tun: CreateTUN("wantastic0") failed; /dev/net/tun does not exist
```

- **Where:** logread (OpenWrt)
- **Likely cause:** kmod-tun n’est pas installé.
- **Fix:** Installez kmod-tun et redémarrez le service.

Shell (root):

```bash
opkg update && opkg install kmod-tun
/etc/init.d/wantasticd restart
```

- **Verify:** "Created TUN interface: wantastic0" dans logread.

### La flash est en lecture seule pendant l’installation.

```
Error: could not remount <mount> read-write. Run as root or unlock the filesystem.
```

- **Where:** install.sh
- **Likely cause:** Le firmware est en lecture seule ou verrouillé, ou vous n’êtes pas root.
- **Fix:** Connectez-vous en root et relancez le programme d’installation. Sur un firmware verrouillé, installez le binaire sur une partition accessible en écriture et définissez WANTASTIC_CONFIG_DIR.

Shell (root):

```bash
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

- **Verify:** Le programme d’installation affiche "Done."

### Flash pleine.

```
Error: <dir> is still not writable after remounting <mount>
```

- **Where:** install.sh
- **Likely cause:** /overlay n’a plus d’espace libre.
- **Fix:** Supprimez les paquets inutilisés, puis relancez le programme d’installation.

Shell (root):

```bash
df -h /overlay
opkg list-installed
```

- **Verify:** Le programme d’installation affiche "Done."

### Service procd en mauvais état.

```
Error: procd service did not become healthy
```

- **Where:** install.sh (OpenWrt)
- **Likely cause:** L’appareil n’est pas encore revendiqué, ou kmod-tun est manquant.
- **Fix:** Installez kmod-tun, revendiquez l’appareil avec genkey, puis redémarrez le service.

Shell (root):

```bash
opkg update && opkg install kmod-tun
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

- **Verify:** wantasticd status affiche Connected.

### Les téléchargements HTTPS échouent.

```
wget failed: <url>
```

- **Where:** install.sh / auto-mise à jour
- **Likely cause:** wget ne prend pas en charge le HTTPS, le bundle CA est manquant, ou l’horloge est fausse.
- **Fix:** Installez la prise en charge du HTTPS et réglez l’horloge.

Shell (root):

```bash
opkg update && opkg install wget-ssl ca-bundle
ntpd -q -p pool.ntp.org
```

- **Verify:** wget -qO- https://get.wantastic.app/latest affiche une version.

### Horloge en 1970, revendication refusée ou erreurs HTTPS.

- **Where:** Appareils sans horloge sur pile
- **Likely cause:** L’appareil n’a pas d’horloge temps réel et NTP ne s’est pas synchronisé. Les revendications exigent une heure exacte à 30 secondes près.
- **Fix:** Activez NTP au démarrage, puis revendiquez à nouveau.

Shell (root):

```bash
uci set system.ntp.enabled='1'
uci commit system
/etc/init.d/sysntpd restart
date -u
```

- **Verify:** date -u affiche l’heure actuelle.

### Un appareil BusyBox exécute deux agents après une mise à jour.

- **Where:** BusyBox / inittab
- **Likely cause:** Le script de démarrage BusyBox ignore restart et lance une seconde copie.
- **Fix:** Ajoutez --no-auto-update à la commande du service, puis mettez à jour manuellement.

Shell (root):

```bash
pgrep -a wantasticd
# edit /etc/init.d/wantasticd: exec <bin> connect --config <cfg> --no-auto-update
kill -HUP 1
```

- **Verify:** Un seul processus wantasticd.

### Boucle de redémarrage sur BusyBox.

- **Where:** BusyBox / inittab
- **Likely cause:** inittab redémarre le service indéfiniment car l’appareil n’est pas encore revendiqué.
- **Fix:** Revendiquez l’appareil avec genkey, appuyez sur Ctrl+C, puis arrêtez l’ancien processus. inittab le relance.

Shell (root):

```bash
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
killall wantasticd
```

- **Verify:** wantasticd status affiche Connected.

### Message DNS sur OpenWrt.

```
OpenWrt DNS is managed by the OpenWrt backend
```

- **Where:** logread
- **Likely cause:** C’est informatif. OpenWrt gère lui-même le DNS.
- **Fix:** Rien à faire.

- **Verify:** Les noms se résolvent normalement.

### Mémoire affichée en TB dans les tableaux de bord.

- **Where:** Console (anciens agents)
- **Likely cause:** Un bug d’unité dans les anciennes versions.
- **Fix:** Mettez à jour wantasticd.

Shell (root):

```bash
wantasticd update
```

- **Verify:** Les valeurs s’affichent en GB.

### Le module Quectel perd sa configuration après une mise à jour du firmware.

- **Where:** Quectel RM520N-GL
- **Likely cause:** La configuration doit se trouver sur /usrdata pour être conservée.
- **Fix:** Vérifiez que /usrdata/wantastic/etc/config.conf existe. Sinon, relancez l’installation rapide et revendiquez à nouveau.

Shell (root):

```bash
ls -l /usrdata/wantastic/etc/config.conf
```

- **Verify:** L’appareil est Online après un redémarrage.

## Continue with

- [Troubleshooting: start here](https://wantastic.app/fr/docs/troubleshooting): Fix most problems in 3 steps. If that does not work, find your exact error in the table and open the matching guide.
- [Install on OpenWrt](https://wantastic.app/fr/docs/install-openwrt): Install wantasticd on an OpenWrt router in 2 minutes over SSH: add the TUN driver, run one wget command, scan a QR code, click Claim Device.
- [Install on BusyBox / embedded Linux](https://wantastic.app/fr/docs/install-embedded-busybox): Install wantasticd on minimal BusyBox devices without systemd, procd or OpenRC: one wget command, scan a QR code, click Claim Device.
- [Install on Quectel RM520N-GL](https://wantastic.app/fr/docs/install-quectel-rm520n): Install wantasticd on a Quectel RM520N-GL or other Qualcomm SDX 5G module over ADB in 2 minutes: one command, scan a QR code, click Claim Device.
- [Install on MIPS routers](https://wantastic.app/fr/docs/install-mips-routers): Install wantasticd on MIPS routers and boards: one command tells you the CPU type, then copy the matching install block and claim the router with a QR code.
- [Connect and runtime errors](https://wantastic.app/fr/docs/errors-connect-runtime): Fix service start failures, config errors, TUN problems, missing handshakes and DNS warnings.
