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

stubby don't run as brew service on MacOSX (could not bind on given adress. permission denied) #332

Open
bkmystim opened this issue Dec 18, 2022 · 3 comments
Labels

Comments

@bkmystim
Copy link

bkmystim commented Dec 18, 2022

Hi guys,
im on a Apple M1 with OSX 12.6 Monterey using Homebrew.

I used to have stubby running as a daemon with brew services.
For some unknown reason it stopped working yesterday.
I added the logging option to the "homebrew.mxcl.stubby.plist" and got the following error:

[11:14:09.736549] STUBBY: Stubby version: Stubby 0.4.2
error: Could not bind on given addresses: Permission denied

with "brew services list" I get:

stubby error 256 user ~/Library/LaunchAgents/homebrew.mxcl.stubby.plist

and with "brew services info stubby":

stubby (homebrew.mxcl.stubby)
Running: ✘
Loaded: ✔
Schedulable: ✘

I can run stubby from terminal and I can start brew services from root via "sudo brew services start stubby".
But no luck to get it running again as a homebrew service at user login.

Any ideas how to fix this?
THX

@bkmystim bkmystim changed the title stubby don't run as brew service on MacOSX (could not bind to given adress. permission denied) stubby don't run as brew service on MacOSX (could not bind on given adress. permission denied) Dec 18, 2022
@saradickinson
Copy link
Contributor

Did you manage to solve this problem? The only thing I can think of is that something else is now bound to that port at login time when the service tries to start (given sudo brew services start stubby) works later..... but that is a guess.

@bkmystim
Copy link
Author

bkmystim commented Jan 10, 2023

Hi Sara,
thanks for your reply.

After rebuilding the launch services database, I even got "permission denied" when trying to start stubby via terminal.
Thus the only way for me now is to use "sudo" to start stubby (for command line and brew service).

I'm not too happy to have stubby running as root, but since I couldn't figure out a different solution . . .

I can still only try to guess what caused the problem. (OSX 12.6.2 update? Homebrew update?, ??)

So I'm still open to any advice ;-)

@saradickinson
Copy link
Contributor

OK - I think I am seeing the problem too and am a bit baffled at this stage. I'll have to try to dig into this but can't see an obvious cause at the moment....

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

No branches or pull requests

2 participants