Issue Summary
RSync error when I try to pull from wpengine, even though I’ve updated all the files and only need to import the database
Troubleshooting Questions
- Does this happen for all sites in Local, or just one in particular?
I only have one site
- Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes. But I want to update an existing dev site.
Replication
Have a site on wpengine that deploys with .git
System Details
- Which version of Local is being used?
7.02
- What Operating System (OS) and OS version is being used?
Linux
Relevant local log line here:
{"thread":"main","class":"SshService","message":"Success: Exported to 'sites/smartours/_wpeprivate/autoload.sql'.\ntable_prefix=wp_","level":"verbose","timestamp":"2023-07-05T19:24:23.645Z"}
{"thread":"main","class":"RsyncService","message":"Running rsync with following args: '-avzum', '--include=**/', '--include=**/_wpeprivate/autoload.sql', '--exclude=*', '-e', 'ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa -o ServerAliveInterval=60 -o ServerAliveCountMax=120 -o StrictHostKeyChecking=accept-new -i \"%%userDataPath%%/ssh/wpe-connect\"', 'local+rsync+smartours@smartours.ssh.wpengine.net:/sites/smartours/', '/home/omerida/vhosts/clients/smartours-dev/app/public/'","level":"debug","timestamp":"2023-07-05T19:24:23.645Z"}
{"thread":"main","class":"RsyncService","message":"receiving file list ... ","level":"verbose","timestamp":"2023-07-05T19:25:19.239Z"}
{"thread":"main","class":"RsyncService","message":"rsync: [sender] opendir \"/sites/smartours/.git\" failed: Permission denied (13)\n","level":"warn","timestamp":"2023-07-05T19:25:25.928Z"}
{"thread":"main","class":"RsyncService","message":"done\n","level":"verbose","timestamp":"2023-07-05T19:25:26.254Z"}
{"thread":"main","class":"RsyncService","message":"./\n_wpeprivate/\n_wpeprivate
Note this is after the main rsync process which respects any values in public/.wpe-pull-ignore
.
It looks like this rsync command is for copying down the autoload.sql file? but it wants to sync the .git
folder from wpengine which is only readable by their root user. Also, this rsync command isn’t respecting what’s ignored by .wpe-pull-ignore
which includes a line for .git
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.