---
title: "أخطاء OpenWrt والأجهزة المدمجة | Wantastic Docs"
description: "مشكلات kmod-tun وذاكرة الفلاش للقراءة فقط وprocd وامتلاء الفلاش والساعات الخاطئة وBusyBox على الموجّهات والوحدات."
url: "https://wantastic.app/ar/docs/errors-openwrt-embedded"
category: "Troubleshooting"
reading_time: "5 دقائق"
---

# أخطاء OpenWrt والأجهزة المدمجة

مشكلات kmod-tun وذاكرة الفلاش للقراءة فقط وprocd وامتلاء الفلاش والساعات الخاطئة وBusyBox على الموجّهات والوحدات.

> **Outcome:** يعمل wantasticd كخدمة، ويستمر بعد إعادة التشغيل، والجهاز في حالة "Online".

## Before you start

- shell بصلاحيات root (عبر SSH) على الجهاز.
- اتصال بالإنترنت من الجهاز.

## قبل أن تبدأ

معظم المشكلات سببها وحدة TUN مفقودة، أو فلاش ممتلئ، أو غياب دعم HTTPS، أو ساعة مضبوطة على 1970. يصلح هذا التسلسل الحالات الشائعة.

- السجلات: logread -e wantasticd | tail -n 50.
- Alpine: أعد التشغيل باستخدام rc-service wantasticd restart. BusyBox: شغّل killall wantasticd، وسيعيد inittab تشغيله.
- يحتفظ Quectel RM520N-GL بالإعدادات في /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
```

## ما يجب التحقق منه

1. TUN: ls -l /dev/net/tun.
2. المساحة: df -h /overlay (يلزم نحو 6 MB).
3. الساعة: date -u.
4. السجلات: logread -e wantasticd | tail -n 50.

*فشل: لا يوجد kmod-tun، ثم الحل: ثبّت kmod-tun وأعد تشغيل الخدمة.*

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

## جدول سريع

| الخطأ أو العَرَض | أسهل حل |
| --- | --- |
| /dev/net/tun does not exist | opkg install kmod-tun. |
| could not remount … read-write | شغّل بصلاحيات root؛ قد تكون البرامج الثابتة مقفلة. |
| still not writable after remounting | حرّر مساحة في ذاكرة الفلاش. |
| procd service did not become healthy | kmod-tun، ثم طالب بالجهاز باستخدام genkey. |
| wget failed / HTTP … downloading | ثبّت wget-ssl وca-bundle؛ وأصلح الساعة. |
| ساعة مضبوطة على 1970 | فعّل NTP. |

## Verify the result

- يعرض wantasticd status القيمة Connected.
- الجهاز في حالة "Online" بعد إعادة التشغيل.

## Common issues

### جهاز 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 غير مثبّت.
- **Fix:** ثبّت kmod-tun وأعد تشغيل الخدمة.

Shell (root):

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

- **Verify:** تظهر "Created TUN interface: wantastic0" في logread.

### ذاكرة الفلاش للقراءة فقط أثناء التثبيت.

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

- **Where:** install.sh
- **Likely cause:** البرامج الثابتة للقراءة فقط أو مقفلة، أو أنك لست root.
- **Fix:** سجّل الدخول بصلاحيات root وشغّل المثبّت مجددًا. في البرامج الثابتة المقفلة، ثبّت الملف التنفيذي في قسم قابل للكتابة واضبط WANTASTIC_CONFIG_DIR.

Shell (root):

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

- **Verify:** يطبع المثبّت "Done."

### ذاكرة الفلاش ممتلئة.

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

- **Where:** install.sh
- **Likely cause:** لا توجد مساحة حرة في /overlay.
- **Fix:** أزل الحزم غير المستخدمة، ثم شغّل المثبّت مجددًا.

Shell (root):

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

- **Verify:** يطبع المثبّت "Done."

### خدمة procd غير سليمة.

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

- **Where:** install.sh (OpenWrt)
- **Likely cause:** لم تتم المطالبة بالجهاز بعد، أو أن kmod-tun مفقود.
- **Fix:** ثبّت kmod-tun، وطالب بالجهاز باستخدام genkey، ثم أعد تشغيل الخدمة.

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 القيمة Connected.

### تفشل التنزيلات عبر HTTPS.

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

- **Where:** install.sh / التحديث الذاتي
- **Likely cause:** لا يدعم wget بروتوكول HTTPS، أو حزمة CA مفقودة، أو الساعة خاطئة.
- **Fix:** ثبّت دعم HTTPS واضبط الساعة.

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 إصدارًا.

### ساعة مضبوطة على 1970، أو رفض المطالبة، أو أخطاء HTTPS.

- **Where:** أجهزة بلا ساعة تعمل بالبطارية
- **Likely cause:** لا يحتوي الجهاز على ساعة وقت حقيقي ولم يُزامن NTP بعد. تتطلب المطالبة أن يكون الوقت صحيحًا بفارق لا يتجاوز 30 ثانية.
- **Fix:** فعّل NTP عند الإقلاع، ثم طالب بالجهاز مجددًا.

Shell (root):

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

- **Verify:** يعرض date -u الوقت الحالي.

### يشغّل جهاز BusyBox وكيلين بعد التحديث.

- **Where:** BusyBox / inittab
- **Likely cause:** يتجاهل سكربت البدء في BusyBox أمر restart ويشغّل نسخة ثانية.
- **Fix:** أضف --no-auto-update إلى أمر الخدمة، ثم حدّث يدويًا.

Shell (root):

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

- **Verify:** عملية wantasticd واحدة فقط.

### حلقة إعادة تشغيل على BusyBox.

- **Where:** BusyBox / inittab
- **Likely cause:** يعيد inittab تشغيل الخدمة بلا توقف لأنه لم تتم المطالبة بالجهاز بعد.
- **Fix:** طالب بالجهاز باستخدام genkey، واضغط Ctrl+C، ثم أوقف العملية القديمة. سيعيد inittab تشغيلها.

Shell (root):

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

- **Verify:** يعرض wantasticd status القيمة Connected.

### إشعار DNS على OpenWrt.

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

- **Where:** logread
- **Likely cause:** هذا إشعار معلوماتي. يدير OpenWrt إعدادات DNS بنفسه.
- **Fix:** لا شيء مطلوب.

- **Verify:** تُحَل الأسماء بشكل طبيعي.

### تظهر الذاكرة بوحدة TB في لوحات المعلومات.

- **Where:** الكونسول (الوكلاء الأقدم)
- **Likely cause:** خطأ في الوحدات في الإصدارات الأقدم.
- **Fix:** حدّث wantasticd.

Shell (root):

```bash
wantasticd update
```

- **Verify:** تظهر القيم بوحدة GB.

### تفقد وحدة Quectel إعداداتها بعد تحديث البرامج الثابتة.

- **Where:** Quectel RM520N-GL
- **Likely cause:** يجب أن تكون الإعدادات على /usrdata لكي تبقى.
- **Fix:** تحقّق من وجود /usrdata/wantastic/etc/config.conf. إن لم يكن موجودًا، فشغّل التثبيت السريع وطالب بالجهاز مجددًا.

Shell (root):

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

- **Verify:** الجهاز في حالة "Online" بعد إعادة التشغيل.

## Continue with

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