Closed sarik-k closed 12 months ago
I checked the same repo on my colleague's computer, its working fine
What's different between those two computers? Is your colleague also using Herd?
Whenever I get an error in my application...
Is the problem happening with ALL applications? Is it only with Laravel applications? Which Laravel versions?
I have been having this issue for the past couple of days
What "changed" on your computer just before this started? What sort of software updates? Crashes? Forced power-off? New software installed?
What's different between those two computers? Is your colleague also using Herd?
Our computers are completely different, he's on Windows and I'm on Mac. Just wanted to make sure it wasn't software issue on the project. I installed Herd after I started getting problems with Valet, but Herd had its own issues so now I have completely removed it.
Is the problem happening with ALL applications? Is it only with Laravel applications? Which Laravel versions?
I have only tested it on Laravel applications, Laravel 9 and 10.
What "changed" on your computer just before this started? What sort of software updates? Crashes? Forced power-off? New software installed?
I had updated my system to macOS Ventura 13.5.1, nothing else was changed.
After testing, I found that the problem occurs with php@8.2. I downgraded to 8.1 and it's working fine now.
downgraded to 8.1
Might be wise to use brew to uninstall 8.2 fully. And also delete the /opt/home brew/etc/php/8.2 directory too. When you need it again later you can reinstall it. Hopefully if it's anything wrong with that version or the config it'll be fine with the next version.
Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel to open up a new issue if you're still experiencing this.
Description
I have been having this issue for the past couple of days
Whenever I get an error in my application, instead of getting an Ignition page, it just keeps loading and I eventually get a 502 Bad Gateway. At first I thought it was an issue with nginx, I checked the log file, nothing.
I uninstalled valet completely and reinstalled it again, I ran
brew doctor
followed bybrew cleanup
, nothing fixed it.After a while, my mac started complaining that it was running out of space.
I installed a disk analyzer, and the
~/.config/valet/Logs/php-fpm.log
was a whopping 188gb!I didn't even try to open it, fearing my laptop would just crash. Deleted it.
Now I have this route in my application:
Route::get('error', fn() => abort(500, 'Custom Server Error'));
If I delete the php-fpm.log file and visit this route, I get 502 Bad Gateway error and a new 1.1gb php-fpm.log file is created. I opened it with
less php-fpm.log
and this is the first few lines of the error:What can I do to solve this? I have tried everything I can find on the internet
I checked the same repo on my colleague's computer, its working fine
Steps To Reproduce
Mentioned above
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
/usr/local/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
/usr/local/opt/php/sbin/php-fpm -v
sudo /usr/local/opt/php/sbin/php-fpm -y /etc/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/usr/local/etc/nginx/valet/valet.conf\n---\n"; cat /usr/local/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'