Not able to restart a service related to wiregaurd

Hello, I recently installed Wiregaurd on my server but it looks like I have a weird problem of this particular service not being able to startup… I have tried manually restarting it but it didn’t work. Initially it looked like the 9060 (i think) port that wiregaurd requires was not accessible from outside, which i configured in firewall so i can access the port, but now I have a totally unrelated error happening… can someone please help debug this problem? Thank you

Error: "500" Internal Server Error

Action: "PUT" /yunohost/api/services/wg-quick@wg0/start

Error message:

Could not start the service ‘wg-quick@wg0’
Recent service logs:-- Logs begin at Wed 2021-05-26 22:12:59 CEST, end at Wed 2021-05-26 22:20:49 CEST. – May 26 22:20:06 systemd[1]: Starting WireGuard via wg-quick(8) for wg0… May 26 22:20:06 wg-quick[2425]: [#] ip link add wg0 type wireguard May 26 22:20:06 wg-quick[2425]: RTNETLINK answers: Operation not supported May 26 22:20:06 wg-quick[2425]: Unable to access interface: Protocol not supported May 26 22:20:06 wg-quick[2425]: [#] ip link delete dev wg0 May 26 22:20:06 wg-quick[2425]: Cannot find device “wg0” May 26 22:20:06 systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE May 26 22:20:06 systemd[1]: wg-quick@wg0.service: Failed with result ‘exit-code’. May 26 22:20:06 systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0. May 26 22:20:49 systemd[1]: Starting WireGuard via wg-quick(8) for wg0… May 26 22:20:49 wg-quick[2449]: [#] ip link add wg0 type wireguard May 26 22:20:49 wg-quick[2449]: RTNETLINK answers: Operation not supported May 26 22:20:49 wg-quick[2449]: Unable to access interface: Protocol not supported May 26 22:20:49 wg-quick[2449]: [#] ip link delete dev wg0 May 26 22:20:49 wg-quick[2449]: Cannot find device “wg0” May 26 22:20:49 systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE May 26 22:20:49 systemd[1]: wg-quick@wg0.service: Failed with result ‘exit-code’. May 26 22:20:49 systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.

While processing the action the server said:

Could not execute the command ‘systemctl start wg-quick@wg0’

Hello Buoyantair !

Did you follow the installation explanation here : wireguard_ynh/README.md at master · YunoHost-Apps/wireguard_ynh · GitHub ?

It seems that this app doesn’t install everything by itself.

– Cyril

1 Like

I found some information about this error :

It seems to be a kernel issue …

– Cyril

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.