Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PenzinAlexander opened this issue Sep 7, 2024 · 3 comments

Comments

@PenzinAlexander
Copy link

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
Copy link
Author

[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
Copy link
Owner

w0rng commented Sep 9, 2024

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants