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

ngrok service start failed on macos with agent v3.9 #1

Closed
russorat opened this issue May 14, 2024 · 4 comments
Closed

ngrok service start failed on macos with agent v3.9 #1

russorat opened this issue May 14, 2024 · 4 comments
Assignees

Comments

@russorat
Copy link
Collaborator

from: inconshreveable/ngrok#950

I'm using ngrok with version 3.9.0 on MacOS
When I started ngrok service with the command ngrok service start, I got this error

CRIT[05-02|09:22:06] start failed err="Failed to start ngrok: "launchctl" failed with stderr: Load failed: 5: Input/output error\nTry running launchctl bootstrap as root for richer errors.\n"

Please anyone can help me to fix this problem?

Regards.

@bobzilladev
Copy link

Hello, thanks for writing in! The service needs to be installed first before it can be started, and also requires root permissions to add the plist. Running these commands is working for me on macOS Sonoma 14.4.1 (arm64):

sudo ./ngrok service install --config ./ngrok.yml
sudo ./ngrok service start

This docs page has more information on ngrok as a service: https://ngrok.com/docs/agent/#background-service

Hopefully that will take care of the problem, let us know if you run into other issues!

@bobzilladev bobzilladev self-assigned this May 14, 2024
@russorat
Copy link
Collaborator Author

fyi @chungbn

@chungbn
Copy link

chungbn commented May 15, 2024

Yes, it worked. Thank you for your help.

@bobzilladev
Copy link

Excellent, glad to hear it! I'll go ahead and close out this issue, feel free to reopen if something else comes up.

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

3 participants