w0rng / amnezia-wg-easy

The easiest way to run WireGuard VPN + Web-based Admin UI.
Other
124 stars 16 forks source link

Getting error running on Centos7, but normal wg-easy works well. #3

Open PenzinAlexander opened 2 months ago

PenzinAlexander commented 2 months ago

Trying to run this with docker-compose. Getting the error. But normal wg-easy works fine. Any workaround?

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:449:20)
    at async cronJobEveryMinute (/app/lib/Server.js:69:3)
PenzinAlexander commented 2 months 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
w0rng commented 2 months ago

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.

oglodyte commented 4 weeks ago

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)