gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.52k stars 552 forks source link

[Bug]: Cannot create a network. #1734

Closed hkhk366 closed 1 year ago

hkhk366 commented 2 years ago

Contact Details

No response

What happened?

Cannot create a network.

OS:ubuntu 18.04 tls

I installed wireguard via the following. sudo apt-get install -y docker.io docker-compose wireguard sudo apt-get install wireguard-dkms wireguard-tools

image

The following is my DNS record. image

The following is the script I used to install.

sudo apt-get update
sudo apt-get install -y docker.io docker-compose wireguard
sudo apt-get install wireguard-dkms wireguard-tools

ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p'

wget -O docker-compose.yml https://raw.githubusercontent.com/gravitl/netmaker/master/compose/docker-compose.yml
sed -i 's/NETMAKER_BASE_DOMAIN/xxx.com/g' docker-compose.yml
sed -i 's/SERVER_PUBLIC_IP/xxx.xxx.65.227/g' docker-compose.yml
sed -i 's/YOUR_EMAIL/xxxxxxx@gmail.com/g' docker-compose.yml

wget -O /root/mosquitto.conf https://raw.githubusercontent.com/gravitl/netmaker/master/docker/mosquitto.conf

wget -q -O /root/wait.sh https://raw.githubusercontent.com/gravitl/netmaker/develop/docker/wait.sh

chmod +x wait.sh

docker-compose up -d

But I still get the following error. Would you mind to check it? Thank you.

Version

v0.16.1

What OS are you using?

Linux

Relevant log output

[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:09:59 waiting for interface...
[netmaker] 2022-11-13 18:09:59 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:09:59 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:01 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:01 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:02 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:02 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:03 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:03 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:04 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:04 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:05 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:05 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:06 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:06 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:07 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:07 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:08 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:08 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:09 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:09 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:10 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:10 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:11 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:11 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:12 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:12 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:13 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:13 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:14 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:14 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
[netmaker] 2022-11-13 18:10:15 error running command: wg-quick up /etc/netclient/config/nm-hkhk.conf
[netmaker] 2022-11-13 18:10:15 Warning: `/etc/netclient/config/nm-hkhk.conf' is world accessible
[#] ip link add nm-hkhk type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev nm-hkhk
Cannot find device "nm-hkhk"
file does not exist
[netmaker] 2022-11-13 18:10:16 hkhk failed to create network:  could not reliably create interface, please check wg installation and retry
[netmaker] 2022-11-13 18:10:16 processed request error: could not reliably create interface, please check wg installation and retry
[netmaker] 2022-11-13 18:10:29 error retrieving networks for keepalive could not find any records

Contributing guidelines

mattkasun commented 2 years ago

The logs indicate a problem with wireguard installation

afeiszli commented 1 year ago

Yeah, you need kernel WireGuard installed on the machine for this to work.