-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
502 Bad Gateway : upstream prematurely closed connection while reading response header from upstream #1450
Comments
database postgresql, install using brew (brew install postgresql@14) when using mysql, it works! |
Duplicate of #1433 |
i've already downgrade to [email protected] but didn't work |
It's not a factor of your PHP version. It's how/when it was compiled (eg: before vs after June 2023 when krb5 library was updated). |
I fix it by adding this variable in my .env:
More details and info at https://stackoverflow.com/questions/76812272/valet-php-fpm-and-nginx-errors-upstream-closed-connection-child-process-sigse |
The workaround/fix is already built-in to Valet since v4.6.0. See #1452 |
Description
502 Bad Gateway
nginx/1.25.2
[error] 8240#0: 1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: .test, request: "POST /login HTTP/2.0", upstream: "fastcgi://unix:/Users//.config/valet/valet82.sock:", host: ".test", referrer: "https://*.test/login"
Steps To Reproduce
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.2/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: