---
title: "Erreurs macOS et Windows | Wantastic Docs"
description: "Erreurs launchd, Gatekeeper, icône de la barre système, sc.exe et service Windows, avec les solutions les plus simples."
url: "https://wantastic.app/fr/docs/errors-macos-windows"
category: "Troubleshooting"
reading_time: "6 min"
---

# Erreurs macOS et Windows

Erreurs launchd, Gatekeeper, icône de la barre système, sc.exe et service Windows, avec les solutions les plus simples.

> **Outcome:** Le service wantasticd s’exécute au démarrage et wantasticd status affiche Connected.

## Before you start

- sudo sous macOS, ou PowerShell en tant qu’administrateur sous Windows.

## Avant de commencer

- macOS : installez et revendiquez avec l’installation rapide. Les journaux se trouvent dans /Library/Logs/Wantastic/wantasticd.log.
- Windows : installez avec un jeton. Le QR code de revendication n’est pas affiché sous Windows.
- Windows n’a pas de fichier journal. Exécutez le service une fois au premier plan pour voir l’erreur.

### 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

Ouvrez PowerShell en tant qu’administrateur (Démarrer → tapez powershell → Run as administrator → Yes), collez cette ligne, puis approuvez l’appareil dans votre navigateur.

PowerShell (Admin):

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

## Points à vérifier

### macOS

Terminal:

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

### Windows

PowerShell (Admin):

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

*Échec : fenêtre PowerShell normale: La fenêtre n’a pas les droits élevés, le programme d’installation s’arrête.*

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

*Corrigé : Administrator: Windows PowerShell: La même ligne dans une fenêtre ouverte avec Run as administrator, puis approbation dans le navigateur.*

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

## Tableau récapitulatif

| Erreur | Solution la plus simple |
| --- | --- |
| Error: on macOS the installer needs root. | Placez sudo devant sh. |
| Interface name must be utun[0-9]* | Supprimez WANTASTIC_TUN_NAME. |
| Killed by Gatekeeper / "cannot be opened" | Retirez la quarantaine et signez. |
| Icône de la barre système : "Status: Daemon not running" | Redémarrez le service. |
| Failed to <action> (sc.exe exit code N). | Fermez services.msc ou redémarrez. |
| 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. | Ouvrez PowerShell avec Run as administrator (Exécuter en tant qu’administrateur). |
| Error creating interface: … (Wintun) | Exécutez en tant qu’administrateur ; autorisez dans l’antivirus. |

## Verify the result

- wantasticd status affiche Connected.
- L’appareil est Online dans Devices.

## Common issues

### L’installation sur macOS s’arrête immédiatement.

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

- **Where:** install.sh (macOS)
- **Likely cause:** Le programme d’installation n’a pas été lancé avec sudo.
- **Fix:** Lancez l’installation rapide avec sudo devant sh, puis revendiquez l’appareil.

1. Exécutez la commande.
2. Ouvrez la Claim URL, connectez-vous et cliquez sur Claim Device.
3. Après "Device claimed", appuyez sur Ctrl+C.
4. Exécutez : 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 affiche Connected.

### macOS : revendiqué, mais l’appareil reste Offline.

- **Where:** wantasticd genkey (macOS)
- **Likely cause:** genkey a été exécuté sans sudo, donc la configuration a été enregistrée dans ~/Library/Application Support/Wantastic, que le service ne lit pas.
- **Fix:** Relancez genkey avec sudo, revendiquez à nouveau, puis redémarrez le service.

Terminal:

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

- **Verify:** wantasticd status affiche Connected.

### macOS refuse un nom de TUN personnalisé.

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

- **Where:** Journaux wantasticd (macOS)
- **Likely cause:** WANTASTIC_TUN_NAME est défini sur un nom qui ne commence pas par utun.
- **Fix:** Supprimez ce paramètre. macOS choisit lui-même un nom utun.

Terminal:

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

- **Verify:** wantasticd status affiche Mode TUN (utunN).

### macOS tue le binaire ou indique qu’il ne peut pas être ouvert.

- **Where:** Gatekeeper macOS
- **Likely cause:** Le fichier porte l’attribut de quarantaine ou a une signature invalide après une copie manuelle.
- **Fix:** Retirez l’attribut de quarantaine et signez le binaire.

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 s’exécute.

### Un appareil est listé mais injoignable depuis un Mac.

- **Where:** macOS
- **Likely cause:** Le tunnel est coupé, ou la route ne passe pas par utun.
- **Fix:** Redémarrez le service, puis vérifiez la route.

Terminal:

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

- **Verify:** route -n get affiche interface: utunN.

### L’icône de la barre système indique que le démon ne tourne pas.

```
Status: Daemon not running
```

- **Where:** Application de la barre des menus macOS
- **Likely cause:** Le service s’est arrêté ou a planté.
- **Fix:** Redémarrez le service et consultez le journal.

Terminal:

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

- **Verify:** L’icône de la barre système affiche Connected.

### Le pare-feu macOS bloque le P2P.

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

- **Where:** Journaux wantasticd (macOS)
- **Likely cause:** Le pare-feu macOS a refusé la règle. "Could not allow …" est similaire.
- **Fix:** Dans System Settings → Network → Firewall → Options, autorisez les connexions entrantes pour wantasticd.

- **Verify:** wantasticd peers affiche des chemins directs.

### Le nom du Wi-Fi apparaît masqué.

- **Where:** Console / informations de l’appareil (macOS)
- **Likely cause:** Les services de localisation sont désactivés pour wantasticd.
- **Fix:** Activez les services de localisation pour wantasticd dans System Settings → Privacy & Security.

- **Verify:** Le nom du Wi-Fi est visible.

### Ancien emplacement du journal.

- **Where:** macOS
- **Likely cause:** Avant la version 1.0.50, le journal se trouvait dans /var/log/wantasticd.log.
- **Fix:** Utilisez /Library/Logs/Wantastic/wantasticd.log sur les versions actuelles.

- **Verify:** Le fichier journal contient des lignes récentes.

### L’étape sc.exe échoue pendant l’installation.

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

- **Where:** install.ps1
- **Likely cause:** Généralement le code de sortie 1072 : Services (services.msc) ou un autre outil maintient le service ouvert.
- **Fix:** Fermez Services, le Gestionnaire des tâches et l’Observateur d’événements, ou redémarrez. Relancez ensuite install.ps1.

PowerShell (Admin):

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

- **Verify:** Le programme d’installation se termine.

### Le service Windows ne tourne pas après l’installation.

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

- **Where:** install.ps1
- **Likely cause:** La connexion a échoué, la configuration n’est donc qu’une configuration provisoire.
- **Fix:** Connectez-vous avec un nouveau jeton, puis redémarrez le service.

PowerShell (Admin):

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

- **Verify:** sc.exe query wantasticd affiche RUNNING.

### Le service ne démarre pas au démarrage du système.

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

- **Where:** install.ps1
- **Likely cause:** Le paramètre a échoué ou une stratégie l’a modifié.
- **Fix:** Configurez manuellement le démarrage automatique.

PowerShell (Admin):

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

- **Verify:** sc.exe qc wantasticd affiche AUTO_START.

### Service absent après l’installation.

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

- **Where:** install.ps1
- **Likely cause:** PowerShell n’a pas été lancé en tant qu’administrateur, ou une stratégie l’a bloqué.
- **Fix:** Relancez install.ps1 dans PowerShell en tant qu’administrateur.

PowerShell (Admin):

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

- **Verify:** sc.exe query wantasticd fonctionne.

### La connexion échoue pendant l’installation sous Windows.

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

- **Where:** install.ps1
- **Likely cause:** L’approbation dans le navigateur n’a pas été faite à temps ou a été refusée, ou un jeton a été rejeté.
- **Fix:** Reconnectez-vous et approuvez l’appareil, puis démarrez le service.

PowerShell (Admin):

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

- **Verify:** wantasticd status affiche Connected.

### Le programme d’installation s’arrête immédiatement.

```
Administrator privileges are required.
```

- **Where:** install.ps1
- **Likely cause:** PowerShell n’a pas été ouvert en tant qu’administrateur.
- **Fix:** Cliquez sur Démarrer, tapez powershell, cliquez sur Run as administrator, puis sur Yes, et recollez la ligne.

PowerShell (Admin):

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

- **Verify:** Le programme d’installation se termine.

### Erreurs du gestionnaire de services Windows.

```
windows service failed: …
```

- **Where:** Observateur d’événements / exécution au premier plan
- **Likely cause:** Le wrapper de service a échoué. "failed to determine if interactive session" est lié.
- **Fix:** Exécutez au premier plan avec -v pour voir la vraie erreur, puis réinstallez en tant qu’administrateur.

- **Verify:** Le service est en cours d’exécution.

### Impossible de créer l’adaptateur Wintun.

```
Error creating interface: …
```

- **Where:** wantasticd (Windows)
- **Likely cause:** PowerShell n’est pas élevé, ou l’antivirus bloque le pilote Wintun.
- **Fix:** Exécutez en tant qu’administrateur et autorisez C:\Program Files\Wantastic dans votre logiciel de sécurité.

- **Verify:** wantasticd status affiche Mode TUN (wantastic0).

### Aucun QR code ni invite de connexion visible sous Windows.

- **Where:** install.ps1 · wantasticd login (Windows)
- **Likely cause:** Les anciennes versions de wantasticd sous Windows ne peuvent pas écrire dans PowerShell.
- **Fix:** Appuyez sur Ctrl+C, créez un jeton dans Account → Secrets et installez avec.

PowerShell (Admin):

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

- **Verify:** Le programme d’installation indique que le service est en cours d’exécution.

### Désinstallation sous Windows.

- **Where:** Windows
- **Likely cause:** Il n’existe pas de script de désinstallation.
- **Fix:** Arrêtez et supprimez le service, puis supprimez les dossiers.

PowerShell (Admin):

```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 indique que le service n’existe pas.

## Continue with

- [Troubleshooting: start here](https://wantastic.app/fr/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/fr/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/fr/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/fr/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/fr/docs/errors-update): Fix self-update failures, read the update log and roll back to the previous binary.
