Open PenzinAlexander opened 1 month ago
[root@ wireguard]# lsmod | grep tun
tun 40260 0
ip6_udp_tunnel 12755 1 wireguard
udp_tunnel 14423 1 wireguard
Hypervisor vendor: KVM
Virtualization type: full
The base Docker image used is https://hub.docker.com/r/amneziavpn/amnezia-wg.
The issue might be related to CentOS support in this project. It's difficult to provide a more detailed answer without the full stack trace.
Same issue with Ubuntu 20.04.6 host. Also working wg-easy:
2024-10-25T05:54:06.253Z Server Listening on http://0.0.0.0:51821 2024-10-25T05:54:06.259Z WireGuard Loading configuration... 2024-10-25T05:54:06.263Z WireGuard Configuration loaded. 2024-10-25T05:54:06.263Z WireGuard Config saving... 2024-10-25T05:54:06.265Z WireGuard Config saved. $ wg-quick down wg0 $ wg-quick up wg0 /app/lib/WireGuard.js:95 throw new Error('WireGuard exited with the error: Cannot find device "wg0"\nThis usually means that your host\'s kernel does not support WireGuard!'); ^ Error: WireGuard exited with the error: Cannot find device "wg0" This usually means that your host's kernel does not support WireGuard! at /app/lib/WireGuard.js:95:17 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async WireGuard.getConfig (/app/lib/WireGuard.js:93:7) at async WireGuard.cronJobEveryMinute (/app/lib/WireGuard.js:440:20) at async cronJobEveryMinute (/app/lib/Server.js:69:3)
Trying to run this with docker-compose. Getting the error. But normal wg-easy works fine. Any workaround?