-
Notifications
You must be signed in to change notification settings - Fork 625
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
[BUG] WireGuard installation fails on Raspberry Pi 2 #920
Comments
Can I see the output of these commands?
|
Kernel headers are missing ... this error is usually related with that. |
Hi, having the same issue. I have the same errors as @acarl005. @orazioedoardo I am getting these outputs from the commands you mentioned:
|
I'm having the exact same issues on a Raspberry Pi 4. Complete fresh install of the latest Raspbian Lite, just enabled ssh, installed updates and ran the pivpn script (Method 1, selected all default options like WireGuard/DHCP/external IP/...). raspberrypi-kernel-headers, wireguard-dkms, ... is installed. It all comes down to the kernel module and as a result of that the interface not being available:
|
Yep, same here. Fresh install, enabled SSH, installed noip2 and set DDNS name in the pivpn script rather than public ip. |
I just tried to update the kernel with
Unfortunately the recommended command just brings you back to the same testing kernel: |
Hey, I was looking through a thread on /r/pihole about wireguard, and in the troubleshooting section it mentioned the issue we are having with missing module. Link The command he runs is EDIT: I'm trying this right now. |
That doesn't work, but we might be lucky by using the commit hash of the correct commit.
The commits can be found here, still figuring out how far back to go... |
@alexschomb @metriics Since all packages seem to be installed I think the issue reduces to wireguard-dkms not actually compiling the kernel module. As a workaround we could tell dkms to build and install the module:
I'm not sure whether dkms will register a new wireguard module when the wireguard-dkms package is upgraded, so hold on, I'm trying to reproduce with a clean install to make sure it's not an issue with wireguard-dkms version 0.0.20200121-2 |
Can confirm that this definitely works on my system! Thank you 👍 |
Stable kernel from |
Nope. I was using the following kernel (I was in the middle of downgrading step by step): I'll try to confirm this works with a fresh system and the newest "stable" kernel. By the way, there is a minor bug I noticed. When the interface is not available, but a client was added to PiVPN (that never was connected to it before) the following output is printed:
|
4.19.93 is indeed the kernel from the official repository.
Makes sense since the script runs |
Can confirm that worked for me as well. After building and installing I reran the PiVPN install script and rebooted, seems everything is working. Due to a router issue I can't portforward for now so I can't say for sure if it is functioning but the module shows up and I am getting no interface errors. The module shows up now as well after running the find command mentioned earlier: |
I can now confirm that this definitely fixes the issue. I did a complete clean install of latest Raspbian, did Now, how to fix this bug for everyone so that no workaround is required? (Meaning: Who should be informed? Authors of wireguard-dkms?) |
@alexschomb Just tried to install wireguard on a fully updated Debian. I can confirm that wirguard-dkms 0.0.20200121-2 does not compile the module, in fact someone reported this in the bug tracker: link 1, link 2. Wait for wireguard-dkms version 0.0.20200121-3. |
This worked for me as well! Thanks for your help y'all. |
This fix doesn't seem to be working for me. I get this when I try the commands:
|
@jameshope87 |
It gave the same kind of thing as the previous poster. I noticed that I am still running stretch, with kernel 4.19.66-v7+ So I am updating that, and I will try again and report back. |
I've got the same error as @acarl005 and the workaround from @orazioedoardo throws
Afterwards I run
And now I'm able to connect to my vpn!
|
@danielk117 Do you still have the affected version 0.0.20200121-2? By the way I noticed a bug in pivpn/scripts/wireguard/clientSTAT.sh Line 35 in b12996d
|
@orazioedoardo No I've got version 0.0.20200121-3, but the same errors described here. |
First install of PiVPN/WireGuard on this Pi? |
Yes! |
Not sure what's the problem then. When version 0.0.20200121-3 came out I tried PiVPN on a clean install and had no error. Perhaps on your side DKMS had a module loaded, but for a different kernel (maybe a new kernel and you just had to reboot). |
It was nearly a clean raspbian install and I rebooted a couple of times (mutiple installs and repairs of PiVPN, because I tought I did something wrong). |
Had the same issue on an installation which was already working for a few weeks. For me,
helped. It reinstalled versions 1.20200811-1 I think the issue started after unattended-upgrades did updates on |
This also helped me. |
This worked for me, the comment to just add, build, install did not, I needed to uninstall and remove first. I never tried the last post commands as I never made it that far down in this post until after this successfully created the wg0 network interface. Thank you guys! |
@gtmartin69 yes, the steps mentioned works |
Steps mentioned do not work for me. Errors at every step past source (see below), running latest Raspbian as of today, all updates installed too. dkms uninstall wireguard/$PACKAGE_VERSION dkms remove wireguard/$PACKAGE_VERSION dkms add wireguard/$PACKAGE_VERSION dkms build wireguard/$PACKAGE_VERSION dkms install wireguard/$PACKAGE_VERSION |
Update - |
This is great and solved my problem where pivpn broke after a recent Raspberry OS upgrade. Only minor change is that instead of 'dkms remove wireguard/$PACKAGE_VERSION' you need to add the --all option, otherwise it will complain for 'error! invalid number of parameters passed.' |
Does anyone know what causes this, so this won't happen again? I only installed PiVPN last month, and it gave me the interface bug today. |
Same issue here... |
According to my own experience most issues start with broken upgrades of kernel. This article here helped me most of the times: |
In raising this issue, I confirm the following:
Describe the bug
My VPN isn't functioning because WireShark was unable to be started.
To Reproduce
pivpn
using the recommended source athttps://install.pivpn.dev
.Expected behavior
For the VPN to be correctly functioning and routing traffic.
Actual behavior
Attempting to connect to the VPN from another computer results in no successful network traffic. WireGuard is not able to start on my Pi.
Debug Commands
$ lsmod | grep wire
Desktop (please complete the following information):
If there's any other information I can provide, please let me know~!
The text was updated successfully, but these errors were encountered: