You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I start my MAC M2 , i get the error code on starting laravel valet
Steps To Reproduce
When I run valet install , the console returns the following error code
Installing nginx...
[nginx] is not installed, installing it now via Brew... 🍻
Installing nginx configuration...
Installing nginx directory...
Installing and configuring phpfpm...
Updating PHP configuration for [email protected]...
Restarting php...
Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew... 🍻
Updating Dnsmasq configuration...
Restarting dnsmasq...
Valet is configured to serve for TLD [.test]
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Valet\Site::renew(), 0 passed in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php on line 22 and exactly 1 expected in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php:506
Stack trace:
#0 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php(22): Valet\Site->renew() #1 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/app.php(64): Facade::__callStatic('renew', Array) #2 [internal function]: Silly\Application->{closure}(Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /Users/santiagoevangelista/.composer/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Object(Closure), Array) #4 /Users/santiagoevangelista/.composer/vendor/mnapoli/silly/src/Application.php(95): Invoker\Invoker->call(Object(Closure), Array) #5 /Users/santiagoevangelista/.composer/vendor/symfony/console/Command/Command.php(324): Silly\Application->Silly{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Silly\Command\Command), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/valet.php(9): Symfony\Component\Console\Application->run() #10 {main}
thrown in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php on line 506
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Valet\Site::renew(), 0 passed in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php on line 22 and exactly 1 expected in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php:506
Stack trace:
#0 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php(22): Valet\Site->renew() #1 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/app.php(64): Facade::__callStatic('renew', Array) #2 [internal function]: Silly\Application->{closure}(Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /Users/santiagoevangelista/.composer/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Object(Closure), Array) #4 /Users/santiagoevangelista/.composer/vendor/mnapoli/silly/src/Application.php(95): Invoker\Invoker->call(Object(Closure), Array) #5 /Users/santiagoevangelista/.composer/vendor/symfony/console/Command/Command.php(324): Silly\Application->Silly{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Silly\Command\Command), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/valet.php(9): Symfony\Component\Console\Application->run() #10 {main}
thrown in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php on line 506
Changed current directory to /Users/santiagoevangelista/.composer
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK git version 2.43.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: OK
Composer version: 2.6.6
PHP version: 8.3.1
PHP binary path: /opt/homebrew/Cellar/php/8.3.1/bin/php
OpenSSL version: OpenSSL 3.2.0 23 Nov 2023
cURL version: 8.5.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/3.2.0
zip: extension present, unzip present, 7-Zip not available
composer global outdated
Changed current directory to /Users/santiagoevangelista/.composer
Legend:
! patch or minor release available - update recommended
~ major release available - update possible
Direct dependencies required in composer.json:
Everything up to date
Transitive dependencies not required in composer.json:
symfony/console v6.4.1 ~ v7.0.1 Eases the creation of beautiful and...
symfony/event-dispatcher v6.4.0 ~ v7.0.0 Provides tools that allow your appl...
symfony/process v6.4.0 ~ v7.0.0 Executes commands in sub-processes
ls -al /etc/sudoers.d/
total 0
drwxr-xr-x 2 root wheel 64 May 12 2023 .
drwxr-xr-x 80 root wheel 2560 Dec 27 14:05 ..
brew config
HOMEBREW_VERSION: 4.2.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: 7817518992920b8dbd15e48a5e6c5ad768f4ba8b
Last commit: 3 days ago
Core tap JSON: 27 Dec 17:13 UTC
Core cask tap JSON: 27 Dec 17:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_blizzard_avalanche
Clang: 14.0.3 build 1403
Git: 2.43.0 => /opt/homebrew/bin/git
Curl: 7.88.1 => /usr/bin/curl
macOS: 13.4-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: N/A
Rosetta 2: false
brew services list
Warning: running through sudo, using user/* instead of gui/* domain!
Hide this warning by setting HOMEBREW_SERVICES_NO_DOMAIN_WARNING.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Name Status User File
dnsmasq none root
mysql error 256 santiagoevangelista ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
nginx none
php none root
redis started santiagoevangelista ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
dnsmasq 2.89
mysql 8.2.0_1
nginx 1.25.3
php 8.3.1
brew outdatedbrew tap
homebrew/services
php -v
PHP 8.3.1 (cli) (built: Dec 20 2023 12:44:38) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.1, Copyright (c) Zend Technologies
with Zend OPcache v8.3.1, Copyright (c), by Zend Technologies
cURL support => enabled
cURL Information => 8.5.0
Age => 10
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => No
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
ALTSVC => Yes
HTTP3 => No
UNICODE => No
ZSTD => Yes
HSTS => Yes
GSASL => No
Protocols => dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtmpe, rtmps, rtmpt, rtmpte, rtmpts, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => aarch64-apple-darwin22.6.0
SSL Version => (SecureTransport) OpenSSL/3.2.0
ZLib Version => 1.2.11
libSSH Version => libssh2/1.11.0
Directive => Local Value => Master Value
curl.cainfo => no value => no value
/opt/homebrew/bin/ngrok version
sudo: /opt/homebrew/bin/ngrok: command not found
ls -al ~/.ngrok2
ls: /Users/santiagoevangelista/.ngrok2: No such file or directory
brew info nginx
==> nginx: stable 1.25.3 (bottled), HEAD
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
/opt/homebrew/Cellar/nginx/1.25.3 (26 files, 2.4MB) *
Poured from bottle using the formulae.brew.sh API on 2023-12-27 at 14:04:58
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/n/nginx.rb
License: BSD-2-Clause
==> Dependencies
Required: openssl@3, 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 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:
/opt/homebrew/opt/nginx/bin/nginx -g daemon\ off;
==> Analytics
install: 10,520 (30 days), 35,978 (90 days), 147,079 (365 days)
install-on-request: 10,497 (30 days), 35,883 (90 days), 146,811 (365 days)
build-error: 4 (30 days)
brew info php
==> php: stable 8.3.1 (bottled), HEAD
General-purpose scripting language
https://www.php.net/
/opt/homebrew/Cellar/php/8.3.1 (523 files, 88.6MB) *
Poured from bottle using the formulae.brew.sh API on 2023-12-27 at 13:52:00
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/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@3, 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
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.3/
To 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:
/opt/homebrew/opt/php/sbin/php-fpm --nodaemonize
==> Analytics
install: 57,202 (30 days), 185,627 (90 days), 517,681 (365 days)
install-on-request: 53,417 (30 days), 173,650 (90 days), 481,939 (365 days)
build-error: 41 (30 days)
brew info openssl
==> openssl@3: stable 3.2.0 (bottled)
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/opt/homebrew/Cellar/openssl@3/3.2.0_1 (6,805 files, 31.9MB) *
Poured from bottle using the formulae.brew.sh API on 2023-12-27 at 13:51:34
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/[email protected]
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
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.3.1 (fpm-fcgi) (built: Dec 20 2023 12:44:38)
Copyright (c) The PHP Group
Zend Engine v4.3.1, Copyright (c) Zend Technologies
with Zend OPcache v8.3.1, Copyright (c), by Zend Technologies
#
# 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.
#
nameserver fe80::1%en0
nameserver 192.168.100.1
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'
Description
When I start my MAC M2 , i get the error code on starting laravel valet
Steps To Reproduce
When I run valet install , the console returns the following error code
Installing nginx...
[nginx] is not installed, installing it now via Brew... 🍻
Installing nginx configuration...
Installing nginx directory...
Installing and configuring phpfpm...
Updating PHP configuration for [email protected]...
Restarting php...
Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew... 🍻
Updating Dnsmasq configuration...
Restarting dnsmasq...
Valet is configured to serve for TLD [.test]
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Valet\Site::renew(), 0 passed in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php on line 22 and exactly 1 expected in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php:506
Stack trace:
#0 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php(22): Valet\Site->renew()
#1 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/app.php(64): Facade::__callStatic('renew', Array)
#2 [internal function]: Silly\Application->{closure}(Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/santiagoevangelista/.composer/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Object(Closure), Array)
#4 /Users/santiagoevangelista/.composer/vendor/mnapoli/silly/src/Application.php(95): Invoker\Invoker->call(Object(Closure), Array)
#5 /Users/santiagoevangelista/.composer/vendor/symfony/console/Command/Command.php(324): Silly\Application->Silly{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Silly\Command\Command), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/valet.php(9): Symfony\Component\Console\Application->run()
#10 {main}
thrown in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php on line 506
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Valet\Site::renew(), 0 passed in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php on line 22 and exactly 1 expected in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php:506
Stack trace:
#0 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/includes/facades.php(22): Valet\Site->renew()
#1 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/app.php(64): Facade::__callStatic('renew', Array)
#2 [internal function]: Silly\Application->{closure}(Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/santiagoevangelista/.composer/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Object(Closure), Array)
#4 /Users/santiagoevangelista/.composer/vendor/mnapoli/silly/src/Application.php(95): Invoker\Invoker->call(Object(Closure), Array)
#5 /Users/santiagoevangelista/.composer/vendor/symfony/console/Command/Command.php(324): Silly\Application->Silly{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Silly\Command\Command), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /Users/santiagoevangelista/.composer/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/valet.php(9): Symfony\Component\Console\Application->run()
#10 {main}
thrown in /Users/santiagoevangelista/.composer/vendor/laravel/valet/cli/Valet/Site.php on line 506
Diagnosis
sw_vers
valet --version
cat ~/.config/valet/config.json
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
/opt/homebrew/bin/ngrok version
ls -al ~/.ngrok2
brew info nginx
brew info php
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/8.3/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.conf\n---\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: