Documentación/Solución de problemas5 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.

Lo que tendrás al final

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

Antes de empezar

  • 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. 1TUN: ls -l /dev/net/tun.
  2. 2Espacio: df -h /overlay (se necesitan unos 6 MB).
  3. 3Reloj: date -u.
  4. 4Logs: logread -e wantasticd | tail -n 50.
Falla: sin kmod-tun, luego solucionado
$ 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 exist1
$ root@OpenWrt:~# opkg update && opkg install kmod-tun
$ root@OpenWrt:~# /etc/init.d/wantasticd restart
$ root@OpenWrt:~# wantasticd status
Status Connected
  1. 1Falta el módulo TUN
Instala kmod-tun y reinicia el servicio.

Tabla rápida

Error o síntomaSolución más sencilla
/dev/net/tun does not existopkg install kmod-tun.
could not remount … read-writeEjecútalo como root; el firmware puede estar bloqueado.
still not writable after remountingLibera espacio en la flash.
procd service did not become healthykmod-tun, luego reclama con genkey.
wget failed / HTTP … downloadingInstala wget-ssl y ca-bundle; corrige el reloj.
Reloj en 1970Habilita NTP.

Comprueba el resultado

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

Errores y soluciones

Falta el dispositivo TUN.Failed to start agent: create device: create tun: CreateTUN("wantastic0") failed; /dev/net/tun does not existlogread (OpenWrt)
Por qué ocurre

kmod-tun no está instalado.

Solución

Instala kmod-tun y reinicia el servicio.

Shell (root)bash
opkg update && opkg install kmod-tun
/etc/init.d/wantasticd restart
Comprobar: "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.install.sh
Por qué ocurre

El firmware es de solo lectura o está bloqueado, o no eres root.

Solución

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
Comprobar: El instalador imprime "Done."
Flash llena.Error: <dir> is still not writable after remounting <mount>install.sh
Por qué ocurre

/overlay no tiene espacio libre.

Solución

Elimina los paquetes que no uses y vuelve a ejecutar el instalador.

Shell (root)bash
df -h /overlay
opkg list-installed
Comprobar: El instalador imprime "Done."
El servicio procd no está en buen estado.Error: procd service did not become healthyinstall.sh (OpenWrt)
Por qué ocurre

El dispositivo aún no está reclamado, o falta kmod-tun.

Solución

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
Comprobar: wantasticd status muestra Connected.
Fallan las descargas HTTPS.wget failed: <url>install.sh / autoactualización
Por qué ocurre

wget no tiene soporte HTTPS, falta el paquete de CA o el reloj está mal.

Solución

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
Comprobar: wget -qO- https://get.wantastic.app/latest imprime una versión.
Reloj en 1970, reclamación rechazada o errores de HTTPS.Dispositivos sin reloj con batería
Por qué ocurre

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.

Solución

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
Comprobar: date -u muestra la hora actual.
Un dispositivo BusyBox ejecuta dos agentes tras una actualización.BusyBox / inittab
Por qué ocurre

El script de arranque de BusyBox ignora restart e inicia una segunda copia.

Solución

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
Comprobar: Solo un proceso wantasticd.
Bucle de reinicios en BusyBox.BusyBox / inittab
Por qué ocurre

inittab reinicia el servicio indefinidamente porque el dispositivo aún no está reclamado.

Solución

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
Comprobar: wantasticd status muestra Connected.
Aviso de DNS en OpenWrt.OpenWrt DNS is managed by the OpenWrt backendlogread
Por qué ocurre

Es informativo. OpenWrt gestiona el DNS por sí mismo.

Solución

No hay nada que hacer.

Comprobar: Los nombres se resuelven con normalidad.
La memoria aparece en TB en los paneles.Consola (agentes antiguos)
Por qué ocurre

Un error de unidades en versiones antiguas.

Solución

Actualiza wantasticd.

Shell (root)bash
wantasticd update
Comprobar: Los valores aparecen en GB.
El módulo Quectel pierde su configuración tras una actualización de firmware.Quectel RM520N-GL
Por qué ocurre

La configuración debe estar en /usrdata para conservarse.

Solución

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
Comprobar: El dispositivo está Online después de un reinicio.

Continúa con

¿Sigues atascado?

Envía por correo el nombre del dispositivo, la plataforma y el texto exacto del error. Nunca envíes tokens, claves ni contraseñas.

hello@wantastic.app