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

iroh-net: dns resolver issue: "No such file or directory" error on iOS, when running on real hardware #1436

Closed
b5 opened this issue Aug 31, 2023 · 0 comments · Fixed by #1438
Labels
bug Something isn't working c-iroh-net

Comments

@b5
Copy link
Member

b5 commented Aug 31, 2023

iroh works fine in the simulator with the latest stuff, but crashes on an actual iPhone for any iroh-ffi build that references a commit after 93147ac on main

The error I see:

thread 'main-runtime' panicked at 'unable to create DNS resolver: ResolveError { kind: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) }', /Users/b5/.cargo/git/checkouts/iroh-6b78e5b19f41ff57/33cf40b/iroh-net/src/dns.rs:5:50

I've stepped through the commits, and have confirmed the issue is introduced in 93147ac, the prior commit is fine.

@github-project-automation github-project-automation bot moved this to 📋 Backlog - unassigned issues in iroh Aug 31, 2023
@b5 b5 changed the title "No such file or directory" error on iOS "No such file or directory" error on iOS, when running on real hardware Aug 31, 2023
@dignifiedquire dignifiedquire changed the title "No such file or directory" error on iOS, when running on real hardware iroh-net: dns resolver issue: "No such file or directory" error on iOS, when running on real hardware Aug 31, 2023
@dignifiedquire dignifiedquire added c-iroh-net bug Something isn't working labels Aug 31, 2023
dignifiedquire added a commit that referenced this issue Aug 31, 2023
On at least iOS the resolve.conf is not available, so need to fallback to a default configuration in that case.

Based on the tested approach in DeltaChat

Fixes #1436
github-merge-queue bot pushed a commit that referenced this issue Aug 31, 2023
On at least iOS the resolve.conf is not available, so need to fallback
to a default configuration in that case.

Based on the tested approach in DeltaChat

Fixes #1436
@github-project-automation github-project-automation bot moved this from 📋 Backlog - unassigned issues to ✅ Done in iroh Aug 31, 2023
@b5 b5 added this to the v0.6.0-alpha2 milestone Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c-iroh-net
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants