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

OutlineCLI: Failed to create tun device #148

Open
TyT-NICK opened this issue Dec 27, 2023 · 5 comments
Open

OutlineCLI: Failed to create tun device #148

TyT-NICK opened this issue Dec 27, 2023 · 5 comments
Assignees
Labels
question Further information is requested tools

Comments

@TyT-NICK
Copy link

Full error: failed to create tun device: failed to create TUN/TAP device: ioctl: device or resource busy

The issue occurs after stopping and starting the service again. I guess that it happens because of incorrect service stopping (just closing the terminal) but I didn't find any info about a correct way.

@Dimonluck
Copy link

Same problem

@jyyi1
Copy link
Contributor

jyyi1 commented Jan 8, 2024

Hi @TyT-NICK , thanks for submitting the issue. Please use Ctrl+C to stop OutlineCLI properly, so that Outline CLI will be able to clean up the resources. Otherwise, a restart of the system would resolve the issue as well.

@jyyi1 jyyi1 changed the title Outline-cli: Failed to create tun device OutlineCLI: Failed to create tun device Jan 8, 2024
@daniellacosse daniellacosse added the question Further information is requested label Jan 8, 2024
@jyyi1 jyyi1 self-assigned this Jan 8, 2024
@Dimonluck
Copy link

Dimonluck commented Jan 9, 2024

Same problem

Hi @TyT-NICK , thanks for submitting the issue. Please use Ctrl+C to stop OutlineCLI properly, so that Outline CLI will be able to clean up the resources. Otherwise, a restart of the system would resolve the issue as well.

Thank you. It's work solution for me.

My system information:
uname -a
Linux fedora 6.6.9-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 1 20:05:54 UTC 2024 x86_64 GNU/Linux

@TyT-NICK
Copy link
Author

Ctrl+C doesn't help for me. Terminal just sticks and the only way I found to close it after is to close the window. Restarting helps but it's really messy since I have to reconnect many times a day.

@jyyi1
Copy link
Contributor

jyyi1 commented Jan 16, 2024

@TyT-NICK Hmm, that's weird because OutlineCLI will listen for three signals: https://github.com/Jigsaw-Code/outline-sdk/blob/main/x/examples/outline-cli/app_linux.go#L77-L79 and terminate properly. Did you see the string "received Interrupt, terminating..." print to the screen? If not, you may try other ways to send any one of these three signals to the app (such as kill).

@fortuna fortuna added the tools label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested tools
Projects
None yet
Development

No branches or pull requests

5 participants