Valet-plus: Cannot connect to any site

Created on 17 Aug 2019  Â·  10Comments  Â·  Source: weprovide/valet-plus

Just installed Valet Plus and got all green ouput. But now I can't reach any site (ERR_CONNECTION_REFUSED).

I verified in ~/.valet/config.json that the correct path ist parked. I also tried valet domain test, but nothing changed. Pinging *.test works and there is also no connection when opening 127.0.0.1, so I suppose it's no DNS problem.

Any help would be very appreciated.

Most helpful comment

What output do you get when you run sudo nginx -t?

All 10 comments

What output do you get when you run sudo nginx -t?

Thanks a lot, @Serializator, you made my day!

sudo nginx -trevealed a missing .conf file for Elasticsearch. Creating an empty file fixed the problem.

Glad that I could help!

What you might want to do is use the stub from Valet+ that should've been copied to /usr/local/etc/nginx/valet/elasticsearch.conf on install. You can find the stub under ~/.composer/vendor/weprovide/valet-plus/cli/stubs/elasticsearch.conf, do not forget to replace VALET_DOMAIN with .test (or the domain you've configured if you did). This way you won't run into troubles later if you need Elasticsearch for example.

I'll create a follow-up ticket referencing this one for further bugfixing! 😉

Thanks, will do.

To be honest it took me 5h to get Valet Plus working. Countless wiping and re-installing. I had to fix so many issues manually (missing PHP files, wrong PHP versions, missing PHP extensions, acpu problems, MySQL not working). Glad you're opening a ticket for the Elassticsearch issue.

But I'm very happy now, how Valet Plus is running :-)

This is till an issue July 2020 fresh install

It appears to be still an issue on Oct 2020 fresh install, I ran into it after trying a full re-install of Valet+.

Issue still appears in a valet+ fresh install through homebrew. Not a quick fix?

XaRz has elastic search fix not worked?

Just tried to switch vom Valet to Valet+. Sadly the issue still seems to exist. It's good to know, that the problem seems to be fixable, but how should I explain to my team the switch, when the original is just two lines of terminal work and this is such a hassle to install? I'm a bit disappointed that the problem was reported one and a half year ago and it still exists…

@kaiserkiwi I understand your point of view but remember this is an open-source framework maintained by a few people that have full time jobs beside this, and mostly by the community members around the project spending their free time. Also did you uninstall Valet before installing Valet+?

For anyone still experiencing this can you provide more information about the situation, like:

  • Which macOS version are you running?
  • Was any other local development framework (Valet or other) installed before installing Valet+?
  • Was Valet+ installed before trying to re-install? If so, what steps were taken to clear all Valet+ related config?
  • Any other errors or notifications during install besides the missing elasticsearch.conf?
Was this page helpful?
0 / 5 - 0 ratings

Related issues

luukschakenraad picture luukschakenraad  Â·  14Comments

jahvi picture jahvi  Â·  24Comments

mike-hendriks picture mike-hendriks  Â·  25Comments

MaxSouza picture MaxSouza  Â·  46Comments

stanleyyylau picture stanleyyylau  Â·  17Comments