Unable to clone site config

I’m pulling my first site from WPEngine with a new install of Local. The initial pull seems to be getting stuck and I’m getting the following errors in the local-lightening.log file -
{“thread”:“main”,“class”:“DevKitService”,“message”:“Could not create directory ‘/home/robid/.ssh’.\r\n”,“level”:“warn”,“timestamp”:“2020-02-23T16:43:50.698Z”}
{“thread”:“main”,“class”:“DevKitService”,“message”:“Failed to add the host to the list of known hosts (/home/robid/.ssh/known_hosts).\r\n”,“level”:“warn”,“timestamp”:“2020-02-23T16:43:50.993Z”}
{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Database downloaded to .\_wpeprivate\autoload.sql\n”,“timestamp”:“2020-02-23T16:44:04.756Z”}
{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Cloning site-specific config via SSH Gateway…\n”,“timestamp”:“2020-02-23T16:44:04.760Z”}
{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:"\u001b[1;31m\rError: \u001b[0mUnable to clone site config: Unable to pull config: Unable to pull config files: Could not create directory ‘/home/robid/.ssh’.\r\nFailed to add the host to the list of known hosts (/home/robid/.ssh/known_hosts).\r\n\n",“timestamp”:“2020-02-23T16:44:22.549Z”}
{“thread”:“main”,“reason”:{“message”:“ENOENT: no such file or directory, open ‘C:\Users\robid\Local Sites\lvroofing\app\public\.wpengine-conf\wp-config-site.php’”,“stack”:“Error: ENOENT: no such file or directory, open ‘C:\Users\robid\Local Sites\lvroofing\app\public\.wpengine-conf\wp-config-site.php’”},“p”:{},“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2020-02-23T16:44:22.568Z”}

Seems like it’s looking for a /home/robid folder, but I’m running Windows 10 not unix or mac, so that folder structure does not exist. Any help would be appreciated!

Thanks!
Ryan

Hi Ryan,

Would it be alright if I generated credentials for your account to attempt a clone myself? I’d like to try to replicate on Windows.

The errors related to /home/robid come from the Windows SSH binary, which no matter what we do attempts to write to that directory. The clone should work even with those errors though.

Thanks!

Hey @stallings, that would be fine, thanks!

Hey Ryan,

It’s looking like this issue is caused by an incompatibility between Local and WordFence.

I got a detailed error locally when Local attempted to import the database:

Error: ERROR 1062 (23000) at line 1175: Duplicate entry ‘\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xEF\xBF\xBD\xEF\xBF\xBD’ for key ‘PRIMARY’

This is usually caused by WordFence tables in the database that have binary data as the primary key which triggers the above error on import.

Are you currently using WordFence? Unfortunately currently the only known workaround is to remove those tables. The full list of tables can be found here:

Hey @stallings,

I suppose I could survive without Wordfence, especially since WPEngine handles a lot of the security. Would be nice if we could exclude tables/plugins when pulling, so I could leave WordFence in place on the production server. I could see where that ability would be handy for other scenarios where things differ between environments.

Thanks for the help!
Ryan

Hey @stallings,

I’ve uninstalled WordFence and removed the WF tables from the database, but I’m stilling getting the same errors in the logs. Any chance you could do another test pull on your side?

Thanks!
Ryan

Here are the last lines from the log for your reference -

*{“thread”:“main”,“message”:“Creating MySQL database…”,“level”:“info”,“timestamp”:“2020-02-25T22:30:00.318Z”}
*{“thread”:“main”,“class”:“DevKitService”,“message”:“Could not create directory ‘/home/robid/.ssh’.\r\n”,“level”:“warn”,“timestamp”:“2020-02-25T22:30:02.254Z”}
*{“thread”:“main”,“class”:“DevKitService”,“message”:“Failed to add the host to the list of known hosts (/home/robid/.ssh/known_hosts).\r\n”,“level”:“warn”,“timestamp”:“2020-02-25T22:30:02.560Z”}
*{“thread”:“main”,“class”:“HostsFileService”,“stdout”:“Updating hosts file at C:\WINDOWS\System32\drivers\etc\hosts\nUpdated hosts file at C:\WINDOWS\System32\drivers\etc\hosts\n”,“stderr”:"",“level”:“info”,“message”:“Updated hosts.”,“timestamp”:“2020-02-25T22:30:05.471Z”}
*{“thread”:“main”,“class”:“DevKitService”,“message”:“Failed to create shell\r\nConnection to lvroofing.ssh.wpengine.net closed by remote host.\r\n”,“level”:“warn”,“timestamp”:“2020-02-25T22:31:04.694Z”}
*{“thread”:“main”,“class”:“DevKitService”,“message”:“rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]\nrsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]\n”,“level”:“warn”,“timestamp”:“2020-02-25T22:31:04.695Z”}
*{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Downloading latest excerpt from install …\n”,“timestamp”:“2020-02-25T22:31:04.756Z”}
*{“thread”:“main”,“class”:“DevKitService”,“message”:“Could not create directory ‘/home/robid/.ssh’.\r\n”,“level”:“warn”,“timestamp”:“2020-02-25T22:31:04.904Z”}
*{“thread”:“main”,“class”:“DevKitService”,“message”:“Failed to add the host to the list of known hosts (/home/robid/.ssh/known_hosts).\r\n”,“level”:“warn”,“timestamp”:“2020-02-25T22:31:05.198Z”}
*{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Database downloaded to .\_wpeprivate\autoload.sql\n”,“timestamp”:“2020-02-25T22:32:01.126Z”}
*{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Cloning site-specific config via SSH Gateway…\n”,“timestamp”:“2020-02-25T22:32:01.129Z”}
*{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:"\u001b[1;31m\rError: \u001b[0mUnable to clone site config: Unable to pull config: Unable to pull config files: Could not create directory ‘/home/robid/.ssh’.\r\nFailed to add the host to the list of known hosts (/home/robid/.ssh/known_hosts).\r\n\n",“timestamp”:“2020-02-25T22:32:12.625Z”}
*{“thread”:“main”,“reason”:{“message”:“ENOENT: no such file or directory, open ‘H:\My Drive\_Local Sites\lvroofing\app\public\.wpengine-conf\wp-config-site.php’”,“stack”:“Error: ENOENT: no such file or directory, open ‘H:\My Drive\_Local Sites\lvroofing\app\public\.wpengine-conf\wp-config-site.php’”},“p”:{},“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2020-02-25T22:32:12.641Z”}

Hey @stallings , I’m just following up to see if you were able to retest now that I’ve removed wordfence and related tables? Thanks!

I’m having a very similar issue to @robidigital. Any updates on this?

{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Downloading latest excerpt from install …\n”,“timestamp”:“2020-03-10T14:39:31.428Z”}
{“thread”:“main”,“class”:“DevKitService”,“message”:“Could not create directory ‘/home/zacha/.ssh’.\r\n”,“level”:“warn”,“timestamp”:“2020-03-10T14:39:31.600Z”}
{“thread”:“main”,“class”:“DevKitService”,“message”:“Failed to add the host to the list of known hosts (/home/zacha/.ssh/known_hosts).\r\n”,“level”:“warn”,“timestamp”:“2020-03-10T14:39:31.819Z”}
{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Database downloaded to .\_wpeprivate\autoload.sql\n”,“timestamp”:“2020-03-10T14:39:39.441Z”}
{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“Cloning site-specific config via SSH Gateway…\n”,“timestamp”:“2020-03-10T14:39:39.444Z”}
{“thread”:“main”,“class”:“DevKitService”,“level”:“info”,“message”:“\u001b[1;31m\rError: \u001b[0mUnable to clone site config: Unable to pull config: Unable to pull config files: Could not create directory ‘/home/zacha/.ssh’.\r\nFailed to add the host to the list of known hosts (/home/zacha/.ssh/known_hosts).\r\n\n”,“timestamp”:“2020-03-10T14:39:50.942Z”}
{“thread”:“main”,“reason”:{“message”:“ENOENT: no such file or directory, open ‘C:\Users\zacha\Local Sites\gearsource\app\public\.wpengine-conf\wp-config-site.php’”,“stack”:“Error: ENOENT: no such file or directory, open ‘C:\Users\zacha\Local Sites\gearsource\app\public\.wpengine-conf\wp-config-site.php’”},“p”:{},“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2020-03-10T14:39:50.953Z”}

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