-
Notifications
You must be signed in to change notification settings - Fork 9
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
No ack received #28
Comments
Confirmed on Ubuntu 20.04.4 LTS x86_64 with kernel 5.4.0-1089-azure(on GitHub Codespaces).
|
It seems like because of |
|
Hey @xtexChooser, what happens on |
Hey @gluxon The implementation can be found at https://github.com/xtexChooser/peerd/blob/main/src/tunnel/wireguard/linux.rs. Thanks. |
Mismatched PathsIt looks like this command applies
But the binary ran is
The
|
About the mismatched path, I have added the cap to target file. And, about the output syntax, idk
If I give the cap, the interface can be added successfully but still |
And the tests are also failed on my computer. |
It looks like the test binaries haven't been built by the time Running the tests require a bit of non-intuitive sequencing. In the output above, If the tests do run after that, I think you're setting the |
Ops, the test works. |
Apologies that it took me a bit to understand your bug report. I see that we get the
And the
But the error reported is |
@xtexChooser Does this block you from your work? I think improving the error message requires upgrading neli, which is something in progress. |
Not in a hurry, I have many other things I can do and it's not a big feature either, so I can just wait for the neli update. |
And I found something strange, the tests fails after a patch: diff --git a/tests/set_and_get.rs b/tests/set_and_get.rs
index a2dd937..318a32e 100644
--- a/tests/set_and_get.rs
+++ b/tests/set_and_get.rs
@@ -7,7 +7,7 @@ use {
#[cfg(target_os = "linux")]
fn get_random_ifname() -> String {
- format!("wgtest{}", rand::random::<u16>())
+ format!("test_test")
}
#[cfg(target_os = "linux")] When I keep the following random number, it works.
|
The test setup creates and deletes WireGuard devices through |
oh |
Yeah, the error is very confusing. 😞 Adding a test to make sure this gets revisited. 33d2db3 |
Related to gluxon#28 which introduced this test. Since at least 0.5.3 the ENODEV is propagated, causing this test to fail: ---- missing_device_returns_sensible_error stdout ---- thread 'missing_device_returns_sensible_error' panicked at 'assertion failed: `(left == right)` left: `"Error response received from netlink: Unknown error -19 (os error -19)"`, right: `"No ack received"`', tests/enodev.rs:30:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Related to gluxon#28 which introduced this test. Since at least 0.5.3 the ENODEV is propagated, causing this test to fail: ---- missing_device_returns_sensible_error stdout ---- thread 'missing_device_returns_sensible_error' panicked at 'assertion failed: `(left == right)` left: `"Error response received from netlink: Unknown error -19 (os error -19)"`, right: `"No ack received"`', tests/enodev.rs:30:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Related to #28 which introduced this test. Since at least 0.5.3 the ENODEV is propagated, causing this test to fail: ---- missing_device_returns_sensible_error stdout ---- thread 'missing_device_returns_sensible_error' panicked at 'assertion failed: `(left == right)` left: `"Error response received from netlink: Unknown error -19 (os error -19)"`, right: `"No ack received"`', tests/enodev.rs:30:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The device has been added successfully,
When calling
set_device
without handling that error, the device could not get updated.Here is a strace:
Tested on openSUSE Tumbleweed with kernel 5.19.7-1-default.
The text was updated successfully, but these errors were encountered: