beyondcode / herd-community

84 stars 1 forks source link

[Bug]: This site can’t be reached > host file entry not created #1092

Open nbolink opened 3 hours ago

nbolink commented 3 hours ago

Platform

Windows

Operating system version

11 (build 22635.4367)

System architecture

Intel (x86)

Herd Version

1.1.11

PHP Version

No response

Bug description

Since the last update of Herd or the last update of windows, sites are created but I'll get 'This site can’t be reached'.

The fix I'l use now is to create manually a corresponding host file entry, but that's something Herd should do.

Steps to reproduce

Checkout git project or create 'New Laravel project' from UI and try to access it.

Relevant log output

No response

sschlein commented 3 hours ago

Hi @nbolink

Did you check the troubleshooting docs for this? https://herd.laravel.com/docs/windows/1/troubleshooting/common-issues#dns-errors

nbolink commented 2 hours ago

HerdHelper is runnning: 2024-10-15 12:29:07.123 +02:00 [DBG] Hosting starting 2024-10-15 12:29:07.221 +02:00 [INF] Config path: C:\ProgramData\Herd\service.json. 2024-10-15 12:29:07.224 +02:00 [INF] Config file with port exists, using port: 5000. 2024-10-15 12:29:07.226 +02:00 [INF] Application started. Hosting environment: Production; Content root path: C:\Users\nickb.config\herd\bin\ 2024-10-15 12:29:07.228 +02:00 [DBG] Hosting started 2024-10-15 12:29:07.252 +02:00 [INF] HTTP Server started on http://localhost:5000/. 2024-10-15 12:29:11.557 +02:00 [INF] Request to /status endpoint.

sschlein commented 2 hours ago

Can you create a directory in the parked directory and see if this triggers a refresh of the hosts file? The logs should show that it's writing to the file.

nbolink commented 2 hours ago

directory 'trigger' created 12.50 and log shows this: 2024-10-15 12:36:16.103 +02:00 [INF] Request to /status endpoint. 2024-10-15 12:50:50.941 +02:00 [INF] Request to /status endpoint. 2024-10-15 12:50:55.954 +02:00 [INF] Request to /status endpoint. 2024-10-15 12:51:00.962 +02:00 [INF] Request to /status endpoint.