[Bug]: Can't access my .test websites
Platform
Windows
Operating system version
Windows 10 22H2 19045
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.1.0
PHP Version
PHP 8.3.6
Bug description
I can create the websites but I'm unable to show them as my .test doesn't work and return a dns error. DNS_PROBE_POSSIBLE
Note that when I start Herd sometimes HerdHelper Port doesn't seem to be running.
Steps to reproduce
No response
Relevant log output
No response
The HerdHelper has to be running to access sites. Can you ensure it runs on a free port, restart Herd and try again?
The HerdHelper has to be running to access sites. Can you ensure it runs on a free port, restart Herd and try again?
I can restart herd, change herdhelper it doesn't work the icon stay red and my .test don't work. I can see it listening tho I put it on port 6000 and it run 0.0.0.0:6000. But herdhelper is still red.
Can you take a look at your Windows services and see if the Herd Helper service is running?
Can you take a look at your Windows services and see if the Herd Helper service is running?
The service seem to be running.
HerdHelper PID: 4116 Status: currently running.
I also have the same issue. In my case, the HerdHelper service is running, and its status is green. But I cannot access the .test website. If I run localhost or 127.0.0.1, then Herd will display a page not found. If I check the host file, there are no changes either. Is this an issue with the host file?
I also have the same issue. In my case, the HerdHelper service is running, and its status is green. But I cannot access the .test website. If I run localhost or 127.0.0.1, then Herd will display a page not found. If I check the host file, there are no changes either. Is this an issue with the host file?
If I add manually in host file it is working. Must be because Admin Privillege
127.0.0.1 testing.test
The HerdHelper should run as a system service with admin privileges so that it's able to change the hosts file – could this be the issue? If yes, I wonder how it got installed and how your system setup looks like for our internal tests to verify and fix the issue.
Please follow these instructions to get some debug data?
Please go to C:\ProgramData\Herd and open the services.json and add the debug flag there?
It should look like this:
{
"herdHelperPort": 5000,
"logLevel": "debug"
}
After that, please restart the service.
Then go to C:\Windows\System32\logs and open the latest HerdHelper log – if you think there is anything sensitive and you don't want to share it shere, please email it to [email protected] but there should usually just be an indicator if something wasn't able to start.
Please follow these instructions to get some debug data?
Please go to C:\ProgramData\Herd and open the services.json and add the debug flag there?
It should look like this:
{ "herdHelperPort": 5000, "logLevel": "debug" }After that, please restart the service.
Then go to C:\Windows\System32\logs and open the latest HerdHelper log – if you think there is anything sensitive and you don't want to share it shere, please email it to [email protected] but there should usually just be an indicator if something wasn't able to start.
Here is the logs after I restarted herd and tried to go on my site. Btw I put port 5000 on Herd so idk why it's trying to do something on port 6000.
2024-05-20 10:14:32.538 +02:00 [DBG] Hosting starting 2024-05-20 10:14:32.942 +02:00 [INF] Config path: C:\ProgramData\Herd\service.json. 2024-05-20 10:14:33.042 +02:00 [INF] Application started. Hosting environment: Production; Content root path: C:\Users\WINDOWS\.config\herd\bin\ 2024-05-20 10:14:33.043 +02:00 [DBG] Hosting started 2024-05-20 10:14:33.058 +02:00 [INF] Config file with port exists, using port: 6000. 2024-05-20 10:14:33.179 +02:00 [INF] HTTP Server started on http://localhost:6000/.
Just do double check that, your normal username is "WINDOWS" and that's not something that somehow went into the logs manually?
@HyakuAr ?
Just do double check that, your normal username is "WINDOWS" and that's not something that somehow went into the logs manually?
Yes WINDOWS is my only user, and the one that I use
Hey folks, can you please try this debug version?
- Install debug version
- Go to General settings and enable the HerdHelper debug mode
- Restart Herd
- Check the logs (linked at the general settings, click on the path to get there)
- Also check the logs at %USERPROFILE%\AppData\Roaming\Herd\logs
You can either post the logs here or send them to [email protected] (and please mention this issue #674
I just sent a mail to the said email, with the number of the ticket.
Okay, I fixed the issue to do that I had to fix the hosts file on my PC that was on read only and seemed to be bugged. I had to grant myself permissions to modify it. And after that I replaced the original hosts file on my PC with the hosts file from my laptop, that worked fine. I can now go on the .test sites.
@HyakuAr if you create a new site, is this available directly? If yes, Herd can properly write to the hosts file.
Please make sure to disable debug output, its logging quite a bit of information.
Yep everything is working just fine.
On Sat, Jun 1, 2024, 3:49 PM Sebastian Schlein @.***> wrote:
@HyakuAr https://github.com/HyakuAr if you create a new site, is this available directly? If yes, Herd can properly write to the hosts file.
Please make sure to disable debug output, its logging quite a bit of information.
— Reply to this email directly, view it on GitHub https://github.com/beyondcode/herd-community/issues/674#issuecomment-2143456000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYJ2B2S66GZ7W6P3LIVZMITZFHGQHAVCNFSM6AAAAABGQJKWBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGQ2TMMBQGA . You are receiving this because you were mentioned.Message ID: @.***>
I'm having the same issue (see above) on mac, but whatever I do, Herd doesn't seem to write to hosts.
@clausbertels Herd on Mac does not write to the hosts file, it is using Dnsmasq for routing. You can check if it's running correctly via the menu bar (logs are there too), so feel free to create a new issue if you continue to have problems.
@mechelon Thanks for the reply. I made an issue here: https://github.com/beyondcode/herd-community/issues/1008
All seems to run fine. Herd's dnsmasq shows an empty log when I click this
I have the same problem on Windows. The I have tried all ways of resolving the Herdhelper issue, but no fix has worked.