herd-community icon indicating copy to clipboard operation
herd-community copied to clipboard

[Bug]: Can't load any sites on 1.11.1 unless I manually add the site to `/etc/hosts`

Open tommcfarlin opened this issue 1 year ago • 2 comments

Platform

macOS

Operating system version

macOS Sequoia 15.0.1

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.11.1

PHP Version

No response

Bug description

I attempted to load any of the sites I have linked and secured with Herd and none of them load.

Notes

  • I've started and stopped my services using brew.
  • I've started and stopped services via Herd.
  • I've reinstalled Herd.
  • All icons are green.
  • No sites load unless I explicitly point one domain to 127.0.0.1

I have to manually add the site to my /etc/hosts file for it to load. The relevant portion of /etc/hosts file looks like this:

127.0.0.1 ambox.test

I have /etc/resolver/test and it has the following:

nameserver 127.0.0.1

Output

Chrome (both with and without the DNS setting changed in chrome://settings) returns the following error:

This site can’t be reached

The webpage at https://mydomain.test/ might be temporarily down or it may have moved permanently to a new web address.

ERR_TUNNEL_CONNECTION_FAILED

Steps to reproduce

I started work today and none of my sites loaded. This appears to have started after upgrading to 1.11.1.

Can provide more context as needed.

Relevant log output

No response

tommcfarlin avatar Oct 11 '24 16:10 tommcfarlin

The error message sounds like a VPN. Does your Mac try to use a VPN to connect to local sites? If yes, that likely doesn't work.

sschlein avatar Oct 11 '24 16:10 sschlein

It doesn't; I don't have a VPN active and there is nothing running that would cause this, as best as I can tell.

I've not added, removed, or modified any VPN configurations since the latest update.

tommcfarlin avatar Oct 11 '24 17:10 tommcfarlin

Wasn't able to resolve the problem with my projects in their directory but I moved them to /Herd/sites and things resolve fine.

Thanks for the help!

tommcfarlin avatar Oct 12 '24 03:10 tommcfarlin

That's odd but great that you were able to solve it :)

sschlein avatar Oct 14 '24 06:10 sschlein