When pushing a site to WP Engine it will sometimes be missing the active theme (the folder is missing entirely when viewing the site via FTP), all the plugins (the folders for each plugin will still remain in the plugins folder they are just all empty, any single file plugins in the folder are just missing), every image in the media library jsut shows as a blank square. I see any posts that were already made when working on the site locally, any users, etc so the database is present but for whatever reason all these files are missing leading to a broken site after pushing to WP Engine
Troubleshooting Questions
Does this happen for all sites in Local, or just one in particular?
It seemingly happens at random, pushing the same site one person encountered the bug while another person didn’t using the same process of importing the site into local and then trying ti push it.
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes
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!
Seems to happen randomly one time it will happen another time it wont. I usually resolve it by reverting the site on WP Engine to when it was first installed before I tried to first failed import of the site from local then pushing the site to wp engine again.
System Details
Which version of Local is being used?
6.70.0+6347
What Operating System (OS) and OS version is being used?
ventura 13.0
Attach the Local Log. See this Help Doc for instructions on how to do so: local-lightning.log (954.8 KB)
It has happened on multiple sites, but some sites push fine this happens randomly every now and again where we get only part of the files migrated.
What I did to get the push to take is revert the site on WP Engine to its initial install state then push again. If I push again without doing that the same issue happens where the same important files are missing.
It has happened on three different machines / users at this point, and has been happening almost every time on my machine this past week. Still no changes to process and the only fix I have found is to just push the site again until it actually works so I can’t figure any step on my end that is different to cause it.
Edit: I saw earlier you asked for site size, the exported zip file from Local is 90mb
Are you all using a shared network? Amongst the users experiencing this are you on a common office network or are you all in different locations? I’m just trying to rule out a localized network issue. Sometimes we see issues where a company firewall could be limiting connections. This could also be the case if you’re forced to use some type of VPN or other security feature on your connection. Would anything like that apply?
I tried adding a new API key and connecting to WP Engine with it, but haven’t pushed enough sites yet to see if that resolved the issue. I’ll update the thread if it happens again.
Any other info that might be related to the issue let me know.
Regenerating your API creds is a great next step! We do see sometimes that can resolve issues with Local Connect on WPE. Keep us posted if you continue to notice lingering issues.
Just happened again on my machine, nothing different I am doing. This is with the new credentials for the API.
Resolution is just to restore wp engine site to initial install then push again. Tried to push again without reverting and getting the same missing files from the site.
{"thread":"main","class":"DevKitService","message":"rsync warning: some files vanished before they could be transferred (code 24) at main.c(1209) [sender=3.1.3]\n","level":"warn","timestamp":"2023-07-06T16:39:27.230Z"}
That means that for some reason when Local went to deploy those files they couldn’t be found.
It’s uncertain why that is happening, there could be a few reasons:
Was some change being made while Local was pushing things up?
Did a plugin or theme make a change?
Could the machine’s disk run out of space or become corrupted?
Is the site folder mounted from a different physical drive (like an external drive?) that could have gotten disconnected before the push was finished? Or it also ran out of room or became corrupted.
It doesn’t appear to be a Local bug but could be a conflict happening with the site’s configuration or some hardware. Since you’ve replicated it on multiple machines/sites, it’s likely the former. Is there anything uniquely similar between all the sites that have experienced this issue as far as a common plugin or theme that is used?
Was some change being made while Local was pushing things up? No but I am using the computer for other things while it pushes
Did a plugin or theme make a change? I’m not using or editing the site during the push, I don’t have any automated actions running
Could the machine’s disk run out of space or become corrupted? I have 300gb free on a new mac book pro
Is the site folder mounted from a different physical drive (like an external drive?) that could have gotten disconnected before the push was finished? Or it also ran out of room or became corrupted. Same disk as everything else
It doesn’t appear to be a Local bug but could be a conflict happening with the site’s configuration or some hardware. Since you’ve replicated it on multiple machines/sites, it’s likely the former. Is there anything uniquely similar between all the sites that have experienced this issue as far as a common plugin or theme that is used? I thought that may have been the issue with the theme since we all use one theme but had to port a site from a new client today that has a completely unrelated theme and plugin setup that another company did and had the same problem trying to push it to WP Engine.
Here is a new log if it gives any new or different info local-logs1.zip (73.1 KB)
Edit: Although the missing file error did give me an idea, FTPing into the site and uploading the wp-content folder manually seemed to fix the site since the database is importing correctly. I’ll try that again next time it happens.
Thank you again for all of your detail and patience. Would you be able to download our latest release, 7.1 from here? Releases - Local
With that release in place, what we’d like is for you to replicate the issue if possible or wait until it happens again since I know it’s intermittent and then send us an updated Local Log one more time. The reason being we have made some logging changes in this latest release that might help give us some newer/different details.
Thank you again for all your patience and communication!