Homebrew & nginx

Joined
Feb 7, 2021
Messages
104
Reaction score
4
Points
18
Hi folks. This one is a superuser question. I have a homebrew setup where I'm keeping nginx alive on my workstation. I've run into some permissions issues with logs and keeping nginx alive. Setting to 777 for the logs, I can get it up and running, but homebrew won't achieve anything. Yes I know the ramifications of 777. I'm in my home office alone, all that. The console gives me some feedback on stopping and restarting nginx using brew services:

Bash:
$ brew services stop nginx
[Fault] Transform 'MT_com.apple.BSDServices.ScriptingLanguageUse_v2' hit unrecoverable error with reason='<private>' and context='<private>' with event='<private>'

$ brew services start nginx

[Fault] Transform 'MT_com.apple.BSDServices.ScriptingLanguageUse_v2' hit unrecoverable error with reason='<private>' and context='<private>' with event='<private>'

Does anybody recognize these issues? I have updated homebrew, reinstalled nginx twice, rebooted the box twice, and it still won't take. Not sure what to do at this point.

Any insight appreciated. Cheers
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,771
Reaction score
2,111
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Code:
$ brew --version
Homebrew 3.2.0
Homebrew/homebrew-core (git revision ade0af1c9d; last commit 2021-06-30)
Homebrew/homebrew-cask (git revision 182b6a54ce; last commit 2021-06-30)

$ brew install nginx
==> Downloading https://ghcr.io/v2/homebrew/core/nginx/manifests/1.21.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nginx/blobs/sha256:d4d16dc1e0c696d0e30a3a636c39528276c5a967a09a0e4be29a813cc01aa3f5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d4d16dc1e0c696d0e30a3a636c39528276c5a967a09a0e4be29a813cc01aa3f5?se=2021-06-30T11%3A50%3A00Z&sig=oS%2BIBxPiugJoMHQAh7694AG%2BlEt%2BowGiYjAwyD249lk%3D&sp=r&spr=https&sr=b&sv=2019-12-12
######################################################################## 100.0%
==> Pouring nginx--1.21.0.big_sur.bottle.tar.gz
==> Caveats
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don't want/need a background service you can just run:
  nginx
==> Summary
🍺  /usr/local/Cellar/nginx/1.21.0: 25 files, 2.2MB

 $ brew services start nginx
==> Successfully started `nginx` (label: homebrew.mxcl.nginx)

$ brew services stop nginx
Stopping `nginx`... (might take a while)
==> Successfully stopped `nginx` (label: homebrew.mxcl.nginx)

Just went through the process and didn't have any issues. Ensure that your Brew version matches what I have. I didn't configure Nginx, so you might want to confirm a vanilla installation/configuration works before changing anything.
 
OP
daBee
Joined
Feb 7, 2021
Messages
104
Reaction score
4
Points
18
I literally sat down at the computer and tried it and it works. Didn't do a thing since yesterday.

OK, thank you. Onto the next question. Will post.

Cheers
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top