---
title: "Errores de OpenWrt y dispositivos embebidos | Wantastic Docs"
description: "kmod-tun, flash de solo lectura, procd, flash llena, relojes incorrectos y problemas de BusyBox en routers y módulos."
url: "https://wantastic.app/es/docs/errors-openwrt-embedded"
category: "Troubleshooting"
reading_time: "5 min"
---

# Errores de OpenWrt y dispositivos embebidos

kmod-tun, flash de solo lectura, procd, flash llena, relojes incorrectos y problemas de BusyBox en routers y módulos.

> **Outcome:** wantasticd se ejecuta como servicio, sobrevive a un reinicio y el dispositivo está Online.

## Before you start

- Una shell root (SSH) en el dispositivo.
- Acceso a Internet desde el dispositivo.

## Antes de empezar

La mayoría de los problemas son la falta del módulo TUN, la flash llena, la falta de soporte HTTPS o un reloj en 1970. Esta secuencia soluciona los casos comunes.

- Logs: logread -e wantasticd | tail -n 50.
- Alpine: reinicia con rc-service wantasticd restart. BusyBox: ejecuta killall wantasticd e inittab lo vuelve a iniciar.
- El Quectel RM520N-GL guarda la configuración en /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
```

## Qué comprobar

1. TUN: ls -l /dev/net/tun.
2. Espacio: df -h /overlay (se necesitan unos 6 MB).
3. Reloj: date -u.
4. Logs: logread -e wantasticd | tail -n 50.

*Falla: sin kmod-tun, luego solucionado: Instala kmod-tun y reinicia el servicio.*

```
$ 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
```

## Tabla rápida

| Error o síntoma | Solución más sencilla |
| --- | --- |
| /dev/net/tun does not exist | opkg install kmod-tun. |
| could not remount … read-write | Ejecútalo como root; el firmware puede estar bloqueado. |
| still not writable after remounting | Libera espacio en la flash. |
| procd service did not become healthy | kmod-tun, luego reclama con genkey. |
| wget failed / HTTP … downloading | Instala wget-ssl y ca-bundle; corrige el reloj. |
| Reloj en 1970 | Habilita NTP. |

## Verify the result

- wantasticd status muestra Connected.
- El dispositivo está Online después de un reinicio.

## Common issues

### Falta el dispositivo TUN.

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

- **Where:** logread (OpenWrt)
- **Likely cause:** kmod-tun no está instalado.
- **Fix:** Instala kmod-tun y reinicia el servicio.

Shell (root):

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

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

### La flash es de solo lectura durante la instalación.

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

- **Where:** install.sh
- **Likely cause:** El firmware es de solo lectura o está bloqueado, o no eres root.
- **Fix:** Inicia sesión como root y vuelve a ejecutar el instalador. En firmware bloqueado, instala el binario en una partición con permisos de escritura y define WANTASTIC_CONFIG_DIR.

Shell (root):

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

- **Verify:** El instalador imprime "Done."

### Flash llena.

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

- **Where:** install.sh
- **Likely cause:** /overlay no tiene espacio libre.
- **Fix:** Elimina los paquetes que no uses y vuelve a ejecutar el instalador.

Shell (root):

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

- **Verify:** El instalador imprime "Done."

### El servicio procd no está en buen estado.

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

- **Where:** install.sh (OpenWrt)
- **Likely cause:** El dispositivo aún no está reclamado, o falta kmod-tun.
- **Fix:** Instala kmod-tun, reclama el dispositivo con genkey y reinicia el servicio.

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 muestra Connected.

### Fallan las descargas HTTPS.

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

- **Where:** install.sh / autoactualización
- **Likely cause:** wget no tiene soporte HTTPS, falta el paquete de CA o el reloj está mal.
- **Fix:** Instala el soporte HTTPS y ajusta el reloj.

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 imprime una versión.

### Reloj en 1970, reclamación rechazada o errores de HTTPS.

- **Where:** Dispositivos sin reloj con batería
- **Likely cause:** El dispositivo no tiene reloj de tiempo real y NTP no se ha sincronizado. Las reclamaciones necesitan la hora con un margen de 30 segundos.
- **Fix:** Activa NTP al arrancar y vuelve a reclamar.

Shell (root):

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

- **Verify:** date -u muestra la hora actual.

### Un dispositivo BusyBox ejecuta dos agentes tras una actualización.

- **Where:** BusyBox / inittab
- **Likely cause:** El script de arranque de BusyBox ignora restart e inicia una segunda copia.
- **Fix:** Añade --no-auto-update al comando del servicio y actualiza manualmente.

Shell (root):

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

- **Verify:** Solo un proceso wantasticd.

### Bucle de reinicios en BusyBox.

- **Where:** BusyBox / inittab
- **Likely cause:** inittab reinicia el servicio indefinidamente porque el dispositivo aún no está reclamado.
- **Fix:** Reclama el dispositivo con genkey, pulsa Ctrl+C y detén el proceso antiguo. inittab lo vuelve a iniciar.

Shell (root):

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

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

### Aviso de DNS en OpenWrt.

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

- **Where:** logread
- **Likely cause:** Es informativo. OpenWrt gestiona el DNS por sí mismo.
- **Fix:** No hay nada que hacer.

- **Verify:** Los nombres se resuelven con normalidad.

### La memoria aparece en TB en los paneles.

- **Where:** Consola (agentes antiguos)
- **Likely cause:** Un error de unidades en versiones antiguas.
- **Fix:** Actualiza wantasticd.

Shell (root):

```bash
wantasticd update
```

- **Verify:** Los valores aparecen en GB.

### El módulo Quectel pierde su configuración tras una actualización de firmware.

- **Where:** Quectel RM520N-GL
- **Likely cause:** La configuración debe estar en /usrdata para conservarse.
- **Fix:** Comprueba que /usrdata/wantastic/etc/config.conf existe. Si no, ejecuta la instalación rápida y vuelve a reclamar.

Shell (root):

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

- **Verify:** El dispositivo está Online después de un reinicio.

## Continue with

- [Troubleshooting: start here](https://wantastic.app/es/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/es/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/es/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/es/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/es/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/es/docs/errors-connect-runtime): Fix service start failures, config errors, TUN problems, missing handshakes and DNS warnings.
