Flywheel works fine on my Windows 10 but on Windows 11 I can’t get the local website, or anything (WP admin etc) to open. Both machines have the same antivirus set up (Avast Premium). I have tried deactivating Avast and Windows defender. I have started Flywheel in admin and in my local username with same result. Started restarted the machine made and remade projects
Troubleshooting Questions
Does this happen for all sites in Local, or just one in particular?
all
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
no
Replication
Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
Which version of Local is being used?
6.22 and version before
Tried various combinations of mysql and PHP, still get the same result
Windows 11 Home
Edition
Windows 11 Home
Version
22H2
Installed on
22/04/2023
OS build
22621.1702
Experience
Windows Feature Experience Pack 1000.22641.1000.0
the router error log
2023/05/24 07:16:59 [error] 4492#8872: *1 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: ::1, server: exp2.local, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:10005/”, host: “exp2.local”
2023/05/24 07:17:01 [error] 4492#8872: *1 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: exp2.local, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:10005/favicon.ico”, host: “exp2.local”, referrer: “http://exp2.local/”
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.
I am using nginx. Everything is as if it has just been installed, so the default of how it comes. I have used different version of php and mysql in the past to see if it made any difference, but it didn’t. I also shifted from site domains to local host as well because I found that in a forum
What about other developer applications? Are you running any simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.
If you change your Router Mode, does that allow the sites to open? Router Mode
I don’t have anything else running at the same time, like the apps you mentioned. However, this machine is a former display model which I bought cut price. I wonder if the vendor left anything on it which was needed in the store and which might run in the background? I have tried running in both router modes with the same result, i.e. nothing. I also do some part time editing and use a software package called TexStudio which allows PDFs to be edited. This package doesn’t work on this machine either. I wonder if its the same underlying issue.
Here are some other steps you could try to see if something is interfering:
Stop all sites that are running in Local
Force quit Local
Run the command netstat -ano
What you’ll be looking for here is to see when sites are stopped and Local is properly shut down if there are still programs running on ports 80 and 443. These may be conflicting with Local or the system may be reporting Local is still running.
Once you run that command you should see a list of listening ports. If you see a particular program making use of those ports, you can then kill that process by running sudo kill -9 XXX where XXX is the PID number of that process. (On Windows you will use taskkill /F /pid XXX where XXX is the PID number of that process)
After that, you should be able to retry. Keep us posted if you have any questions or continuing issues.
Thank you! It’s definitely curious. I went back to your comment here, and it definitely seems like maybe something was left on this machine that could be throwing a wrench in the works:
I also do some part-time editing and use a software package called TexStudio which allows PDFs to be edited. This package doesn’t work on this machine either. I wonder if it's the same underlying issue.
Are there any errors you’ve come across or troubleshooting you’ve done regarding that software that might help root out a culprit either?
Went back to the vendor and asked about any software which could have been left and he showed me where it could be found if it was on there. I have checked and it isn’t on there
After one of your last communications about other apps running on the machine, I downloaded XAMPP and tried to run it on my computer and got the following. I started it as administrator. I have gone into windows defender and avast firewall (which runs the firewall on this machine and on my other machine which runs Flywheel fine, but very slowly) and created rules which explicitly state that 443 and 80 should be open
I have gone into windows defender and avast firewall (which runs the firewall on this machine and on my other machine which runs Flywheel fine, but very slowly) and created rules which explicitly state that 443 and 80 should be open
Finally, I have run netstat again with Flywheel running and I find the following, where PID 18404 is nginx.exe
When the computer is restarted and turned on, close any applications that automatically run in the background that we’ve talked about previously (AntiVirus, Firewall, other Developer applications).
Check and see if the issue still persists. If so, please provide us with an updated log. Retrieving Local’s Log File