Nginx error 256 root library launchagents homebrew mxcl nginx plist

status error with httpd after brew install #415 Comments I have this strange error in brew services. Name Status User File httpd error 256 root /Library/LaunchAgents/homebrew.mxcl.httpd.plist mariadb started gstlouis /Library/LaunchAgents/homebrew.mxcl.mariadb.plist php@7.4 started gstlouis When doing brew services start httpd it says it start (with the error above), but it really hasn’t start. I literally […]
(Can be skipped) Delete all .plist for httpd from locations

/Library/LaunchAgents and /Library/LaunchAgents and

Источник

presence of LaunchAgents file breaks Nginx #1237

  • Valet Version: 3.1.1
  • PHP Version: 7.4.28

Description:

I got stuck with an error where Nginx was not loading for me. When I ran brew services list this is what I’d see:

There are a fair amount of answers on stackoverflow about restarting nginx using sudo, changing the permissions on this file and/or moving files around. I tried uninstalling and reinstalling valet and nginx lots of times. What finally solved it for me was deleting the

/Library/LaunchAgents/homebrew.mxcl.nginx.plist file and rebooting my machine.

I’m happy to submit a PR to the docs to say «If you can’t connect to your .test domain run ‘brew services list’, if this is the error then delete the file and reboot your machine» but I don’t really know how Nginx got in this improper state.

Should I submit a PR to the docs to say that or is there any other information I can provide?

Steps To Reproduce:

Not clear how this plist file was generated. I had run sudo nginx -s stop but then reinstalling valet and nginx did not fix the issue. I had to remove the file and restart.

Diagnosis

This was my diagnosis when I had the issue:

sw_vers valet —version cat

/.composer/composer.json composer global diagnose composer global outdated ls -al /etc/sudoers.d/ brew config brew services list brew list —formula —versions | grep -E «(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@d..*)?s» brew outdated brew tap php -v which -a php php —ini nginx -v curl —version php —ri curl

/.composer/vendor/laravel/valet/bin/ngrok-arm version ls -al

/.ngrok2 brew info nginx

Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
/opt/homebrew/etc/php/8.1/

To restart php after an upgrade:
brew services restart php
Or, if you don’t want/need a background service you can just run:
/opt/homebrew/opt/php/sbin/php-fpm —nodaemonize
==> Analytics
install: 133,555 (30 days), 380,644 (90 days), 994,268 (365 days)
install-on-request: 112,411 (30 days), 315,787 (90 days), 867,802 (365 days)
build-error: 50 (30 days)

brew info openssl

openssl version -a openssl ciphers sudo nginx -t which -a php-fpm /opt/homebrew/opt/php/sbin/php-fpm -v sudo /opt/homebrew/opt/php/sbin/php-fpm -y /opt/homebrew/etc/php/7.4/php-fpm.conf —test ls -al

/Library/LaunchAgents | grep homebrew ls -al /Library/LaunchAgents | grep homebrew ls -al /Library/LaunchDaemons | grep homebrew ls -al /Library/LaunchDaemons | grep «com.laravel.valet.» ls -aln /etc/resolv.conf cat /etc/resolv.conf ifconfig lo0 sh -c ‘echo «——n/opt/homebrew/etc/nginx/valet/valet.confn—n»; cat /opt/homebrew/etc/nginx/valet/valet.conf | grep -n «# valet loopback»; echo «n——n»‘

sh -c ‘for file in

/.config/valet/dnsmasq.d/*; do echo «——n

/.config/valet/dnsmasq.d/$(basename $file)n—n»; cat $file; echo «n——n»; done’

sh -c ‘for file in

/.config/valet/nginx/*; do echo «——n

/.config/valet/nginx/$(basename $file)n—n»; cat $file | grep -n «# valet loopback»; echo «n——n»; done’

The text was updated successfully, but these errors were encountered:

Источник

OSX Yosemite не может привязать brew nginx к порту 80

Установил nginx и php-fpm через Homebrew.

Я отключил нативный Apache 2.4, который поставляется с OSX, запустив:

Он даже говорит, что больше не работает:

Затем я запускаю свой nginx и проверяю, что связано с моим портом 80:

Мои конфиги nginx:

Когда я пытаюсь получить доступ к signal.dev в моем браузере — вообще нет соединения с веб-сервером, хотя signal.dev:8080 дает мне Nginx 404, не найденный.

Почему я не могу привязать свой nginx к 80 порту?

2 ответа 2

Вы должны использовать sudo для привязки любого порта ниже 1024, привилегированных портов. Я постараюсь обобщить все. сначала отключите внутренний apache, добавив отключенный в файл /System/Library/LaunchDaemons/org.apache.httpd.plist

затем скопируйте файл plist nginx в /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

с этими параметрами. проверьте владение plist-файлом. который должен принадлежать root:wheel

-rw-r — r— 1 корневое колесо 571 21 декабря 19:39 /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

тогда вы можете запустить nginx с привилегией связать порты 80 и 443.

PS: вы можете использовать lunchy (простое приложение ruby для управления launchctl.), Которое идеально подходит для этой работы. Например: sudo lunchy edit apache, sudo lunchy start nginx и т. д.

Также вы можете увидеть, что не так во время запуска launchctl с помощью команды syslog -w .

Источник

Valet not starting on boot after adding custom nginx proxy directive #837

The Valet deamon doesn’t start on boot. I have to manually start is everytime using
-> valet start

I allready have reinstalled valet but didn’t do the trick

The text was updated successfully, but these errors were encountered:

@gldrenthe89 what’s the output of the following, on a reboot, before running valet start ?

Additional information which would also be helpful is the output of the following:

Hi i have done every command requested and here is the output:

brew services list
Name Status User Plist
dnsmasq started root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql started geertlucasdrenthe /Users/geertlucasdrenthe/Library/LaunchAgents/homebrew.mxcl.mysql.plist
nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php error root /Library/LaunchDaemons/homebrew.mxcl.php.plist
redis started geertlucasdrenthe /Users/geertlucasdrenthe/Library/LaunchAgents/homebrew.mxcl.redis.plist

brew doctor
Your system is ready to brew.

sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.1
BuildVersion: 19B88

valet —version
Laravel Valet 2.5.2

/.config/valet/config.json
<
«tld»: «test»,
«paths»: [
«/Users/geertlucasdrenthe/Development/Sites»
]
>

ls -al /etc/sudoers.d/
total 0
drwxr-xr-x 2 root wheel 64 24 aug 01:37 .
drwxr-xr-x 87 root wheel 2784 3 dec 09:05 ..

openssl version -a
LibreSSL 2.8.3
built on: date not available
platform: information not available
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: information not available
OPENSSLDIR: «/private/etc/ssl»

openssl ciphers
ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:GOST2012256-GOST89-GOST89:DHE-RSA-CAMELLIA256-SHA256:DHE-RSA-CAMELLIA256-SHA:GOST2001-GOST89-GOST89:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:CAMELLIA256-SHA256:CAMELLIA256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:CAMELLIA128-SHA256:CAMELLIA128-SHA:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:DES-CBC3-SHA

php -v
PHP 7.4.0 (cli) (built: Nov 29 2019 16:18:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.0, Copyright (c), by Zend Technologies

which php
/usr/local/bin/php

which -a php
/usr/local/bin/php
/usr/bin/php

nginx -v
nginx version: nginx/1.17.3

curl —version
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets

cURL support => enabled
cURL Information => 7.67.0
Age => 5
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => No
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
HTTPS_PROXY => Yes
MULTI_SSL => No
BROTLI => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-apple-darwin19.0.0
SSL Version => OpenSSL/1.1.1d
ZLib Version => 1.2.11
libSSH Version => libssh2/1.9.0

Directive => Local Value => Master Value
curl.cainfo => no value => no value

brew config
HOMEBREW_VERSION: 2.2.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 7d7de295dfbc5e581106e2b1f674496b5e25a773
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ab840d654f4abc8b3c8bbce20f06eb7b20735aab
Core tap last commit: 5 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1100
Git: 2.21.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.1-x86_64
CLT: 11.2.0.0.1.1571444319
Xcode: 11.2.1
CLT headers: 11.2.0.0.1.1571444319

brew info openssl
openssl@1.1: stable 1.1.1d (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/openssl@1.1/1.1.1d (7,983 files, 17.9MB)
Poured from bottle on 2019-09-26 at 09:18:41
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl@1.1.rb
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs

and run
/usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because openssl/libressl is provided by macOS so don’t link an incompatible version.

If you need to have openssl@1.1 first in your PATH run:
echo ‘export PATH=»/usr/local/opt/openssl@1.1/bin:$PATH»‘ >>

For compilers to find openssl@1.1 you may need to set:
export LDFLAGS=»-L/usr/local/opt/openssl@1.1/lib»
export CPPFLAGS=»-I/usr/local/opt/openssl@1.1/include»

For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH=»/usr/local/opt/openssl@1.1/lib/pkgconfig»

==> Analytics
install: 499,588 (30 days), 1,828,393 (90 days), 2,362,918 (365 days)
install-on-request: 50,960 (30 days), 147,946 (90 days), 421,371 (365 days)
build-error: 0 (30 days)

brew info nginx
nginx: stable 1.17.3 (bottled), HEAD
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
/usr/local/Cellar/nginx/1.17.3_1 (25 files, 2MB) *
Poured from bottle on 2019-09-06 at 15:30:23
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/nginx.rb
==> Dependencies
Required: openssl@1.1 ✔ , pcre ✔
==> Options
—HEAD
Install HEAD version
==> 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
==> Analytics
install: 26,101 (30 days), 81,761 (90 days), 402,893 (365 days)
install-on-request: 25,519 (30 days), 79,386 (90 days), 382,407 (365 days)
build-error: 0 (30 days)

brew info php
php: stable 7.4.0 (bottled)
General-purpose scripting language
https://www.php.net/
/usr/local/Cellar/php/7.4.0 (517 files, 75.9MB) *
Poured from bottle on 2019-12-03 at 09:11:30
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/php.rb
==> Dependencies
Build: httpd ✘, pkg-config ✔
Required: apr ✔ , apr-util ✔ , argon2 ✔ , aspell ✔ , autoconf ✔ , curl-openssl ✔ , freetds ✔ , freetype ✔ , gettext ✔ , glib ✔ , gmp ✔ , icu4c ✔ , jpeg ✔ , libffi ✔ , libpng ✔ , libpq ✔ , libsodium ✔ , libzip ✔ , oniguruma ✔ , openldap ✔ , openssl@1.1 ✔ , sqlite ✔ , tidy-html5 ✔ , unixodbc ✔ , webp ✔
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/libphp7.so

Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/7.4/

To have launchd start php now and restart at login:
brew services start php
Or, if you don’t want/need a background service you can just run:
php-fpm
==> Analytics
install: 46,925 (30 days), 133,330 (90 days), 462,271 (365 days)
install-on-request: 43,890 (30 days), 123,995 (90 days), 422,187 (365 days)
build-error: 0 (30 days)

/.composer/vendor/laravel/valet/bin/ngrok version
ngrok version 2.3.34

/.ngrok2
ls: /Users/geertlucasdrenthe/.ngrok2: No such file or directory

Источник

  • Valet Version: 3.1.1
  • PHP Version: 7.4.28

Description:

I got stuck with an error where Nginx was not loading for me. When I ran brew services list this is what I’d see:

brew services list
Name    Status     User File
dnsmasq none       root
nginx   error  256 root ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php     none
php@7.4 none       root

There are a fair amount of answers on stackoverflow about restarting nginx using sudo, changing the permissions on this file and/or moving files around. I tried uninstalling and reinstalling valet and nginx lots of times. What finally solved it for me was deleting the ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist file and rebooting my machine.

I’m happy to submit a PR to the docs to say «If you can’t connect to your .test domain run ‘brew services list’, if this is the error then delete the file and reboot your machine» but I don’t really know how Nginx got in this improper state.

Should I submit a PR to the docs to say that or is there any other information I can provide?

Steps To Reproduce:

Not clear how this plist file was generated. I had run sudo nginx -s stop but then reinstalling valet and nginx did not fix the issue. I had to remove the file and restart.

Diagnosis

This was my diagnosis when I had the issue:

sw_vers

ProductName:	macOS
ProductVersion:	12.1
BuildVersion:	21C52

valet —version

Laravel Valet 3.1.1

cat ~/.config/valet/config.json

{
    "tld": "test",
    "loopback": "127.0.0.1",
    "paths": [
        "/Users/connorleech/code"
    ]
}

cat ~/.composer/composer.json

{
    "require": {
        "laravel/valet": "^3.1",
        "tightenco/takeout": "1.8.6"
    }
}

composer global diagnose

Changed current directory to /Users/connorleech/.composer
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
require.tightenco/takeout : exact version constraints (1.8.6) should be avoided if the package follows semantic versioning
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: You are not running the latest stable version, run `composer self-update` to update (2.2.5 => 2.3.4)
Composer version: 2.2.5
PHP version: 7.4.28
PHP binary path: /opt/homebrew/Cellar/php@7.4/7.4.28_1/bin/php
OpenSSL version: OpenSSL 1.1.1m  14 Dec 2021
cURL version: 7.82.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1n
zip: extension present, unzip present, 7-Zip not available

composer global outdated

Changed current directory to /Users/connorleech/.composer
Info from https://repo.packagist.org: �[37;44m#StandWith�[30;43mUkraine�[0m
Legend:
! patch or minor release available - update recommended
~ major release available - update possible
guzzlehttp/guzzle             7.4.1   ! 7.4.2   Guzzle is a PHP HTTP client library
guzzlehttp/psr7               2.1.0   ! 2.2.1   PSR-7 message implementation that also provides common utility methods
illuminate/container          v8.83.4 ! v8.83.7 The Illuminate Container package.
illuminate/contracts          v8.83.4 ! v8.83.7 The Illuminate Contracts package.
psr/container                 1.1.2   ~ 2.0.2   Common Container Interface (PHP FIG PSR-11)
symfony/console               v5.4.5  ! v5.4.7  Eases the creation of beautiful and testable command line interfaces
symfony/deprecation-contracts v2.5.0  ! v2.5.1  A generic function and convention to trigger deprecation notices
symfony/process               v5.4.5  ! v5.4.7  Executes commands in sub-processes
symfony/service-contracts     v2.5.0  ! v2.5.1  Generic abstractions related to writing services
tightenco/collect             v8.83.2 ! v8.83.6 Collect - Illuminate Collections as a separate package.
tightenco/takeout             v1.8.6  ! v1.8.13 Manage your dev dependencies with simple one-off Docker containers.

ls -al /etc/sudoers.d/

total 0
drwxr-xr-x   2 root  wheel    64 Dec  7 15:39 .
drwxr-xr-x  82 root  wheel  2624 Apr  4 02:22 ..

brew config

HOMEBREW_VERSION: 3.4.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 56415326bb8c9eccc6e53f3997b4e062b36402af
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ce9639a3e46908afe436f9339aba7ba9ff4d2fa8
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.32.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.77.0 => /usr/bin/curl
macOS: 12.1-arm64
CLT: 13.3.0.0.1.1645755326
Xcode: N/A
Rosetta 2: false

brew services list

Name    Status User File
dnsmasq none            root 
nginx   error  256      root ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php     none                 
php@7.4 none            root

brew list —formula —versions | grep -E «(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@d..*)?s»

dnsmasq 2.86
nginx 1.21.6_1
openssl@1.1 1.1.1n
php 8.1.4
php@7.4 7.4.28_1

brew outdated

libx11

brew tap

homebrew/core
homebrew/services
shivammathur/php

php -v

PHP 7.4.28 (cli) (built: Feb 28 2022 07:33:39) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies

which -a php

/opt/homebrew/bin/php

php —ini

Configuration File (php.ini) Path: /opt/homebrew/etc/php/7.4
Loaded Configuration File:         /opt/homebrew/etc/php/7.4/php.ini
Scan for additional .ini files in: /opt/homebrew/etc/php/7.4/conf.d
Additional .ini files parsed:      /opt/homebrew/etc/php/7.4/conf.d/error_log.ini,
/opt/homebrew/etc/php/7.4/conf.d/ext-opcache.ini,
/opt/homebrew/etc/php/7.4/conf.d/php-memory-limits.ini

nginx -v

nginx version: nginx/1.21.6

curl —version

curl 7.77.0 (x86_64-apple-darwin21.0) libcurl/7.77.0 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.42.0
Release-Date: 2021-05-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets

php —ri curl

curl

cURL support => enabled
cURL Information => 7.82.0
Age => 9
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
HTTPS_PROXY => Yes
MULTI_SSL => Yes
BROTLI => Yes
Protocols => dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => aarch64-apple-darwin21.3.0
SSL Version => (SecureTransport) OpenSSL/1.1.1n
ZLib Version => 1.2.11
libSSH Version => libssh2/1.10.0

Directive => Local Value => Master Value
curl.cainfo => no value => no value

~/.composer/vendor/laravel/valet/bin/ngrok version

ngrok version 2.3.40

~/.composer/vendor/laravel/valet/bin/ngrok-arm version

ngrok version 2.3.40

ls -al ~/.ngrok2

ls: /Users/connorleech/.ngrok2: No such file or directory

brew info nginx

nginx: stable 1.21.6 (bottled), HEAD
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
/opt/homebrew/Cellar/nginx/1.21.6_1 (26 files, 2.2MB) *
  Poured from bottle on 2022-04-11 at 18:11:57
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/nginx.rb
License: BSD-2-Clause
==> Dependencies
Required: openssl@1.1, pcre2
==> Options
--HEAD
	Install HEAD version
==> Caveats
Docroot is: /opt/homebrew/var/www

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

nginx will load all files in /opt/homebrew/etc/nginx/servers/.

To restart nginx after an upgrade:
brew services restart nginx
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/nginx/bin/nginx -g daemon off;
==> Analytics
install: 39,084 (30 days), 123,812 (90 days), 486,412 (365 days)
install-on-request: 39,000 (30 days), 123,600 (90 days), 485,411 (365 days)
build-error: 24 (30 days)

brew info php

php: stable 8.1.4 (bottled), HEAD
General-purpose scripting language
https://www.php.net/
/opt/homebrew/Cellar/php/8.1.4 (513 files, 81.6MB)
  Poured from bottle on 2022-04-11 at 18:02:24
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php.rb
License: PHP-3.01
==> Dependencies
Build: httpd, pkg-config
Required: apr, apr-util, argon2, aspell, autoconf, curl, freetds, gd, gettext, gmp, icu4c, krb5, libpq, libsodium, libzip, oniguruma, openldap, openssl@1.1, pcre2, sqlite, tidy-html5, unixodbc
==> Options
--HEAD
	Install HEAD version
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
    LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
<FilesMatch .php$>
    SetHandler application/x-httpd-php
</FilesMatch>

Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
/opt/homebrew/etc/php/8.1/

To restart php after an upgrade:
brew services restart php
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/php/sbin/php-fpm --nodaemonize
==> Analytics
install: 133,555 (30 days), 380,644 (90 days), 994,268 (365 days)
install-on-request: 112,411 (30 days), 315,787 (90 days), 867,802 (365 days)
build-error: 50 (30 days)

brew info openssl

openssl@3: stable 3.0.2 (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@3.rb
License: Apache-2.0
==> Dependencies
Required: ca-certificates
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /opt/homebrew/etc/openssl@3/certs

and run
/opt/homebrew/opt/openssl@3/bin/c_rehash

openssl@3 is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides LibreSSL.

==> Analytics
install: 169,146 (30 days), 376,585 (90 days), 717,589 (365 days)
install-on-request: 135,711 (30 days), 296,399 (90 days), 565,133 (365 days)
build-error: 5,868 (30 days)

openssl version -a

LibreSSL 2.8.3
built on: date not available
platform: information not available
options:  bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) blowfish(idx) 
compiler: information not available
OPENSSLDIR: "/private/etc/ssl"

openssl ciphers

ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:GOST2012256-GOST89-GOST89:DHE-RSA-CAMELLIA256-SHA256:DHE-RSA-CAMELLIA256-SHA:GOST2001-GOST89-GOST89:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:CAMELLIA256-SHA256:CAMELLIA256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:CAMELLIA128-SHA256:CAMELLIA128-SHA:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:DES-CBC3-SHA

sudo nginx -t

nginx: the configuration file /opt/homebrew/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /opt/homebrew/etc/nginx/nginx.conf test is successful

which -a php-fpm

/opt/homebrew/sbin/php-fpm

/opt/homebrew/opt/php/sbin/php-fpm -v

PHP 8.1.4 (fpm-fcgi) (built: Mar 18 2022 09:32:39)
Copyright (c) The PHP Group
Zend Engine v4.1.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.4, Copyright (c), by Zend Technologies

sudo /opt/homebrew/opt/php/sbin/php-fpm -y /opt/homebrew/etc/php/7.4/php-fpm.conf —test

[11-Apr-2022 18:25:14] NOTICE: configuration file /opt/homebrew/etc/php/7.4/php-fpm.conf test is successful

ls -al ~/Library/LaunchAgents | grep homebrew

-rw-r--r--   1 connorleech  staff   490 Apr 11 18:12 homebrew.mxcl.nginx.plist

ls -al /Library/LaunchAgents | grep homebrew


ls -al /Library/LaunchDaemons | grep homebrew

-rw-r--r--   1 root  admin   602 Apr 11 18:17 homebrew.mxcl.dnsmasq.plist
-rw-r--r--   1 root  admin   490 Apr 11 18:23 homebrew.mxcl.nginx.plist
-rw-r--r--   1 root  admin   594 Apr 11 18:17 homebrew.mxcl.php@7.4.plist

ls -al /Library/LaunchDaemons | grep «com.laravel.valet.»


ls -aln /etc/resolv.conf

lrwxr-xr-x  1 0  0  22 Dec  7 15:39 /etc/resolv.conf -> ../var/run/resolv.conf

cat /etc/resolv.conf

#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
search hsd1.ca.comcast.net
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
nameserver 75.75.75.75
nameserver 75.75.76.76

ifconfig lo0

lo0: flags=8049 mtu 16384
	options=1203
	inet 127.0.0.1 netmask 0xff000000 
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
	nd6 options=201

sh -c ‘echo «——n/opt/homebrew/etc/nginx/valet/valet.confn—n»; cat /opt/homebrew/etc/nginx/valet/valet.conf | grep -n «# valet loopback»; echo «n——n»‘

------
/opt/homebrew/etc/nginx/valet/valet.conf
---

3: #listen VALET_LOOPBACK:80; # valet loopback

------

sh -c ‘for file in ~/.config/valet/dnsmasq.d/*; do echo «——n~/.config/valet/dnsmasq.d/$(basename $file)n—n»; cat $file; echo «n——n»; done’

------
~/.config/valet/dnsmasq.d/tld-test.conf
---

address=/.test/127.0.0.1
listen-address=127.0.0.1

------

sh -c ‘for file in ~/.config/valet/nginx/*; do echo «——n~/.config/valet/nginx/$(basename $file)n—n»; cat $file | grep -n «# valet loopback»; echo «n——n»; done’

------
~/.config/valet/nginx/employbl.test
---

3: #listen 127.0.0.1:80; # valet loopback
10: #listen 127.0.0.1:443 ssl http2; # valet loopback
54: #listen 127.0.0.1:60; # valet loopback

------

So, this seems to be a relatively common problem, but following the steps other users used to resolve the issue don’t seem to be working for me.

I recently upgraded OSX to Monterey on my early 2015 MBP. Currently running the brew services stop, start, and restart httpd return success messages, but navigating to localhost or my virtual hosts results in refused connections.

Running which httpd points to the Homebrew path at /usr/local/bin/httpd

Currently running brew services returns

Name    Status     User   File
httpd   error  256 root   ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
mysql   started    Nizz0k ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
php@7.4 none      

Brew doctor complains about a deprecated package proj@7, but it’s installed as a dependency to some spatial packages I’m working with. It also complains about my Ansible and Postgres config files, but they haven’t caused any problems before this update.

apachectl configtest complains about the server but returns syntax ok

I’ve tried reinstalling, but after completing the process starting httpd errors with

Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/502 /Users/Nizz0k/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5

Which is a fairly opaque Input/Output error. Following the suggestion to run the command as root, I get complaints about running as root and this

/Library/LaunchDaemons/homebrew.mxcl.httpd.plist: service already bootstrapped
Bootstrap failed: 37: Operation already in progress
Error: Failure while executing; `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist` exited with 37

I then did I uninstall deleting the suggested directories, following a reinstall it goes back to the Bootstrap failed: 5: Input/output error

So, this is where I have ended up, a borked Apache install and not being sure where to go next…

На моем Mac, когда я пишу: sudo brew services list, я получаю такой результат:

Name    Status     User File
------------------------------
dnsmasq started    root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mariadb error  256 root /Library/LaunchDaemons/homebrew.mxcl.mariadb.plist
nginx   started    root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php@7.4 started    root /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist

Вчера я боролся с проблемой, где я получил этот результат:

Name    Status     User File
------------------------------
dnsmasq error  512 root ~/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist
mariadb started    root ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
nginx   error  256 root ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php@7.4 started    root ~/Library/LaunchAgents/homebrew.mxcl.php@7.4.plist

Вопрос 1. Что означают 256 и 512?

Вопросы 2. Где найти описания ошибок?


Попытка решения 1. Проверьте /usr/local/var/log

Я пробовал это сделать:

tail -f **/*.log

Но ничего полезного не нашел.


Попытка решения 2. Поиск последних изменений после перезапуска службы

Я попытался перезапустить службу: sudo brew services restart mariadb

… а затем перечислите последние измененные файлы следующим образом:

find . -cmin -15

Но это ничего не перечисляет.


Попытка решения 3. Получение информации: sudo brew services info mariadb

С помощью этой команды я просто получаю этот вывод:

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

Но никакой помощи в отношении этой 256-ошибки.


Попытка решения 4. Добавьте флаг -d в brew services

Спасибо Luuk за предложение добавить -d (флаг отладки).

Когда я запускаю: sudo brew services -d list, он выводит это:

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtermkey.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/git-quick-stats.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/git-lfs.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/vim.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gmp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libiconv.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wget.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/msgpack.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tree-sitter.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wp-cli.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libidn2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/roots/homebrew-tap/Formula/trellis-cli.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpng.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ncurses.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unibilium.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mariadb.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mpdecimal.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libuv.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetype.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/argon2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/rtmpdump.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/imath.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/boost.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libavif.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fmt.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libunistring.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/apr-util.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/brotli.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/composer.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/perl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/glib.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/glog.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/aom.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lz4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/awscli.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/webp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/c-ares.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/yarn.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unixodbc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nvm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libnghttp2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lua.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openexr.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fontconfig.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ansible.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/double-conversion.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gflags.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/jakehilborn/homebrew-jakehilborn/Formula/displayplacer.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/curl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/giflib.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@7.4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/phpunit.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mecab-ipadic.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/krb5.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/snappy.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nginx.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetds.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libvmaf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ca-certificates.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/luajit-openresty.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libssh2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zstd.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/watchman.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libsodium.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/apr.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpq.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/aspell.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tidy-html5.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/m4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/oniguruma.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gd.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/romkatv/homebrew-powerlevel10k/Formula/powerlevel10k.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libevent.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl@1.1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg-xl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.10.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mecab.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/six.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/node.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libzip.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zsh.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/neovim.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openldap.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/groonga.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/folly.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/luv.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/protobuf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ruby.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fzf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.9.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/berkeley-db.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/dnsmasq.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libvterm.rb

Попытка решения 5. Добавить флаг отладки при перезапуске mariadb

Если я сделаю это: sudo brew services restart mariadb -d

Затем он выводит это:

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mariadb.rb
Stopping `mariadb`... (might take a while)
==> Successfully stopped `mariadb` (label: homebrew.mxcl.mariadb)
Warning: Taking root:admin ownership of some mariadb paths:
  /usr/local/Cellar/mariadb/10.7.3/bin
  /usr/local/Cellar/mariadb/10.7.3/bin/mariadbd-safe
  /usr/local/opt/mariadb
  /usr/local/opt/mariadb/bin
  /usr/local/var/homebrew/linked/mariadb
This will require manual removal of these paths using `sudo rm` on
brew upgrade/reinstall/uninstall.
Warning: mariadb must be run as non-root to start at user login!
==> Successfully started `mariadb` (label: homebrew.mxcl.mariadb)

Единственное отличие от «не-d»-версии состоит в том, что первая строка опущена без флага отладки.

Но ошибка сохраняется после этого. И что еще более странно, так это то, что Mariadb работает, хотя эта ошибка присутствует: я работаю над локальной средой разработки, где я вношу изменения в MariaDB и все такое.

D-K

17:17 25.04.2022


2

ответов

man launchctl

17:38 25.04.2022

D-K



D
K


Автор вопроса

nginx: the configuration file /opt/homebrew/etc/nginx/nginx.conf syntax is ok
nginx: [emerg] open() «/opt/homebrew/var/run/nginx.pid» failed (13: Permission denied)
nginx: configuration file /opt/homebrew/etc/nginx/nginx.conf test failed

17:40 25.04.2022

Похожие вопросы

Понравилась статья? Поделить с друзьями:
  • Nginx custom error pages
  • Nginx cors error
  • Nginx client ssl certificate verify error
  • Nginx change error page
  • Nginx alert could not open error log file createfile