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

FATA Serious error reading from tun device: read /dev/net/tun: not pollable #2

Open
Giancarlo1974 opened this issue May 5, 2022 · 2 comments

Comments

@Giancarlo1974
Copy link

I tested your mesh VPN on Oracle Cloud Free Tier using Oracle Linux 8

i got this error:
FATA Serious error reading from tun device: read /dev/net/tun: not pollable

i read that using unix.Open instead of os.OpenFile and setting the fd to NonBlocking seems to solve the problem

Can you fix ?
please

@samvrlewis
Copy link
Owner

I'd be happy to take a PR to fix this, I think the right place to change would be here:

meshboi/tun.go

Line 33 in c5f221b

tunFile, err := os.OpenFile("/dev/net/tun", os.O_RDWR, 0)
. Let me know how it goes.

@Giancarlo1974
Copy link
Author

yes i think so too
But I don't know in which line to put this part of the fix:
setting the fd to NonBlocking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants