Общий ресурс Laravel Valet - Не удалось подключиться к порту 12740.0.1 4040: соединение отклонено - PullRequest
0 голосов
/ 06 сентября 2018

У меня есть настройка Valet и она работает нормально на проекте Laravel. Я могу посетить mysite.test, и проект загружается как следует. Однако когда я запускаю команду valet share , я получаю сообщение об ошибке «Не удалось подключиться к порту 12740.0.1 4040: соединение отклонено».

Я пытался обновить composer, обновить homebrew и переустановить камердинер, но сообщение об ошибке все еще сохраняется. Если я запускаю список служб brew, все следующие службы отображаются как работающие;

dnsmasq   started root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql@5.7 started root /Library/LaunchDaemons/homebrew.mxcl.mysql@5.7.plist
nginx     started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php       started root /Library/LaunchDaemons/homebrew.mxcl.php.plist

Я не верю, что Apache работает. При попытке остановить эту службу я получаю следующую ошибку:

/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service

Полная ошибка, которую я получаю после запуска общего ресурса, приведена ниже.

ERROR:  Tunnel 'command_line' specifies invalid address 'Sites.
ERROR:  Warning: Class 'Tightenco\Collect\Support\Debug\Dumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR:  
ERROR:  Warning: Class 'Tightenco\Collect\Support\Debug\HtmlDumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR:  test:80': too many colons in address Sites.
ERROR:  Warning: Class 'Tightenco\Collect\Support\Debug\Dumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR:  
ERROR:  Warning: Class 'Tightenco\Collect\Support\Debug\HtmlDumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR:  test:80
Darrens-MacBook-Pro:Sites darren$ Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused

In Request.php line 1028:

  Unable to connect to "http://127.0.0.1:4040/api/tunnels": 7 Failed to conne  
  ct to 127.0.0.1 port 4040: Connection refused                                


fetch-share-url

Я считаю, что предупреждение о классе PHP не связано. Буду признателен за любую помощь в решении этой проблемы.

Edit:

Запуск sudo brew services start - все, чтобы убедиться, что все службы действительно запустились, приводит к следующей ошибке;

/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist: service already loaded
Error: Failure while executing; `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist` exited with 133.

1 Ответ

0 голосов
/ 10 сентября 2018

После часов отладки это наконец решило проблему. В частности, «symfony / polyfill-php72», «symfony / var-dumper», «stretco / collect» обновлены в ходе этого процесса, поэтому проблема должна быть с одним из этих пакетов. Все остальные пакеты были загружены из кеша.

composer global remove laravel/valet

composer self-update

composer global require laravel/valet

valet install

valet restart

...