Skip to content
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

'error flushing netlink socket (Permission Denied)' when trying to run iroh on android via termux #2324

Closed
expenses opened this issue May 24, 2024 · 4 comments

Comments

@expenses
Copy link
Contributor

I tried to run the latest (v0.16.2) aarch64-linux build of iroh on android via termux. As it's not a listed package, I had to manually download the binary (curl -fsSL https://sh.iroh.computer/install.sh | sh didn't work due to a different /bin location). I also tried running it in a proot via nix-on-droid. Both times when I run iroh start I get the following error:

2024-05-23T08:15:39.491516Z WARN magic_ep{me=amvpzvkd2md3pbvu}:magicsock{me=amvpzvkd2md3pbvu}:rtnetlink.conn: netlink_proto::connection: error flushing netlink socket: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

I've attached the full log. Perhaps this is just a case of iroh trying to read/write to a directory in the linux filesystem hierarchy that's not accessible in termux? Even if running iroh on termux is impossible for whatever reason it'd be good to know why and have a less vague error message.

log.zip

@expenses
Copy link
Contributor Author

expenses commented Jun 1, 2024

Oh, it looks like you can't get the rooting table (using cli tools) any more: https://www.reddit.com/r/termux/comments/13sxh0l/why_ip_addr_or_other_ip_command_not_working_any/.

@dignifiedquire
Copy link
Contributor

yes, newer android is very restrictive, which is why reading network interfaces is quite..complex

shellrow/netdev#22

I suspect under termux the detection of it being a problematic android device fails (I don't know if this can be fixed) which is why you are seeing the issue.

@expenses
Copy link
Contributor Author

expenses commented Jun 1, 2024

Ah nice!

I suspect under termux the detection of it being a problematic android device fails (I don't know if this can be fixed) which is why you are seeing the issue.

Yes that's probably it. I'll try a binary actually compiled for android (as opposed to generic linux).

@ramfox ramfox moved this to 📋 Backlog in iroh Jun 6, 2024
@dignifiedquire
Copy link
Contributor

Closing as it is unclear if this is sth we can do on the iroh side for this

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in iroh Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants