What issue or error are you experiencing?
After a very productive holiday weekend, I used the export function of LocalWP to back up the site. I also used the “Cloud Backups” plugin to backup the site to Google Drive. What I did not do was use UpdraftPlus to export a backup that could be used independently of LocalWP.
I would advise others reading this to ALWAYS DO THAT FIRST. ALWAYS make a backup of your site that is independent of LocalWP (use UpdraftPlus or something similar). You cannot trust LocalWP to not choke and lose all of your work.
After making my 2 backups, I took a well deserved break for about an hour. When I returned, I opened LocalWP, started the site and clicked the “Open site button”. But, instead of opening the site where I left off, it showed me a 502 error.
The error said to restart the site.
I did and this fixed nothing. I closed all applications and restarted my PC. I restarted LocalWP and I got the same error.
I did as the error instructed and looked at the log files and found errors like this (which mean nothing to me)…
2024/05/27 22:04:07 [error] 16324#21304: *3 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: prod2dev0523242142.wfpc, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:10005/”, host: “prod2dev0523242142.wfpc”
2024/05/27 22:04:10 [error] 16324#21304: *6 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: prod2dev0523242142.wfpc, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:10005/favicon.ico”, host: “prod2dev0523242142.wfpc”, referrer: “http://prod2dev0523242142.wfpc/”
2024/05/27 22:04:49 [error] 27236#16836: *1 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: prod2dev0523242142.wfpc, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:10005/”, host: “prod2dev0523242142.wfpc”
2024/05/27 22:04:52 [error] 27236#16836: *1 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: prod2dev0523242142.wfpc, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:10005/favicon.ico”, host: “prod2dev0523242142.wfpc”, referrer: “http://prod2dev0523242142.wfpc/”
2024/05/27 22:14:57 [error] 2392#6868: *1 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: prod2dev0523242142.wfpc, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:10005/”, host: “prod2dev0523242142.wfpc”
2024/05/27 22:15:00 [error] 2392#6868: *3 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: prod2dev0523242142.wfpc, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:10005/favicon.ico”, host: “prod2dev0523242142.wfpc”, referrer: “http://prod2dev0523242142.wfpc/”
I used netstat to look for the server port (as this seemed to be a server error of some type) and I noticed that the server port (10005) was not in use. Does this mean that the Apache server is no longer working on that site within LocalWP?
I have since (since I have had some 17 hours to contemplate losing my client because of this) tried everything that I could think of.
I made new site and manually copied over the files from the old site. This fixed nothing.
I created a staging site on a real server, copied all public files to it, imported the sql file and the work that I had done using Elementor is not there (but two files used for shortcodes that I created are). Site still does not work.
I tried cloning the site. this only cloned the problem.
I tried making a new clean WP site in LocalWP. this worked, but it doesn’t help me get my 4 days of work back or create a working copy of the site I was working on.
This problem seemed to happen at the same time that LocalWP’s community site went down due to non-payment of some hosting fees. Is LocalWP connected to something online that would be affected by the forum suspension that could have corrupted my site or the backups of the site? It is very odd that these two things happened at the same time.
This is horrible beyond words. I cannot fathom getting people to trust me with their important development projects, only to have no way to help them if they have an issue.
I will be moving future development to InstaWP.com, but I really need to recover the 4 days of work that I did on the site over the holiday weekend, if it is possible to do so.
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
I am unsure of how you would (or why you would) intentionally break a LocalWP site.
System Details
-
Local Version:
Version 9.0.3+6684 -
Operating System (OS) and OS version:
|Edition|Windows 10 Pro|
|—|—|
|Version|22H2|
|Installed on|11/29/2023|
|OS build|19045.4412|
|Experience|Windows Feature Experience Pack 1000.19056.1000.0|
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
Here are the 3 log files that were in roaming/local on my Windows 10 PC…
local-lightning-verbose - three log files.zip (223.0 KB)
access.log (1.5 MB)
error.log (9.8 KB)
site-error.log (6.9 KB)
error-shortened.log (390.1 KB)
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.