Integrating Subdirectory-Based Multisite with DevKinsta

※Since this translation is done using a generative AI, there might be some awkward or inaccurate English.

When trying to retrieve a remote multisite to local using DevKinsta, an error occurs during the creation of the MySQL database.

Verification Process:

  1. Create a multisite on Kinsta (remote) <at this point, there is only one site>
  2. Successfully retrieve it to DevKinsta (local)
  3. Add two more sites to the multisite on DevKinsta (local) <main_domain/aaa, main_domain/bbb>
  4. Successfully reflect changes from DevKinsta (local) to Kinsta (remote)
  5. Fail to retrieve from Kinsta (remote) to DevKinsta (local)

Even with a subdirectory-based multisite, when there was only one site, it was possible to move back and forth between remote and local. However, after creating subdirectory sites, it became impossible to transfer from remote to local via DevKinsta.

When there is one site:

  • Local to remote (push) ◯
  • Remote to local (pull) ◯

When there are multiple sites:

  • Local to remote (push) ◯
  • Remote to local (pull) ✕

No files have been updated.

Hello, Keisuke! :wave: Thanks for reaching out.
I hope you are doing well! This is Jovana from the Kinsta Team. :blush:

Can you please provide us with the details from the main.log file, so we can investigate further?
You can check how to view it here.

Please let me know if you need anything else.

Best regards,
Jovana

Thank you for your message. I apologize for the delay in my response. I was able to retrieve the logs. Regarding sending the logs, should I send them through the attached “Message”? Please confirm

@keisuke Yes, that’s correct. Could you also send it to me via DM since Jovana is currently off shift?

Can you please also provide the following?

DevKinsta Version:
OS Version:
Docker Desktop Version:

Looking forward to your response.

I acknowledge the above matter. I have sent it via “Message” earlier. Please check it at your convenience.

Hello @keisuke :waving_hand:

I have checked the main log,

I have tried several times using different approaches.

  1. I created a Multisite on Kinsta
  2. Pulled it to DevKinsta successfully
  3. Added 2 subsites to the site that’s on DevKinsta
  4. Pushed changes to staging site on Mykinsta (Dev Kinsta won’t allow pushing directly to live)
  5. Made another change on the staging site (not DevKinsta, the one on actual Kinsta server) and again I was able to pull the site down successfully.

Can you please try:

  • delete the site in DevKinsta you currently have
  • pull a fresh copy of the live site that’s on DevKinsta
  • when pulling to DevKinsta make sure to select the correct multisite option (subdirectory (main.site/site1) or subdomain (site1.main.site))
  • check wp-config to make sure that define( ‘DOMAIN_CURRENT_SITE’, ‘domain’) has the correct domain specified
  • add one or more subsites
  • push to staging
  • again check wp-config on staging site
  • make changes to staging then pull again to DevKinsta

Let us know if the issue persists.

Kind regards

Thank you for your message. Based on the information provided, we will proceed with the verification and report the results to you.

@keisuke You’re welcome! Looking forward to your update.

@merineth
@JovanaDjordjevic
@VladimirM
Thank you for your response the other day. I was able to resolve the issue successfully. The cause was an error in the domain section of the wp-config.php file. Thank you for your support.

Hi @keisuke

Thank you for your update and for sharing what you noticed and what you did to fix it (in the wp-config.php )!
Glad that you were able to resolve it successfully! :+1:

If you have any other questions/concerns, feel free to open a new topic/thread! :smiley:

Best regards,
Agus Utomo

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