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

[Bug]: Can't access my .test websites

Open HyakuAr opened this issue 1 year ago • 10 comments

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

HyakuAr avatar Apr 20 '24 07:04 HyakuAr

The HerdHelper has to be running to access sites. Can you ensure it runs on a free port, restart Herd and try again?

mechelon avatar Apr 22 '24 11:04 mechelon

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.

HyakuAr avatar Apr 26 '24 15:04 HyakuAr

Can you take a look at your Windows services and see if the Herd Helper service is running?

mpociot avatar Apr 28 '24 10:04 mpociot

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.

HyakuAr avatar Apr 28 '24 12:04 HyakuAr

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?

andreassbayu avatar May 03 '24 08:05 andreassbayu

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

andreassbayu avatar May 03 '24 09:05 andreassbayu

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.

sschlein avatar May 06 '24 08:05 sschlein

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.

sschlein avatar May 13 '24 10:05 sschlein

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/.

HyakuAr avatar May 21 '24 19:05 HyakuAr

Just do double check that, your normal username is "WINDOWS" and that's not something that somehow went into the logs manually?

sschlein avatar May 22 '24 09:05 sschlein

@HyakuAr ?

sschlein avatar May 29 '24 13:05 sschlein

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

HyakuAr avatar May 30 '24 08:05 HyakuAr

Hey folks, can you please try this debug version?

Download

  • 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

sschlein avatar May 30 '24 11:05 sschlein

I just sent a mail to the said email, with the number of the ticket.

HyakuAr avatar May 30 '24 14:05 HyakuAr

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 avatar Jun 01 '24 13:06 HyakuAr

@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.

sschlein avatar Jun 01 '24 13:06 sschlein

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: @.***>

HyakuAr avatar Jun 01 '24 14:06 HyakuAr

I'm having the same issue (see above) on mac, but whatever I do, Herd doesn't seem to write to hosts.

clausbertels avatar Sep 19 '24 20:09 clausbertels

@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 avatar Sep 20 '24 07:09 mechelon

@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

Scherm­afbeelding 2024-09-20 om 18 34 31

clausbertels avatar Sep 20 '24 16:09 clausbertels

I have the same problem on Windows. The I have tried all ways of resolving the Herdhelper issue, but no fix has worked.

kabalaandrew avatar Feb 23 '25 15:02 kabalaandrew