Issue Summary
Linux Ubuntu 20.04.3 LTS
I’ve done complete deletion of site, and uninstall steps for Local on Linux. Reinstalled Local, issue still persists with site.
All reported errors below have been modified to redact confidential information of domain and user folder.
Window Error prompt appears near the end of a pull import via API credentials. Most of the site files are there, it seems that this part happens when it gets to the DB.
Error: Command failed: /opt/Local/resources/extraResources/lightning-services/php-7.3.5+11/bin/linux/bin/php /opt/Local/resources/extraResources/bin/wp-cli/wp-cli.phar --path=/home/user-redacted/local-site/app/public --require=/opt/Local/resources/extraResources/bin/wp-cli/local-wpcli-error-reporting.php --skip-plugins --skip-themes --url=www.example.com search-replace --all-tables-with-prefix http://www.example.com http://examplelocal.local
local-lightning.log
{"thread":"main","class":"ImporterWPE","stack":"Error: Command failed: %%resourcesPath%%/lightning-services/php-7.3.5+11/bin/linux/bin/php %%resourcesPath%%/bin/wp-cli/wp-cli.phar --path=/home/user-disguised/local-sites/app/public --require=%%resourcesPath%%/bin/wp-cli/local-wpcli-error-reporting.php --skip-plugins --skip-themes --url=wwwdev.example.com search-replace --all-tables-with-prefix http://wwwdev.example.com http://examplelocal.local\nError: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.\n\n at ChildProcess.exithandler (child_process.js:317:12)\n at ChildProcess.emit (events.js:315:20)\n at ChildProcess.EventEmitter.emit (domain.js:467:12)\n at maybeClose (internal/child_process.js:1048:16)\n at Socket.<anonymous> (internal/child_process.js:439:11)\n at Socket.emit (events.js:315:20)\n at Socket.EventEmitter.emit (domain.js:467:12)\n at Pipe.<anonymous> (net.js:673:12)","level":"warn","message":"Unable to import site.","timestamp":"2021-10-27T12:18:38.766Z"}
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
Just one. Tried the import for separate working environments, development, production. Issue still persists. -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes
Replication
- Create site
- Perform a pull from WP Engine
- Select Production environment and include database
- Error appears towards the end of the pull
System Details
-
Which version of Local is being used?
6.1.5+5536 -
What Operating System (OS) and OS version is being used?
- Linux Ubuntu 20.04.3 LTS
-
Attach the Local Log. See this Community Forum post for instructions on how to do so:
Prefer to send this to you privately and not through this public forum.
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.