Issue Summary
Constant 504 gateway timeouts since move to 5.8.1. Alsoi issue with uninstal of 5.7.4 not removing nginx.exe
Troubleshooting Questions
- Does this happen for all sites in Local, or just one in particular?
Only have one small site. - Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Have not tried this, doesn’t seem relevant, but will give it a shot and update this post
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!
local-lightning.log (382.2 KB)
504 gateway timeous after upgrading to Local 5.8.1 from 5.7.4
I have been running Local (free version) 5.7.4 since it became available without incident.
I have a single, smallish WP site and am running the current version of Wp - 5.5.1. I upgraded to 5.8.1 two or three days ago, and have been plagued by 504 Gateway timeouts ever since (to the point that the Local site is unusable- a couple og page changes and I have to restart, and eventually have to restart local and finally the whole system to be able to just view the site, much less work on it).
In the process of troubleshooting this, I have several times uninstalled 5.8.1, and reinstalled 5.7.4. At first this seemed to help. I decided to restore 5.8.1 to gather symptoms and logs for submitting a problem report but happened to notice that Local’s directory tree under Program Files (X86) was still present. In the interest of thoroughness, I tried (and failed) to delete the directory tree, with a warning that the tree was not empty. A quick exploration revealed that everything except nginx.exe was gone, so I tried to delete it, but could not because it was still running. Evidently, neither exiting Local nor running the uninstall process had failed to stop nginx.exe, but the uninstall reported no error. I used task manager to kill the process, then deleted the tree successfully and re-installed 5.8.1.
At first this seemed to correct everything, as the 504 errors seemed to be gone. I then stopped the site and started it again, only to get a 504 Gateway timeout. Looking at task manager, I noted that there wer 4 instances of a Local sub-process under the main Local process, and two instances of nginx.exe. after starting and stopping a few more times, I had, under the main local.exe process, two intances of Apache (the site is set up for apache), 2 instances of CGI, 7 instances of Console Window Host, 4 instances of Local, mailhog, mysql, and two instances of nginx. This doesn’t seem quite right, but who am I to say. I then stopped the site, and exited Local.30 minutes later, I still have running a local.exe process with a console window host and an nginx.exe subprocess. I have attached screen captures of Task manager illustrating the above narrative. The Local Monitoring mini in the last capture is not yours, rather it belongs to Acronis (an image/cloud backup tool which I have used for several years, recently updated to 2021 version). I believe Local has a problem, likely since 5.7.4, as at the very least the uninstall should have stopped and removed nginx.exe, or at least complained if it could not. The install should have complained as well, as it could not have successfully replaced nginx.exe while it was running.
I will also gather todays Local log files and attach them. Any guidance would be welcome. I can provide a backup of the Wp site or take one of the local site if that would help you. I am willing to try additional troubleshooting that you might require in resolving this.
System Details
-
Which version of Local is being used? 5.8.1
-
What Operating System (OS) and OS version is being used?
- For example: macOS Catalina or Windows 10 Professional
Windows 10 Pro 64bit, version 2004, OS build 19041.508, Windows Feature Experience Pack 120.2212.31.0; Intel Core i7-8750H CPU @ 2.20Ghz 2.21 GHz, 32GB installed Ram
- For example: macOS Catalina or Windows 10 Professional
-
Attach the Local Log. See this Community Forum post for instructions on how to do so: