التوثيق/حل المشكلات6 دقائق

أخطاء macOS وWindows

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

ما ستحصل عليه في النهاية

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

قبل أن تبدأ

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

قبل أن تبدأ

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

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

Terminalbash
wantasticd status
tail -n 50 /Library/Logs/Wantastic/wantasticd.log
sudo launchctl kickstart -k system/com.wantastic.wantasticd
فشل: نافذة PowerShell عادية
PS C:\Users\you> irm https://get.wantastic.app/install.ps1 | iex
Administrator privileges are required.1
Right-click PowerShell, choose 'Run as administrator', and run again:
  1. 1لم تُفتح كمسؤول
النافذة لا تملك صلاحيات المسؤول، لذلك يتوقف المثبّت.
تم الإصلاح: Administrator: Windows PowerShell
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.1
  1. 1نجاح
السطر نفسه في نافذة مفتوحة عبر Run as administrator، ثم الموافقة في المتصفح.

جدول سريع

الخطأأسهل حل
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)شغّل كمسؤول؛ واسمح به في برنامج مكافحة الفيروسات.

تحقق من النتيجة

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

الأخطاء والحلول

يتوقف التثبيت على macOS فورًا.Error: on macOS the installer needs root.install.sh (macOS)
لماذا يحدث

لم يُشغَّل المثبّت باستخدام sudo.

الحل

شغّل التثبيت السريع مع وضع sudo قبل sh، ثم طالب بالجهاز.

  1. 1شغّل الأمر.
  2. 2افتح Claim URL، وسجّل الدخول، وانقر "Claim Device".
  3. 3بعد ظهور "Device claimed"، اضغط Ctrl+C.
  4. 4شغّل: sudo launchctl kickstart -k system/com.wantastic.wantasticd
Terminalbash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
تحقق: يعرض wantasticd status القيمة Connected.
macOS: تمت المطالبة، لكن الجهاز يبقى "Offline".wantasticd genkey (macOS)
لماذا يحدث

شُغّل genkey بدون sudo، فحُفظت الإعدادات في ~/Library/Application Support/Wantastic، والخدمة لا تقرأ منه.

الحل

شغّل genkey مجددًا باستخدام sudo، وطالب بالجهاز مجددًا، ثم أعد تشغيل الخدمة.

Terminalbash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo launchctl kickstart -k system/com.wantastic.wantasticd
تحقق: يعرض wantasticd status القيمة Connected.
يرفض macOS اسم TUN مخصصًا.Interface name must be utun[0-9]*سجلات wantasticd (macOS)
لماذا يحدث

WANTASTIC_TUN_NAME مضبوط على اسم لا يبدأ بـ utun.

الحل

أزل هذا الإعداد. يختار macOS اسم utun تلقائيًا.

Terminalbash
unset WANTASTIC_TUN_NAME
sudo launchctl kickstart -k system/com.wantastic.wantasticd
تحقق: يعرض wantasticd status القيمة Mode TUN (utunN).
يُنهي macOS الملف التنفيذي أو يقول إنه لا يمكن فتحه.macOS Gatekeeper
لماذا يحدث

يحمل الملف علامة العزل (quarantine) أو توقيعًا غير صالح بعد نسخه يدويًا.

الحل

أزل علامة العزل ووقّع الملف التنفيذي.

Terminalbash
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
تحقق: يعمل wantasticd version.
الجهاز مُدرج لكن يتعذّر الوصول إليه من جهاز Mac.macOS
لماذا يحدث

النفق متوقف، أو أن المسار لا يمر عبر utun.

الحل

أعد تشغيل الخدمة، ثم تحقّق من المسار.

Terminalbash
sudo launchctl kickstart -k system/com.wantastic.wantasticd
wantasticd status
route -n get <peer-ip>
تحقق: يعرض route -n get القيمة interface: utunN.
تقول أيقونة شريط النظام إن الخدمة لا تعمل.Status: Daemon not runningتطبيق شريط القوائم في macOS
لماذا يحدث

توقفت الخدمة أو تعطلت.

الحل

أعد تشغيل الخدمة وتحقّق من السجل.

Terminalbash
sudo launchctl kickstart -k system/com.wantastic.wantasticd
tail -n 50 /Library/Logs/Wantastic/wantasticd.log
تحقق: تعرض أيقونة شريط النظام Connected.
يحظر جدار حماية macOS اتصالات P2P.[P2P] Could not add … to the application firewallسجلات wantasticd (macOS)
لماذا يحدث

رفض جدار حماية macOS القاعدة. الرسالة "Could not allow …" مشابهة.

الحل

في System Settings → Network → Firewall → Options، اسمح بالاتصالات الواردة لـ wantasticd.

تحقق: يعرض wantasticd peers مسارات مباشرة.
يظهر اسم شبكة Wi-Fi محجوبًا.الكونسول / معلومات الجهاز (macOS)
لماذا يحدث

خدمات الموقع (Location Services) متوقفة لـ wantasticd.

الحل

فعّل خدمات الموقع لـ wantasticd في System Settings → Privacy & Security.

تحقق: اسم شبكة Wi-Fi ظاهر.
موقع السجل القديم.macOS
لماذا يحدث

قبل الإصدار 1.0.50، كان السجل في /var/log/wantasticd.log.

الحل

استخدم /Library/Logs/Wantastic/wantasticd.log في الإصدارات الحالية.

تحقق: يحتوي ملف السجل على أسطر حديثة.
تفشل خطوة sc.exe أثناء التثبيت.Failed to <action> (sc.exe exit code N).install.ps1
لماذا يحدث

غالبًا رمز الخروج 1072: أداة Services (services.msc) أو أداة أخرى تُبقي الخدمة مفتوحة.

الحل

أغلق Services وTask Manager وEvent Viewer، أو أعد التشغيل. ثم شغّل install.ps1 مجددًا.

PowerShell (مسؤول)powershell
irm https://get.wantastic.app/install.ps1 | iex
تحقق: يكتمل المثبّت.
خدمة Windows لا تعمل بعد التثبيت.The wantasticd service did not reach the Running state.install.ps1
لماذا يحدث

فشل تسجيل الدخول، لذا فملف الإعدادات مجرد عنصر نائب.

الحل

سجّل الدخول برمز مميز جديد، ثم أعد تشغيل الخدمة.

PowerShell (مسؤول)powershell
& "C:\Program Files\Wantastic\wantasticd.exe" login --no-connect --token <TOKEN>
Restart-Service wantasticd
تحقق: يعرض sc.exe query wantasticd الحالة RUNNING.
لا تبدأ الخدمة عند الإقلاع.The wantasticd service was not configured for automatic startup.install.ps1
لماذا يحدث

فشل الإعداد أو غيّرته سياسة ما.

الحل

اضبط البدء التلقائي يدويًا.

PowerShell (مسؤول)powershell
sc.exe config wantasticd start= auto
تحقق: يعرض sc.exe qc wantasticd القيمة AUTO_START.
الخدمة غير موجودة بعد التثبيت.The wantasticd service was not found after installation.install.ps1
لماذا يحدث

لم يُشغَّل PowerShell كمسؤول، أو حظرته سياسة ما.

الحل

شغّل install.ps1 مجددًا في PowerShell كمسؤول.

PowerShell (مسؤول)powershell
irm https://get.wantastic.app/install.ps1 | iex
تحقق: يعمل sc.exe query wantasticd.
يفشل تسجيل الدخول أثناء التثبيت على Windows.Login did not complete (exit N).install.ps1
لماذا يحدث

لم تكتمل الموافقة في المتصفح في الوقت المحدد أو رُفضت، أو رُفض رمز مميز.

الحل

سجّل الدخول مجددًا ووافق على الجهاز، ثم شغّل الخدمة.

PowerShell (مسؤول)powershell
wantasticd login --no-connect
Start-Service wantasticd
تحقق: يعرض wantasticd status القيمة Connected.
يتوقف المثبّت فورًا.Administrator privileges are required.install.ps1
لماذا يحدث

لم يُفتح PowerShell بصلاحيات Administrator.

الحل

انقر Start، واكتب powershell، وانقر Run as administrator ثم Yes، والصق السطر مجددًا.

PowerShell (مسؤول)powershell
irm https://get.wantastic.app/install.ps1 | iex
تحقق: يكتمل المثبّت.
أخطاء مدير خدمات Windows.windows service failed: …Event Viewer / التشغيل في الواجهة الأمامية
لماذا يحدث

فشل مُغلّف الخدمة. الرسالة "failed to determine if interactive session" مرتبطة بذلك.

الحل

شغّل في الواجهة الأمامية مع -v لرؤية الخطأ الحقيقي، ثم أعد التثبيت كمسؤول.

تحقق: الخدمة تعمل.
تعذّر إنشاء محوّل Wintun.Error creating interface: …wantasticd (Windows)
لماذا يحدث

PowerShell لا يعمل بصلاحيات مرتفعة، أو أن برنامج مكافحة الفيروسات يحظر برنامج تشغيل Wintun.

الحل

شغّل كمسؤول واسمح بالمجلد C:\Program Files\Wantastic في برنامج الحماية لديك.

تحقق: يعرض wantasticd status القيمة Mode TUN (wantastic0).
لا يظهر رمز QR أو طلب تسجيل الدخول على Windows.install.ps1 · wantasticd login (Windows)
لماذا يحدث

إصدارات wantasticd القديمة على Windows لا تستطيع الكتابة في PowerShell.

الحل

اضغط Ctrl+C، وأنشئ رمزًا مميزًا في Account → Secrets، وثبّت به.

PowerShell (مسؤول)powershell
& ([scriptblock]::Create((irm https://get.wantastic.app/install.ps1))) -Token <TOKEN>
تحقق: يقول المثبّت إن الخدمة تعمل.
إلغاء التثبيت على Windows.Windows
لماذا يحدث

لا يوجد سكربت لإلغاء التثبيت.

الحل

أوقف الخدمة واحذفها، ثم أزل المجلدات.

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"
تحقق: يقول sc.exe query wantasticd إن الخدمة غير موجودة.

تابع مع

ما زلت عالقاً؟

أرسل بالبريد اسم الجهاز والمنصة ونص الخطأ الحرفي. لا ترسل أبداً رموز الوصول أو المفاتيح أو كلمات المرور.

hello@wantastic.app