valet: Upgraded PHP 7.4 - Error (The process has been signaled with signal 6 / 9.

It doesn’t appear that Valet is running at all for me any longer I get: Unable to Connect on Firefox and This site can’t be reached on Chrome

I upgraded PHP via brew update and then ran brew upgrade php

Valet on-lastest version: Yes PHP -v: 7.4.0 Which PHP: /usr/local/bin/php

I also ran composer global upgrade and valet install.

Trying to run Brew Services List and Valet use PHP gives the following:

image

NOTE: I also tried valet uninstall --force but I get the error (Screenshot)

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (3 by maintainers)

Most upvoted comments

For me the fix was the specific upgrade from nginx 1.15.9 to 1.17.8 by brew upgrade nginx. Works like a charm now.

I have it working now. There was so much output that it would really be too much to add here. I pretty much did what you suggested ie:

brew uninstall --force php@7.2 -vvv
brew uninstall --force php@7.1 -vvv
brew uninstall --force php -vvv
brew install php -vvv

But I was still getting the same issue, and by accident actually I typed: brew upgrade (I mean update) and it upgraded a bunch of services.

I then reran valet install for sh*ts and giggles and it is now working 🤷‍♂

Thank you for your comments. It was a big help.

brew upgrade nginx fixed it for me as well

brew upgrade nginx followed by valet install worked for me

I also ran into this with Laravel Valet where I hit The process has been signaled with signal “6”. As per the rules, if it takes you longer than 20 minutes to solve, post about it. I did the following to get it working.

This is a dump of my terminal history. I fixed this yesterday and have no idea what did it, but throw everything at it and you’ll get things working.

  1. valet uninstall
  2. composer global remove laravel/valet
  3. brew uninstall --force php nginx dnsmasq
  4. composer global require laravel/valet
  5. valet install
  6. composer global update
  7. brew upgrade php
  8. brew switch icu4c 64.2
  9. valet reinstall
  10. brew services php start
  11. brew services restart nginx
  12. brew unlink php
  13. brew cleanup
  14. brew link php

Woot! Glad it’s working.

I upgraded PHP via brew update and then ran brew upgrade php

Perhaps in hindsight simply running brew update and brew upgrade (not limiting it to just php) might have been enough.

I usually run brew update && brew upgrade on a weekly basis. brew cleanup is handy too.

I have it working now. There was so much output that it would really be too much to add here. I pretty much did what you suggested ie:

brew uninstall --force php@7.2 -vvv
brew uninstall --force php@7.1 -vvv
brew uninstall --force php -vvv
brew install php -vvv

But I was still getting the same issue, and by accident actually I typed: brew upgrade (I mean update) and it upgraded a bunch of services.

I then reran valet install for sh*ts and giggles and it is now working 🤷‍♂

Thank you for your comments. It was a big help.

Was experiencing the same issue and read this thread, tried a few things that didn’t work.

The “brew upgrade” and “valet install” fixed it all for me too 😃

For me the fix was the specific upgrade from nginx 1.15.9 to 1.17.8 by brew upgrade nginx. Works like a charm now.

Brew listed nginx as version 1.17.8 but uninstalling it and reinstalling nginx is what fixed it for me. Thanks for the pointer @richartkeil

I tried all the comments. But it just fuckup.

Finally, I add comment to /Users/username/.composer/vendor/symfony/process/Process.php 428. line

According to various sources (one of which is https://en.wikipedia.org/wiki/Signal_(IPC) ) Signal 6 is Abort, and Signal 9 is Kill

Symfony/Process is being used to run commands. In your case it seems to be failing when running commands related to installing/removing/configuring PHP. I wonder what Homebrew is saying behind-the-scenes.

What’s the output of the following? I’m curious whether any errors occur, especially with verbose output. brew services stop php -vvv and brew services start php -vvv

Also, for diagnostics, let’s also try uninstalling all your PHP versions, since the valet uninstall --force will loop through all and attempt to uninstall them, and you’re getting the error in that case as well as just with a restart.

brew uninstall --force php@7.2 -vvv
brew uninstall --force php@7.1 -vvv
brew uninstall --force php -vvv
brew install php -vvv

brew upgrade nginx

it might tell you : Error: Could not remove nginx keg! Do so manually: sudo rm -rf /usr/local/Cellar/nginx/1.15.8

so do --> sudo rm -rf /usr/local/Cellar/nginx/1.15.8

brew update && brew upgrade

it might tell you : Error: Could not remove dnsmasq keg! Do so manually: sudo rm -rf /usr/local/Cellar/dnsmasq/2.80

do go ahead and do --> sudo rm -rf /usr/local/Cellar/dnsmasq/2.80

valet restart

I ran the following to successfully resolve Signal 6 issue:

composer global update
brew update && brew upgrade 
valet restart

During that restart, I got the firewall allow prompt in OSX, hit allow and valet restarted successfully. Sites loading now. Weird bug.

Got this error. I was trying to fetch data from DB before I applied migrations to create a table for that model. I was trying to fetch it inside a route (it was a lesson).

Route::get('/projects', function() {
    $projects = App\Project::all();
    return view('projects.index', compact('projects'));
});

And “Signal 9” was uninformative.