---
title: "أخطاء التحديث والتراجع | Wantastic Docs"
description: "أصلح حالات فشل التحديث الذاتي، واقرأ سجل التحديث، وتراجع إلى الملف التنفيذي السابق."
url: "https://wantastic.app/ar/docs/errors-update"
category: "Troubleshooting"
reading_time: "5 دقائق"
---

# أخطاء التحديث والتراجع

أصلح حالات فشل التحديث الذاتي، واقرأ سجل التحديث، وتراجع إلى الملف التنفيذي السابق.

> **Outcome:** يعرض wantasticd version الإصدار المتوقع والخدمة في حالة Connected، أو أنك تراجعت بأمان.

## Before you start

- صلاحيات root أو مسؤول.
- سجل التحديث في /tmp (wantasticd-update-*.log).

## كيف تعمل التحديثات

- يتحقق wantasticd من وجود تحديثات بعد دقيقة واحدة من البدء، ثم كل ساعة. للتحديث الآن، شغّل sudo wantasticd update.
- يُحتفظ بالملف التنفيذي القديم باسم .previous. إذا لم يبدأ الإصدار الجديد، يعود القديم تلقائيًا.
- يبقى النفق قيد التشغيل عند فشل التحديث. يحاول الفحص التالي مجددًا.
- الرسالة "No newer release available: current=… offered=…" طبيعية.

اقرأ أحدث سجل تحديث:

```bash
ls -t /tmp/wantasticd-update-*.log | head -1 | xargs tail -n 50
```

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

1. ابحث عن سطر الفشل في سجل الخدمة، ثم اقرأ سجل التحديث الذي يذكره.
2. أخطاء التنزيل: تحقّق من الشبكة. أخطاء الإصدار: تحقّق من المعالج و/tmp. أخطاء السلامة: أرسل السجل إلى الدعم.
3. إذا كان الجهاز غير مستقر، فتراجع يدويًا.

*فشل: تراجع تلقائي: فشل التحديث، وعاد الإصدار السابق تلقائيًا.*

```
$ $ sudo wantasticd update
Error: updated service failed health verification; restoring previous binary
Self-update failed; agent remains active and will retry on the next scheduled check: update script failed: exit status 1 (log kept at /tmp/wantasticd-update-a1B2.log)
```

*تراجع يدوي (Linux): أعد .previous إلى مكانه وأعد تشغيل الخدمة.*

```
$ $ sudo mv /usr/local/bin/wantasticd.previous /usr/local/bin/wantasticd
$ $ sudo systemctl restart wantasticd
$ $ wantasticd status
Status      Connected
```

## جدول سريع

| الخطأ | أسهل حل |
| --- | --- |
| Self-update failed… / update script failed… | اقرأ السجل المذكور. |
| update attempt timed out after 7m0s | ارفع مهلة التنزيل. |
| Error: download failed (HTTP N) | اسمح بحركة HTTPS إلى get.wantastic.app. |
| Error: downloaded binary does not report target version | معالج خاطئ أو TMPDIR مركّب بخيار noexec. |
| Error: cannot back up / cannot write to <dir> | شغّل بصلاحيات root؛ وحرّر مساحة. |
| Error: updated service failed health verification… | تم التراجع بالفعل؛ أرسل السجل. |
| update-finish: … (Windows) | انظر مشكلات Windows أدناه. |

## Verify the result

- يعرض wantasticd version الإصدار المتوقع.
- يعرض wantasticd status القيمة Connected.

## Common issues

### فشل التحديث لكن الوكيل لا يزال يعمل.

```
Self-update failed; agent remains active and will retry on the next scheduled check: …
```

- **Where:** سجلات wantasticd
- **Likely cause:** فشلت خطوة في التحديث. يأتي السبب بعد النقطتين.
- **Fix:** ابحث عن السبب في هذه القائمة.

- **Verify:** ينجح الفحص التالي كل ساعة.

### فشل سكربت التحديث.

```
update script failed: … (log kept at /tmp/wantasticd-update-XXXX.log)
```

- **Where:** سجلات wantasticd
- **Likely cause:** توقف سكربت التحديث مع خطأ.
- **Fix:** اقرأ ملف السجل الذي يذكره.

Shell:

```bash
ls -t /tmp/wantasticd-update-*.log | head -1 | xargs tail -n 50
```

- **Verify:** ترى السبب في السجل.

### انتهت مهلة التحديث.

```
update attempt timed out after 7m0s (log kept at …)
```

- **Where:** سجلات wantasticd
- **Likely cause:** الاتصال بطيء (LTE أو قمر صناعي).
- **Fix:** شغّل التحديث يدويًا بمهلة تنزيل أطول.

Shell:

```bash
sudo WANTASTIC_UPDATE_DOWNLOAD_TIMEOUT=900 wantasticd update
```

- **Verify:** يكتمل التحديث.

### فشل التنزيل.

```
Error: download failed (HTTP N)
```

- **Where:** سجل التحديث
- **Likely cause:** يحظر وكيل أو جدار حماية أو DNS الوصول إلى get.wantastic.app.
- **Fix:** اسمح بحركة HTTPS إلى get.wantastic.app.

Shell:

```bash
curl -I https://get.wantastic.app/latest
```

- **Verify:** يعرض الأمر HTTP 200.

### لا توجد أداة تنزيل على الجهاز.

```
Error: no downloader available (curl, wget or uclient-fetch)
```

- **Where:** سجل التحديث
- **Likely cause:** صورة النظام مصغّرة.
- **Fix:** ثبّت أداة تنزيل.

Shell:

```bash
opkg update && opkg install uclient-fetch libustream-mbedtls ca-bundle
```

- **Verify:** يكتمل wantasticd update.

### لا يعمل الملف التنفيذي الجديد.

```
Error: downloaded binary does not report target version
```

- **Where:** سجل التحديث
- **Likely cause:** لا يستطيع المعالج تشغيل هذا الإصدار، أو أن TMPDIR مركّب بخيار noexec.
- **Fix:** حدّث يدويًا باستخدام مجلد مؤقت آخر.

Shell:

```bash
sudo mkdir -p /var/tmp/wt && sudo TMPDIR=/var/tmp/wt wantasticd update
```

- **Verify:** يعرض wantasticd version الإصدار الجديد.

### تعذّر أخذ نسخة احتياطية من الملف التنفيذي الحالي.

```
Error: cannot back up <bin>
```

- **Where:** سجل التحديث
- **Likely cause:** القرص ممتلئ أو للقراءة فقط.
- **Fix:** حرّر مساحة، ثم حدّث مجددًا.

Shell:

```bash
df -h
sudo wantasticd update
```

- **Verify:** يوجد <bin>.previous بعد التحديث.

### مجلد التثبيت غير قابل للكتابة.

```
Error: cannot write to <dir> (check permissions)
```

- **Where:** سجل التحديث
- **Likely cause:** لم يُشغَّل التحديث بصلاحيات root، أو أن نظام الملفات للقراءة فقط.
- **Fix:** شغّل التحديث باستخدام sudo.

Shell:

```bash
sudo wantasticd update
```

- **Verify:** يكتمل التحديث.

### رُفض التحديث في إعداد مخصص.

```
Error: no supported service manager found; refusing an unverifiable update
```

- **Where:** سجل التحديث
- **Likely cause:** لا يعمل wantasticd تحت launchd أو systemd أو procd أو OpenRC أو init.d.
- **Fix:** ثبّت الخدمة بالتثبيت السريع، أو حدّث يدويًا وشغّل باستخدام --no-auto-update.

Shell:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh
```

- **Verify:** يعرض wantasticd version الإصدار الجديد.

### فشل فحص السلامة بعد التحديث.

```
Error: updated service failed health verification; restoring previous binary
```

- **Where:** سجل التحديث
- **Likely cause:** لم يبدأ الإصدار الجديد بشكل صحيح في الوقت المحدد.
- **Fix:** لا شيء للتراجع عنه؛ فقد تراجع تلقائيًا. أرسل سجل التحديث إلى hello@wantastic.app.

- **Verify:** يعرض wantasticd status الحالة Connected على الإصدار القديم.

### لا يمكن تحديث إصدار التطوير.

```
Invalid update version: parse current version: version "dev" is not major.minor.patch
```

- **Where:** wantasticd update
- **Likely cause:** أنت تشغّل ملفًا تنفيذيًا بنيته بنفسك.
- **Fix:** ثبّت إصدارًا رسميًا.

Shell:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh
```

- **Verify:** يعرض wantasticd version القيمة vX.Y.Z+sha.

### محدّث بالفعل.

```
No newer release available: current=… offered=…
```

- **Where:** wantasticd update
- **Likely cause:** هذا طبيعي. لا تُثبَّت الإصدارات الأقدم أبدًا.
- **Fix:** لا شيء مطلوب.

- **Verify:** يعرض wantasticd version الإصدار الحالي.

### Windows: الخدمة غير سليمة بعد التحديث.

```
update-finish: <svc> unhealthy after update to <v>: …; restoring previous binary
```

- **Where:** Windows (update-finish)
- **Likely cause:** لم يصل الإصدار الجديد إلى حالة Running.
- **Fix:** يتراجع تلقائيًا. أرسل سجل التشغيل في الواجهة الأمامية إلى الدعم.

- **Verify:** يعرض sc.exe query wantasticd الحالة RUNNING.

### Windows: لا توجد نسخة احتياطية للاستعادة.

```
update-finish: no backup at …
```

- **Where:** Windows (update-finish)
- **Likely cause:** كان wantasticd.exe.previous مفقودًا.
- **Fix:** أعد التثبيت باستخدام install.ps1 في PowerShell كمسؤول.

PowerShell (مسؤول):

```powershell
irm https://get.wantastic.app/install.ps1 | iex
```

- **Verify:** الخدمة تعمل.

### Windows: فشل التراجع أيضًا.

```
update-finish: previous binary did not start either
```

- **Where:** Windows (update-finish)
- **Likely cause:** المشكلة في الإعدادات أو النظام، وليست في الملف التنفيذي.
- **Fix:** شغّل في الواجهة الأمامية لرؤية الخطأ (انظر أخطاء macOS وWindows)، وأصلحه، ثم شغّل الخدمة.

PowerShell (مسؤول):

```powershell
sc.exe start wantasticd
```

- **Verify:** الخدمة تعمل.

### Windows: الملف التنفيذي الذي تم تنزيله تالف.

```
new binary does not run
```

- **Where:** Windows (update)
- **Likely cause:** التنزيل تالف أو أن برنامج مكافحة الفيروسات أزاله. الرسالتان "new binary reports 'x', want v" و"wantasticd.exe not found in release archive" مرتبطتان بذلك.
- **Fix:** اسمح بالمجلد C:\Program Files\Wantastic في برنامج مكافحة الفيروسات، ثم أعد المحاولة.

PowerShell (مسؤول):

```powershell
& "C:\Program Files\Wantastic\wantasticd.exe" update
```

- **Verify:** يعرض wantasticd version الإصدار الجديد.

## 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.
- [Update, roll back and uninstall](https://wantastic.app/ar/docs/update-and-uninstall): Update or uninstall wantasticd with one line per OS. Also: how auto-update works, turning it off, rolling back to the previous binary, and purging all data.
- [wantasticd CLI reference and operations](https://wantastic.app/ar/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [macOS and Windows errors](https://wantastic.app/ar/docs/errors-macos-windows): launchd, Gatekeeper, tray, sc.exe and Windows service errors with the easiest fixes.
