# WordPress Site setup failed Error DK0021

**URL:** https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755
**Category:** Installation
**Created:** [September 21, 2022, 9:46pm UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755 "2022-09-21T21:46:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ahmedwasiq89](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ahmedwasiq89/32/1460_2.png) [@ahmedwasiq89](https://community.kinsta.com/u/ahmedwasiq89)
#### Post date: [September 21, 2022, 9:46pm UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/1 "2022-09-21T21:46:16Z")

</div>

Hi, I was on my Lenovo Yoga Laptop Win 10 home Where dev kinsta were very slow, loading a page takes 20 sec normally which was very annoying. I was suggested to try it in Hyper-V environment.

Now I set up my dev kinsta on my workstation, 64GB of RAM, SSD, Win 10 pro. and now I am on Hyper-V environment on docker. but I am getting the error [WordPress Site setup failed DK0021]

I tried the solution of restarting the app but no effect, instead I reinstall the devkinsta, did nothing.

I searched for the solution and again tried another solution by deleting [C:\Users\username\AppData\Roaming\DevKinsta\installers] elements but it also did no magic.

Error is still there and the same. It is very frustrating now being developing the site, and I am stuck at the beginning for the last 1 week.

Your solution would be appreciated.

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [September 21, 2022, 10:47pm UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/2 "2022-09-21T22:47:54Z")

</div>

Hi @ahmedwasiq89, thanks for reaching out!  
Can you please private message your[main.log file](https://kinsta.com/knowledgebase/devkinsta/error-codes/#info) to me?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0b56a83739a791951333e2c5f23d270ccf8fc92c.png)

I will check what the exact error is.

---

<div class="post-metadata">

### Author: ![ahmedwasiq89](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ahmedwasiq89/32/1460_2.png) [@ahmedwasiq89](https://community.kinsta.com/u/ahmedwasiq89)
#### Post date: [September 22, 2022, 2:51am UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/3 "2022-09-22T02:51:11Z")

</div>

These are 2 main log files, kindly check these if the error can be resolved.

main.old.log (1.1 MB)  
main.log (51.3 KB)

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [September 22, 2022, 4:33pm UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/4 "2022-09-22T16:33:52Z")

</div>

Thank you @ahmedwasiq89, looking at your error error logs, it looks like you were able to import a site into DevKinsta, is that correct?

This is the error that I’m seeing that’s causing the site creation error:

```auto
[error] [ipcMainStep] Error in operation SITE_CREATION, step baseapp: Error: Encountered an error: Error: Command failed: curl https://wordpress.org/wordpress-6.0.2.zip -o "C:\Users\USERNAME\DevKinsta\wp\wordpress-6.0.2.zip"
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

```

This error seems to happen due to your network:

> <https://stackoverflow.com/questions/45556189/git-the-revocation-function-was-unable-to-check-revocation-for-the-certificate>

> **[How to fix Failed - Certificate error (revocation check) 221 | Ninite Help](https://ninite.com/help/errors/revocation.html)**
>
> The easiest, fastest way to update or install software. Ninite downloads and installs programs automatically in the background.

That step is trying to download WordPress then unzip it into that folder. Could you also try manually adding/extracting the WordPress zip? That may allow DevKinsta to skip this step  
`C:\Users\USERNAME\DevKinsta\wp\wordpress-6.0.2.zip`

---

<div class="post-metadata">

### Author: ![ahmedwasiq89](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ahmedwasiq89/32/1460_2.png) [@ahmedwasiq89](https://community.kinsta.com/u/ahmedwasiq89)
#### Post date: [September 22, 2022, 10:51pm UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/5 "2022-09-22T22:51:46Z")

</div>

> [@Kevin](#):
>
> `next InitializeSecur`

Manually adding wordpress won’t help, still same error.

I successfully imported my kinsta site in Dev Environment, but if I create new site from manual backup it stucks on “Validating Backup file”. and after an hour it says “something bad happens”

I want to Import through my downloaded backup so I can recreate the database name and other testing before uploading it to kinsta again. so help me in this too.

The other error I am facing while creating a new site stuck on this error “WordPress site setup failed DK0021”

I want to clear that the only option that is working direct import from kinsta, the other all options not working, like Import from backup zip file. or creating new site.

Please check these screenshoots.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/e/eed15a78975d041f2a8d5634533c31f77101d332.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/4/4eab9134e515d9e245b6dd92ff930d103d49f567.png)

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [September 22, 2022, 11:52pm UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/6 "2022-09-22T23:52:28Z")

</div>

The DK0021 is due to that network error I mentioned when DevKinsta tries to use cURL to download WordPress. Something with your system or network is blocking the cURL request. If you cannot configure your network then you will need to add the WordPress files manually.

If you populate the ~/DevKinsta/wp/ folder with extracted WP installs, DevKinsta will not try to download those ZIP files and should move on to the next step.

That folder is supposed to look like this:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/7/78df51746b8a02db038e0ec3e20353f4c95842f4.png)

With each ZIP extracted:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/d9a29fe87a6604f3b321d835379b404ee1d1bf31.png)

You can see exacly where the WP download is failing in your main.log. Here are links to the files that need to be downloaded:  
[https://wordpress.org/wordpress-6.0.zip](https://wordpress.org/wordpress-6.0.zip)  
[https://wordpress.org/wordpress-6.0.1.zip](https://wordpress.org/wordpress-6.0.1.zip)  
[https://wordpress.org/wordpress-6.0.2.zip](https://wordpress.org/wordpress-6.0.2.zip)

Please download and extract each WP version and make sure the folder names match what I have. After this, please try creating a site again and share your main.log files with me so I can see the new errors, if any.

---

<div class="post-metadata">

### Author: ![ahmedwasiq89](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ahmedwasiq89/32/1460_2.png) [@ahmedwasiq89](https://community.kinsta.com/u/ahmedwasiq89)
#### Post date: [September 23, 2022, 12:23am UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/7 "2022-09-23T00:23:31Z")

</div>

Thank you, that works as charm, extracting same name in that folder works, this problem is solved.

Now please help in importing from backup zip file which is not working as mentioned in previous reply.

Regards

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [September 23, 2022, 1:36am UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/8 "2022-09-23T01:36:38Z")

</div>

Perfect; can you try the backup zip import one more time. It will fail but please share the main.log files with me right after it fails.

I’ll need to look over them and perhaps share with our developers since it is such a new feature.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [September 26, 2022, 1:37am UTC](https://community.kinsta.com/t/wordpress-site-setup-failed-error-dk0021/1755/9 "2022-09-26T01:37:25Z")

</div>

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