beyondcode / herd-community

88 stars 1 forks source link

[Bug]: HerdHelper can't reach network #994

Closed vaibhavsulake closed 1 month ago

vaibhavsulake commented 1 month ago

Platform

Windows

Operating system version

Windows 11 (23H2 22631.4169)

System architecture

Windows

Herd Version

1.10.0

PHP Version

No response

Bug description

It seems that the HTTP server is failing to start due to a network location issue. I have verified that the configuration file exists and that the port (5000) is available. However, the error persists, and I’m unable to proceed further. 1) I tried using different ports, but unfortunately, I am still encountering the same error across all ports. 2) I also turned off the firewall and antivirus to rule out any network restrictions, but the issue persists. Before the Windows update, the system was functioning properly. However, after the update, the port status turned red, indicating a problem. Screenshot 2024-09-16 125445

Steps to reproduce

No response

Relevant log output

2024-09-16 12:09:13.481 +05:30 [DBG] Hosting starting
2024-09-16 12:09:13.527 +05:30 [INF] Config path: C:\ProgramData\Herd\service.json.
2024-09-16 12:09:13.528 +05:30 [INF] Config file with port exists, using port: 5000.
2024-09-16 12:09:13.529 +05:30 [INF] Application started. Hosting environment: Production; Content root path: C:\Users\ASUS\.config\herd\bin\
2024-09-16 12:09:13.530 +05:30 [DBG] Hosting started
2024-09-16 12:09:13.543 +05:30 [ERR] An error occurred while starting the HTTP server: The network location cannot be reached. For information about network troubleshooting, see Windows Help.
sschlein commented 1 month ago

Hey, as described also via email, this is likely a firewall or port conflict issue. Here's some AI assistance how you could debug that. I've removed everything that's software related because the service is working on many machines and so it needs to be a configuration issue on your device. Please also take them with a graint of salt and only run commands that are good for your system.


Debugging Steps for HTTP Server Error on Single PC

You're encountering the following error on one specific PC:

An error occurred while starting the HTTP server: The network location cannot be reached. For information about network troubleshooting, see Windows Help

Here are steps to troubleshoot and resolve the issue:

1. Verify the Binding Address

2. Check Network Interfaces

3. Review Firewall and Security Software

4. Check for Port Conflicts

5. Examine IPv6/IPv4 Settings

6. Check the Hosts File

7. Review Network Policies and Settings

8. Consult Event Logs

9. Update Network Drivers

10. Reset Network Stack

11. Test Network Connectivity


By following these steps, you should be able to identify and resolve the issue causing the HTTP server to fail on this specific PC.