Hi @miloszmich, welcome to DevKinsta!
So when you get this error, it can be caused by a “wp cli” error occurring on the Kinsta-end of things. If you SSH into your site, try running this command from your ~/public directory: wp option get home
If that returns anything other than your homepage url, it can cause this error. If that’s not the case, please private message your main.log file to me and I can review the exact error.
Thanks for sending the main.log over @miloszmich!
That’s odd, there’s no normal error but I do notice that your site urls have a port number after them like this: http://yoursite.com:123456 . I’m wondering if that’s affecting the search and replace somehow.
As a test, what do your sites look like when you create a brand new one within DevKinsta? When you go to site.local, is a port number added to the end of the URL?
It’s strange but with different one website i haven’t problems (replacing urls).
With new one, I have port number at the end too (58668 instead 58669 like inside logs with problematic page).
Yes, please see if your sites still work if you force it to 80/443. If the pull still fails after that please share the new main.log with me privately.
Hi @miloszmich, just an update on this, our developers couldn’t see what is causing this just from the logs. That being said, you can do a data pull without the database to get around this:
Create a blank site in DevKinsta
Create a backup of your database on your Kinsta site via SSH: wp db export backup.sql
Sync the files from Kinsta to your new blank site.
Import the database using wp-cli ran from your terminal: docker exec -it devkinsta_fpm bash -c "cd /www/kinsta/public/SITENAME && wp db import backup.sql --allow-root"
(be sure to replace SITENAME with the correct folder name)
Run the search and replace: docker exec -it devkinsta_fpm bash -c "cd /www/kinsta/public/SITENAME && wp search-replace 'remote.site' 'devkinsta.local' --all-tables --allow-root"
(replace the remote and local domains as well as SITENAME)
Please let us know if that doesn’t work or if you run into any issues.