---
title: "أخطاء macOS وWindows | Wantastic Docs"
description: "أخطاء launchd وGatekeeper وأيقونة شريط النظام وsc.exe وخدمة Windows مع أسهل الحلول."
url: "https://wantastic.app/ar/docs/errors-macos-windows"
category: "Troubleshooting"
reading_time: "6 دقائق"
---

# أخطاء macOS وWindows

أخطاء launchd وGatekeeper وأيقونة شريط النظام وsc.exe وخدمة Windows مع أسهل الحلول.

> **Outcome:** تعمل خدمة wantasticd عند الإقلاع ويعرض wantasticd status الحالة Connected.

## Before you start

- sudo على macOS، أو PowerShell كمسؤول على Windows.

## قبل أن تبدأ

- macOS: ثبّت الجهاز وطالب به بالتثبيت السريع. السجلات في /Library/Logs/Wantastic/wantasticd.log.
- Windows: ثبّت باستخدام رمز مميز. لا يظهر رمز QR الخاص بالمطالبة على Windows.
- لا يوجد ملف سجل على Windows. شغّل الخدمة مرة واحدة في الواجهة الأمامية لرؤية الخطأ.

### macOS

Terminal:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

### Windows

افتح PowerShell كمسؤول (Start ← اكتب powershell ← Run as administrator ← Yes)، والصق هذا السطر، ثم وافق على الجهاز في المتصفح.

PowerShell (مسؤول):

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

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

### macOS

Terminal:

```bash
wantasticd status
tail -n 50 /Library/Logs/Wantastic/wantasticd.log
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

### Windows

PowerShell (مسؤول):

```powershell
sc.exe query wantasticd
sc.exe stop wantasticd
& "C:\Program Files\Wantastic\wantasticd.exe" connect --config "C:\ProgramData\Wantastic\config.conf" --tray=false -v *> "$env:TEMP\wantasticd.log"
Get-Content "$env:TEMP\wantasticd.log" -Tail 50
```

*فشل: نافذة PowerShell عادية: النافذة لا تملك صلاحيات المسؤول، لذلك يتوقف المثبّت.*

```
$ PS C:\Users\you> irm https://get.wantastic.app/install.ps1 | iex
Administrator privileges are required.
Right-click PowerShell, choose 'Run as administrator', and run again:
```

*تم الإصلاح: Administrator: Windows PowerShell: السطر نفسه في نافذة مفتوحة عبر Run as administrator، ثم الموافقة في المتصفح.*

```
$ PS C:\Windows\system32> irm https://get.wantastic.app/install.ps1 | iex
wantasticd v1.0.54+377f3c0 is installed and running as a Windows Service.
```

## جدول سريع

| الخطأ | أسهل حل |
| --- | --- |
| Error: on macOS the installer needs root. | ضع sudo قبل sh. |
| Interface name must be utun[0-9]* | ألغِ ضبط WANTASTIC_TUN_NAME. |
| Killed by Gatekeeper / "cannot be opened" | أزل علامة العزل ووقّع الملف. |
| Tray "Status: Daemon not running" | أعد تشغيل الخدمة. |
| Failed to <action> (sc.exe exit code N). | أغلق services.msc أو أعد التشغيل. |
| The service is installed but not started because this device is not logged in yet. | wantasticd login --no-connect, then Start-Service wantasticd. |
| Administrator privileges are required. | افتح PowerShell عبر Run as administrator (تشغيل كمسؤول). |
| Error creating interface: … (Wintun) | شغّل كمسؤول؛ واسمح به في برنامج مكافحة الفيروسات. |

## Verify the result

- يعرض wantasticd status القيمة Connected.
- الجهاز في حالة "Online" في Devices.

## Common issues

### يتوقف التثبيت على macOS فورًا.

```
Error: on macOS the installer needs root.
```

- **Where:** install.sh (macOS)
- **Likely cause:** لم يُشغَّل المثبّت باستخدام sudo.
- **Fix:** شغّل التثبيت السريع مع وضع sudo قبل sh، ثم طالب بالجهاز.

1. شغّل الأمر.
2. افتح Claim URL، وسجّل الدخول، وانقر "Claim Device".
3. بعد ظهور "Device claimed"، اضغط Ctrl+C.
4. شغّل: sudo launchctl kickstart -k system/com.wantastic.wantasticd

Terminal:

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

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

### macOS: تمت المطالبة، لكن الجهاز يبقى "Offline".

- **Where:** wantasticd genkey (macOS)
- **Likely cause:** شُغّل genkey بدون sudo، فحُفظت الإعدادات في ~/Library/Application Support/Wantastic، والخدمة لا تقرأ منه.
- **Fix:** شغّل genkey مجددًا باستخدام sudo، وطالب بالجهاز مجددًا، ثم أعد تشغيل الخدمة.

Terminal:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

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

### يرفض macOS اسم TUN مخصصًا.

```
Interface name must be utun[0-9]*
```

- **Where:** سجلات wantasticd (macOS)
- **Likely cause:** WANTASTIC_TUN_NAME مضبوط على اسم لا يبدأ بـ utun.
- **Fix:** أزل هذا الإعداد. يختار macOS اسم utun تلقائيًا.

Terminal:

```bash
unset WANTASTIC_TUN_NAME
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

- **Verify:** يعرض wantasticd status القيمة Mode TUN (utunN).

### يُنهي macOS الملف التنفيذي أو يقول إنه لا يمكن فتحه.

- **Where:** macOS Gatekeeper
- **Likely cause:** يحمل الملف علامة العزل (quarantine) أو توقيعًا غير صالح بعد نسخه يدويًا.
- **Fix:** أزل علامة العزل ووقّع الملف التنفيذي.

Terminal:

```bash
sudo xattr -d com.apple.quarantine /usr/local/bin/wantasticd
sudo codesign -f -s - /usr/local/bin/wantasticd
sudo launchctl kickstart -k system/com.wantastic.wantasticd
```

- **Verify:** يعمل wantasticd version.

### الجهاز مُدرج لكن يتعذّر الوصول إليه من جهاز Mac.

- **Where:** macOS
- **Likely cause:** النفق متوقف، أو أن المسار لا يمر عبر utun.
- **Fix:** أعد تشغيل الخدمة، ثم تحقّق من المسار.

Terminal:

```bash
sudo launchctl kickstart -k system/com.wantastic.wantasticd
wantasticd status
route -n get <peer-ip>
```

- **Verify:** يعرض route -n get القيمة interface: utunN.

### تقول أيقونة شريط النظام إن الخدمة لا تعمل.

```
Status: Daemon not running
```

- **Where:** تطبيق شريط القوائم في macOS
- **Likely cause:** توقفت الخدمة أو تعطلت.
- **Fix:** أعد تشغيل الخدمة وتحقّق من السجل.

Terminal:

```bash
sudo launchctl kickstart -k system/com.wantastic.wantasticd
tail -n 50 /Library/Logs/Wantastic/wantasticd.log
```

- **Verify:** تعرض أيقونة شريط النظام Connected.

### يحظر جدار حماية macOS اتصالات P2P.

```
[P2P] Could not add … to the application firewall
```

- **Where:** سجلات wantasticd (macOS)
- **Likely cause:** رفض جدار حماية macOS القاعدة. الرسالة "Could not allow …" مشابهة.
- **Fix:** في System Settings → Network → Firewall → Options، اسمح بالاتصالات الواردة لـ wantasticd.

- **Verify:** يعرض wantasticd peers مسارات مباشرة.

### يظهر اسم شبكة Wi-Fi محجوبًا.

- **Where:** الكونسول / معلومات الجهاز (macOS)
- **Likely cause:** خدمات الموقع (Location Services) متوقفة لـ wantasticd.
- **Fix:** فعّل خدمات الموقع لـ wantasticd في System Settings → Privacy & Security.

- **Verify:** اسم شبكة Wi-Fi ظاهر.

### موقع السجل القديم.

- **Where:** macOS
- **Likely cause:** قبل الإصدار 1.0.50، كان السجل في /var/log/wantasticd.log.
- **Fix:** استخدم /Library/Logs/Wantastic/wantasticd.log في الإصدارات الحالية.

- **Verify:** يحتوي ملف السجل على أسطر حديثة.

### تفشل خطوة sc.exe أثناء التثبيت.

```
Failed to <action> (sc.exe exit code N).
```

- **Where:** install.ps1
- **Likely cause:** غالبًا رمز الخروج 1072: أداة Services (services.msc) أو أداة أخرى تُبقي الخدمة مفتوحة.
- **Fix:** أغلق Services وTask Manager وEvent Viewer، أو أعد التشغيل. ثم شغّل install.ps1 مجددًا.

PowerShell (مسؤول):

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

- **Verify:** يكتمل المثبّت.

### خدمة Windows لا تعمل بعد التثبيت.

```
The wantasticd service did not reach the Running state.
```

- **Where:** install.ps1
- **Likely cause:** فشل تسجيل الدخول، لذا فملف الإعدادات مجرد عنصر نائب.
- **Fix:** سجّل الدخول برمز مميز جديد، ثم أعد تشغيل الخدمة.

PowerShell (مسؤول):

```powershell
& "C:\Program Files\Wantastic\wantasticd.exe" login --no-connect --token <TOKEN>
Restart-Service wantasticd
```

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

### لا تبدأ الخدمة عند الإقلاع.

```
The wantasticd service was not configured for automatic startup.
```

- **Where:** install.ps1
- **Likely cause:** فشل الإعداد أو غيّرته سياسة ما.
- **Fix:** اضبط البدء التلقائي يدويًا.

PowerShell (مسؤول):

```powershell
sc.exe config wantasticd start= auto
```

- **Verify:** يعرض sc.exe qc wantasticd القيمة AUTO_START.

### الخدمة غير موجودة بعد التثبيت.

```
The wantasticd service was not found after installation.
```

- **Where:** install.ps1
- **Likely cause:** لم يُشغَّل PowerShell كمسؤول، أو حظرته سياسة ما.
- **Fix:** شغّل install.ps1 مجددًا في PowerShell كمسؤول.

PowerShell (مسؤول):

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

- **Verify:** يعمل sc.exe query wantasticd.

### يفشل تسجيل الدخول أثناء التثبيت على Windows.

```
Login did not complete (exit N).
```

- **Where:** install.ps1
- **Likely cause:** لم تكتمل الموافقة في المتصفح في الوقت المحدد أو رُفضت، أو رُفض رمز مميز.
- **Fix:** سجّل الدخول مجددًا ووافق على الجهاز، ثم شغّل الخدمة.

PowerShell (مسؤول):

```powershell
wantasticd login --no-connect
Start-Service wantasticd
```

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

### يتوقف المثبّت فورًا.

```
Administrator privileges are required.
```

- **Where:** install.ps1
- **Likely cause:** لم يُفتح PowerShell بصلاحيات Administrator.
- **Fix:** انقر Start، واكتب powershell، وانقر Run as administrator ثم Yes، والصق السطر مجددًا.

PowerShell (مسؤول):

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

- **Verify:** يكتمل المثبّت.

### أخطاء مدير خدمات Windows.

```
windows service failed: …
```

- **Where:** Event Viewer / التشغيل في الواجهة الأمامية
- **Likely cause:** فشل مُغلّف الخدمة. الرسالة "failed to determine if interactive session" مرتبطة بذلك.
- **Fix:** شغّل في الواجهة الأمامية مع -v لرؤية الخطأ الحقيقي، ثم أعد التثبيت كمسؤول.

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

### تعذّر إنشاء محوّل Wintun.

```
Error creating interface: …
```

- **Where:** wantasticd (Windows)
- **Likely cause:** PowerShell لا يعمل بصلاحيات مرتفعة، أو أن برنامج مكافحة الفيروسات يحظر برنامج تشغيل Wintun.
- **Fix:** شغّل كمسؤول واسمح بالمجلد C:\Program Files\Wantastic في برنامج الحماية لديك.

- **Verify:** يعرض wantasticd status القيمة Mode TUN (wantastic0).

### لا يظهر رمز QR أو طلب تسجيل الدخول على Windows.

- **Where:** install.ps1 · wantasticd login (Windows)
- **Likely cause:** إصدارات wantasticd القديمة على Windows لا تستطيع الكتابة في PowerShell.
- **Fix:** اضغط Ctrl+C، وأنشئ رمزًا مميزًا في Account → Secrets، وثبّت به.

PowerShell (مسؤول):

```powershell
& ([scriptblock]::Create((irm https://get.wantastic.app/install.ps1))) -Token <TOKEN>
```

- **Verify:** يقول المثبّت إن الخدمة تعمل.

### إلغاء التثبيت على Windows.

- **Where:** Windows
- **Likely cause:** لا يوجد سكربت لإلغاء التثبيت.
- **Fix:** أوقف الخدمة واحذفها، ثم أزل المجلدات.

PowerShell (مسؤول):

```powershell
sc.exe stop wantasticd; sc.exe delete wantasticd
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Run -Name Wantastic -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force "C:\Program Files\Wantastic","C:\ProgramData\Wantastic"
```

- **Verify:** يقول sc.exe query wantasticd إن الخدمة غير موجودة.

## 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 macOS](https://wantastic.app/ar/docs/install-macos): Install wantasticd on a Mac (Apple silicon or Intel) in 2 minutes: one Terminal command, scan a QR code, click Claim Device.
- [Install on Windows](https://wantastic.app/ar/docs/install-windows): Install wantasticd on Windows 10/11 and Windows Server: open PowerShell as Administrator, paste one line, approve the device in your browser.
- [Installer errors (install.sh and install.ps1)](https://wantastic.app/ar/docs/errors-installer): Every message the Wantastic installers print when they stop, what it means and the easiest fix.
- [Update and rollback errors](https://wantastic.app/ar/docs/errors-update): Fix self-update failures, read the update log and roll back to the previous binary.
