homebrew-nginx icon indicating copy to clipboard operation
homebrew-nginx copied to clipboard

/usr/local/Cellar/nginx/1.19.1/ is missing its /logs directory

Open based2 opened this issue 4 years ago • 0 comments

Indicate troubleshooting steps taken

  • [x] Ran brew update and retried your prior step?
  • [ ] Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • [ ] Checked that a similar issue hasn't already been filed?
  • [ ] Looked up the software bug tracker if reporting a build error?
  • [ ] If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

Bug reports / build errors:

When enabling logs - should be enabled by default!

vi +25 /usr/local/etc/nginx/nginx.conf

configuration fails:

nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: [emerg] open() "/usr/local/Cellar/nginx/1.19.1/logs/error.log" failed (2: No such file or directory) nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

manual solution: cd /usr/local/Cellar/nginx/1.19.1/; mkdir logs

Brief summary of issue:

The complete command that you issued:

Gist with output of brew doctor:

Link output by brew gist-logs <formula>:

Output of brew config:

Formula Requests:

The quickest way to get a new formula into Homebrew is to file a Pull Request.

We will consider your request but it may be closed if it's something we're not actively planning to work on.

based2 avatar Jul 19 '20 18:07 based2