beyondcode / herd-community

82 stars 1 forks source link

[Bug]: can't access herd sites with .test #1074

Open ataldev opened 2 days ago

ataldev commented 2 days ago

Platform

macOS

Operating system version

15.0.1 (24A348)

System architecture

ARM64 (M1, M2, etc)

Herd Version

15.0.1 (24A348)

PHP Version

8.2

Bug description

I know, this issue has been posted several times, but none answers my problem. I spent the entire weekend on this and now it's Sunday evening. Still can't access the sites. I was initially using Valet, then switched to Herd, the websites were working, but I don't know what happened and when this happened, all of a sudden the websites were not available. I tried a dozen things: I had MAMP, so I deleted it. I had Nginx and dnsmasq installed with Brew, I uninstalled them. I deleted Herd and reinstalled it. Force-stopped and restarted a dozen times. Created new sites in the Herd directory.

I don't know what the reason could be, but even after a fresh install, the previous websites are present on Herd sites. I followed the uninstallation guide in the documentation.

Steps to reproduce

Use my machine and do anything, it will reproduce.

Relevant log output

This site can’t be reached
Check if there is a typo in site.test.
DNS_PROBE_FINISHED_NXDOMAIN
mpociot commented 2 days ago

Is DNSmasq marked as "green" in your services? Are there other dnsmasq processes running on your system? (Maybe from brew)?

What happens if you run "ping foo.test" in your terminal?

ataldev commented 1 day ago

Yes DNSmasq is green in services. I had a DNSmasq running before with brew, I turned if off and even uninstalled it. But that did not solve the problem.

pining the site returns:

PING site.test (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.061 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.247 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.200 ms
...

I have a /etc/resolver/test file with this content:

nameserver 127.0.0.1

and a /etc/hosts file with this content:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
ataldev commented 14 hours ago

I have already uninstalled Valet completely, but after running this command: sudo /Library/PrivilegedHelperTools/de.beyondco.herd.helper uninstall When I start Herd, it detects Valet.