Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue Running Examples#214

Discussion options

Hey all! I love this project so great work. I am getting started with one of the examples and hitting this error when I run it. Any ideas?

I am trying this on a Thinkpad running ubuntu.

~/ethercrab$ RUST_LOG=debug cargo run --example discover --release -- eth0    Finished release [optimized] target(s) in 0.05s     Running `target/release/examples/discover eth0`[2024-05-29T22:40:32Z INFO  discover] Discovering EtherCAT devices on eth0...thread 'main' panicked at examples/discover.rs:42:52:spawn TX/RX task: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }stack backtrace:   0: rust_begin_unwind             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5   1: core::panicking::panic_fmt             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14   2: core::result::unwrap_failed             at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5   3: async_io::driver::block_on   4: discover::main
You must be logged in to vote

I'd guess it's pretty much what the error message says: "Operation not permitted."

The stack uses raw sockets, which require cap_net_raw and cap_net_admin (iirc). Try running

setcap cap_net_raw,cap_net_admin=eip target/release/examples/discover

as root (e.g. using sudo) and please try again

Replies: 1 comment 1 reply

Comment options

I'd guess it's pretty much what the error message says: "Operation not permitted."

The stack uses raw sockets, which require cap_net_raw and cap_net_admin (iirc). Try running

setcap cap_net_raw,cap_net_admin=eip target/release/examples/discover

as root (e.g. using sudo) and please try again

You must be logged in to vote
1 reply
@keenanjohnson
Comment options

Thank you! I'll try that and report back.

Answer selected byjamwaffles
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@keenanjohnson@dickenhobelix

[8]ページ先頭

©2009-2025 Movatter.jp