Three local sites on Mac: all files from Public folder disappeared from two of them

Several times, I’ve created local WordPress sites on my Mac, only to have them eventually fail with the 502 error. I recreate them from my All-in-One WP Migration site backups. I now get the 502 error for two of the three sites I currently have. Investigation revealed that all files from the [site_name]/app/public folder of those two sites have disappeared, while the working site has all files intact.

I wouldn’t swear to it, but I think that the functioning site might be the last of the three I created. I created them all on the same day from backups, and I was able to run them all for a time. That’s been the case in the past, as well, before I discovered that files were disappearing. I don’t know whether it’s relevant, but the functioning site uses the OceanWP theme with the free version of Elementor, whereas the sites with the missing files use X Theme with custom Cornerstone and Tribe theme with custom Elementor respectively.

Because I use iCloud backup for my Mac, and backed-up files need to be in the Documents folder, my sites are stored as follows:

[iCloud Drive]/Documents/Websites/[Site1]
[iCloud Drive]/Documents/Websites/[Site2]
[iCloud Drive]/Documents/Websites/[Site3]

I just updated to the latest version of Local (6.4.0+5927), but the problem occurred with previous versions over the past couple years. I’m running macOS 12.4, but, again, the problem occurred with previous versions, too.

These are the 502 errors I get from the Local log for the two malfunctioning sites:

2022/06/15 08:40:00 [error] 8730#0: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: ::1, server: koaleaftribe.local, request: “GET / HTTP/1.1”, upstream: “”, host: “koaleaftribe.local”

2022/06/15 08:44:22 [error] 8957#0: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: ::1, server: koaleaf.local, request: “GET / HTTP/1.1”, upstream: “”, host: “koaleaf.local”

One site used to be the test site for the live site for my wife’s business. The other was an experimental alternate site. The functioning site is a personal blog site I was thinking of taking live. My wife retired, and we shut down the live site, so these local sites are just a hobby for me now.

Any ideas?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.