beyondcode / herd-community

82 stars 1 forks source link

[Bug]: Sites are unreachable #891

Closed Shahinyanm closed 2 months ago

Shahinyanm commented 2 months ago

Platform

macOS

Operating system version

macOs Sonoma 14.5

System architecture

Intel (x86)

Herd Version

1.9.1

PHP Version

No response

Bug description

Problem Details

1.  After Upgrading to Laravel Herd 1.9.1:
•   All previously working sites are no longer accessible.
•   herd links and herd parked commands show that the sites are linked and parked correctly.
2.  Reinstallation Attempts:
•   I tried uninstalling and reinstalling Laravel Herd, but the issue persists.
3.  DNS Configuration:
•   The DNS settings are default for macOS.
•   The nameserver is set correctly.
4.  Firewall:
•   The firewall is disabled, but there is no change in behavior.
5.  Logs:
•   There are no relevant entries in the logs indicating any issues.

Steps to reproduce

Screenshot 2024-07-20 at 23 17 10

Relevant log output

No response

mechelon commented 2 months ago

Can you try to force quit all services (hold the option key while the Herd menubar is open) and share your Nginx/DNSMasq error logs? CleanShot 2024-07-20 at 21 19 13@2x

Shahinyanm commented 2 months ago
Screenshot 2024-07-20 at 23 33 08

Dnsmasq now is using as i have installed localy , before there weren't any errors

indrapalijama commented 2 months ago

any updates on this one?

Shahinyanm commented 2 months ago

any updates on this one?

Yup, I have fixed, The first link was working automatically, but after the upgrade, it need to add 127.0.0.1 site.test to /etc/hosts

After that everything working correctly

mechelon commented 2 months ago

When I understand that correctly, you have installed another instance DNSMasq in parallel to Laravel Herd? It only supports using the instance that comes with it, then you also don't have to modify the hosts file.

Shahinyanm commented 2 months ago

When I understand that correctly, you have installed another instance DNSMasq in parallel to Laravel Herd? It only supports using the instance that comes with it, then you also don't have to modify the hosts file.

Nope, i didn't I only upgrade Laravel herd from 1.4.1 - to 1.9.1 , restart macos, and then no sites was reached

After ton of manipulations , delete and install, tried to write manually site in hosts , and it works,

sschlein commented 2 months ago

There's definitely something running on the same port that dnsmasq uses and so Herd can't start the version that's shipping with it. If you can solve this and stop the other program from blocking it, you'll be good with Herd

indrapalijama commented 2 months ago

There's definitely something running on the same port that dnsmasq uses and so Herd can't start the version that's shipping with it. If you can solve this and stop the other program from blocking it, you'll be good with Herd

yes, i noticed that my dnscrypt-proxy is using the host (127.0.0.1) as dnsmasq so it's not working, do you have any idea how to run it side by side?

sschlein commented 2 months ago

You can't – that's not supported by Herd nor the proxy, they both need the same port.

Shahinyanm commented 2 months ago

There's definitely something running on the same port that dnsmasq uses and so Herd can't start the version that's shipping with it. If you can solve this and stop the other program from blocking it, you'll be good with Herd

I have checked , there is only one process for dnsmasq and it's started by herd,

victor-falcon commented 1 month ago

I had the same problem.

Now it's working after adding 127.0.0.1 site.test to my /etc/hosts but I think there is something wrong with DNSMasq, don't know why is this issue closed.