-
Description:I've recently upgrade to an M1 Max chip machine. Since the change, valet hangs when loading local sites. Once that first page has loaded, the experience resumes to normal for a short period. When breaking off to work on some features though and later returning to the browser, the page stalls when trying to interact with it again. I've even tried downgrading my valet version to Both machines are using Steps To Reproduce:
Diagnosissw_versProductName: macOS ProductVersion: 12.1 BuildVersion: 21C52 valet --versionLaravel Valet 2.18.3 cat ~/.config/valet/config.json{ "tld": "test", "loopback": "127.0.0.1", "paths": [ "/Users/xxx/.config/valet/Sites", "/Users/xxx/Sites" ] } cat ~/.composer/composer.json{ "require": { "laravel/valet": "^2.18", "laravel/installer": "^4.2" } } composer global diagnoseChanged current directory to /Users/xxx/.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 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.1.14 => 2.2.3) Composer version: 2.1.14 PHP version: 8.0.14 PHP binary path: /usr/local/Cellar/php@8.0/8.0.14/bin/php OpenSSL version: OpenSSL 1.1.1m 14 Dec 2021 cURL version: 7.80.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1m zip: extension present, unzip present, 7-Zip not available composer global outdatedChanged current directory to /Users/xxx/.composer Legend: ! patch or minor release available - update recommended ~ major release available - update possible illuminate/container v8.76.2 ! v8.78.1 The Illuminate Container package. illuminate/contracts v8.76.2 ! v8.78.1 The Illuminate Contracts package. laravel/valet v2.18.3 ! v2.18.4 A more enjoyable local development experience for Mac. psr/container 1.1.2 ~ 2.0.2 Common Container Interface (PHP FIG PSR-11) psr/simple-cache 1.0.1 ~ 3.0.0 Common interfaces for simple caching symfony/console v5.4.1 ~ v6.0.2 Eases the creation of beautiful and testable command line interfaces symfony/deprecation-contracts v2.5.0 ~ v3.0.0 A generic function and convention to trigger deprecation notices symfony/polyfill-ctype v1.23.0 ! v1.24.0 Symfony polyfill for ctype functions symfony/polyfill-intl-grapheme v1.23.1 ! v1.24.0 Symfony polyfill for intl's grapheme_* functions symfony/polyfill-intl-normalizer v1.23.0 ! v1.24.0 Symfony polyfill for intl's Normalizer class and related functions symfony/polyfill-mbstring v1.23.1 ! v1.24.0 Symfony polyfill for the Mbstring extension symfony/polyfill-php73 v1.23.0 ! v1.24.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions symfony/polyfill-php80 v1.23.1 ! v1.24.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions symfony/process v5.4.0 ~ v6.0.2 Executes commands in sub-processes symfony/service-contracts v2.5.0 ~ v3.0.0 Generic abstractions related to writing services symfony/string v5.4.0 ~ v6.0.2 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way symfony/var-dumper v5.4.1 ~ v6.0.2 Provides mechanisms for walking through any arbitrary PHP variable tightenco/collect v8.76.1 ! 8.78.0 Collect - Illuminate Collections as a separate package. ls -al /etc/sudoers.d/total 16 drwxr-xr-x 4 root wheel 128 17 Dec 21:22 . drwxr-xr-x 82 root wheel 2624 5 Jan 20:10 .. -rw-r--r-- 1 root wheel 83 17 Dec 21:22 brew -rw-r--r-- 1 root wheel 86 17 Dec 21:22 valet brew configHOMEBREW_VERSION: 3.3.9 ORIGIN: https://github.com/Homebrew/brew HEAD: 96137bc19e68398ebbb7033379df288cd8b9a3f9 Last commit: 3 weeks ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 5ddc309f5f18b95d23aef9d3557ca067ec015172 Core tap last commit: 3 minutes ago Core tap branch: master HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS: [] HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core HOMEBREW_MAKE_JOBS: 10 Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: 10-core 64-bit westmere Clang: 13.0.0 build 1300 Git: 2.32.0 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 7.77.0 => /usr/bin/curl macOS: 12.1-x86_64 CLT: 13.2.0.0.1.1638488800 Xcode: N/A Rosetta 2: true brew services listName Status User File dnsmasq none root mariadb@10.5 started xxx ~/Library/LaunchAgents/homebrew.mxcl.mariadb@10.5.plist nginx none root php started xxx ~/Library/LaunchAgents/homebrew.mxcl.php.plist php@7.4 none php@8.0 none root brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"dnsmasq 2.86 nginx 1.21.5 openssl@1.1 1.1.1m php 8.1.1 php@7.4 7.4.27 php@8.0 8.0.14 brew outdatedbrew taphomebrew/core homebrew/services shivammathur/php php -vPHP 8.0.14 (cli) (built: Dec 17 2021 22:21:16) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.14, Copyright (c) Zend Technologies with Zend OPcache v8.0.14, Copyright (c), by Zend Technologies which -a php/usr/local/bin/php /usr/local/bin/php php --iniConfiguration File (php.ini) Path: /usr/local/etc/php/8.0 Loaded Configuration File: /usr/local/etc/php/8.0/php.ini Scan for additional .ini files in: /usr/local/etc/php/8.0/conf.d Additional .ini files parsed: /usr/local/etc/php/8.0/conf.d/error_log.ini, /usr/local/etc/php/8.0/conf.d/ext-opcache.ini, /usr/local/etc/php/8.0/conf.d/php-memory-limits.ini nginx -vnginx version: nginx/1.21.5 curl --versioncurl 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 curlcurl ~/.composer/vendor/laravel/valet/bin/ngrok versionngrok version 2.3.40 ls -al ~/.ngrok2ls: /Users/xxx/.ngrok2: No such file or directory brew info nginxnginx: stable 1.21.5 (bottled), HEAD HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server https://nginx.org/ /usr/local/Cellar/nginx/1.21.5 (26 files, 2.2MB) * Poured from bottle on 2022-01-04 at 18:53:24 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/nginx.rb License: BSD-2-Clause ==> Dependencies Required: openssl@1.1, pcre ==> Options --HEAD Install HEAD version ==> Caveats Docroot is: /usr/local/var/www brew info phpphp: stable 8.1.1 (bottled), HEAD General-purpose scripting language https://www.php.net/ /usr/local/Cellar/php/8.1.1 (512 files, 79.9MB) Poured from bottle on 2022-01-04 at 18:49:14 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 /usr/local/opt/php/lib/httpd/modules/libphp.so brew info opensslopenssl@3: stable 3.0.1 (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 /usr/local/etc/openssl@3/certs openssl version -aLibreSSL 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 ciphersECDHE-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 sudo nginx -tnginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful which -a php-fpm/usr/local/opt/php/sbin/php-fpm -vPHP 8.1.1 (fpm-fcgi) (built: Dec 17 2021 22:38:16) Copyright (c) The PHP Group Zend Engine v4.1.1, Copyright (c) Zend Technologies with Zend OPcache v8.1.1, Copyright (c), by Zend Technologies sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/8.0/php-fpm.conf --test[05-Jan-2022 20:35:28] NOTICE: configuration file /usr/local/etc/php/8.0/php-fpm.conf test is successful ls -al ~/Library/LaunchAgents | grep homebrew-rw-r--r-- 1 xxx staff 555 5 Jan 10:59 homebrew.mxcl.mariadb@10.5.plist -rw-r--r-- 1 xxx staff 577 5 Jan 20:29 homebrew.mxcl.php.plist ls -al /Library/LaunchAgents | grep homebrewls -al /Library/LaunchDaemons | grep homebrew-rw-r--r-- 1 root admin 593 5 Jan 20:29 homebrew.mxcl.dnsmasq.plist -rw-r--r-- 1 root admin 484 5 Jan 20:32 homebrew.mxcl.nginx.plist -rw-r--r-- 1 root admin 585 5 Jan 20:32 homebrew.mxcl.php@8.0.plist ls -al /Library/LaunchDaemons | grep "com.laravel.valet."ls -aln /etc/resolv.conflrwxr-xr-x 1 0 0 22 7 Dec 23: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 Home nameserver 192.168.0.1 nameserver fd7e:abbc:1a70:0:8275:1fff:fe3d:64e8 ifconfig lo0lo0: 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/usr/local/etc/nginx/valet/valet.conf\n---\n"; cat /usr/local/etc/nginx/valet/valet.conf | grep -n "# valet loopback"; echo "\n------\n"'------ /usr/local/etc/nginx/valet/valet.conf --- 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 --- 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'------ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Happens to me from time to time (like, 1-2 times per week) on M1 Pro and macOS Monterey. When this happens, check Activity Monitor > CPU, in my case dnsmasq takes up ~100% CPU for some reason. Force-quitting the process fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
Thanks @ihorvorotnov, will look into that. This morning I decided to erase the MacBook and start over, installing valet on a clean machine before adding software and packages before determining if anything delayed the DNS look up. It would appear that the Cisco AnyConnect VPN client is to blame. I had valet running at full speed until the software was installed, after which the lag started again. Uninstalling the software then reduced the DNS look up time. I've reached out to Cisco to see if there's an updated package for ARM. |
Beta Was this translation helpful? Give feedback.
-
Hey @estin92 thanks a lot, I was having the same issue on my M1 Max using Mac OS 13 (ventura) After installing cisco anyconnect-macos-4.10.05095-predeploy-k9.dmg the initial load of every site was really slow and painful. I uninstall that version and tried an old version, and is working without issue. The version that works for me is anyconnect-macos-4.8.03036-predeploy-k9 (GitHub don't allow me to attach a zip or dmg file) |
Beta Was this translation helpful? Give feedback.
Thanks @ihorvorotnov, will look into that.
This morning I decided to erase the MacBook and start over, installing valet on a clean machine before adding software and packages before determining if anything delayed the DNS look up.
It would appear that the Cisco AnyConnect VPN client is to blame. I had valet running at full speed until the software was installed, after which the lag started again. Uninstalling the software then reduced the DNS look up time. I've reached out to Cisco to see if there's an updated package for ARM.