# Blocked at updating host file 75%

**URL:** https://community.kinsta.com/t/blocked-at-updating-host-file-75/338
**Category:** Bug Reports
**Created:** [February 6, 2021, 1:31pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338 "2021-02-06T13:31:33Z")
**Posts on this page:** 19
**Page:** 2

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [March 24, 2021, 4:17pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/21 "2021-03-24T16:17:08Z")

</div>

Hi @rafu . Could you confirm that you are indeed running these with administrator rights? Perhaps your current user doesn’t have the proper permissions? [User Account Control (UAC)](https://docs.microsoft.com/en-us/windows/security/identity-protection/user-account-control/how-user-account-control-works) may be worth taking a look at as well.

---

<div class="post-metadata">

### Author: ![Evgen\_Savchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/evgen_savchenko/32/381_2.png) [@Evgen\_Savchenko](https://community.kinsta.com/u/Evgen_Savchenko)
#### Post date: [March 25, 2021, 10:41am UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/22 "2021-03-25T10:41:55Z")

</div>

Hello everyone, especialy Mr. michael from Kinsta Staff.  
I have the same problem. No new site can be created. Site installation stops at 75%.  
I tried EVERYTHING that is recommended above in this thread.  
And the rights to edit the host file, and runs as administrator, and UAC is generally disabled (like Windows Defender) from the first day of installing Windows. The most recent versions of EVERYTHING on the computer. WSL 2 installed and updated files. And the virtualization in BIOS is on. AND EVERYTHING, EVERYTHING … I can’t understand what could be the reason. Neither a new site nor a WordPress site is created, not from scratch, the installation does not continue later …

 ![devkinsta-upd-host-file-problem](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/c1fa5c94704e1ef206059d8f1d6db1d46c36bac2.png)

---

<div class="post-metadata">

### Author: ![Lemarque](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@Lemarque](https://community.kinsta.com/u/Lemarque)
#### Post date: [March 25, 2021, 11:35pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/23 "2021-03-25T23:35:30Z")

</div>

Just to say,

Using Kaspersky and had the same issue. Never a problem with WAMP.

But I paused KIS and, VOILA! DK wrote to the hosts file.

---

<div class="post-metadata">

### Author: ![Evgen\_Savchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/evgen_savchenko/32/381_2.png) [@Evgen\_Savchenko](https://community.kinsta.com/u/Evgen_Savchenko)
#### Post date: [March 26, 2021, 2:10pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/24 "2021-03-26T14:10:00Z")

</div>

Thanks for your observations.  
I am using TotalAV Pro. I turned it off, turned off everything connected with it from the task manager. Nothing changes. On changing the host file - infinity.  
This is generally a strange bug. Isolated cases, as I understand it. But it exists, and I really want to fix it. I really need help from DevKinsta.

---

<div class="post-metadata">

### Author: ![rafu](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rafu](https://community.kinsta.com/u/rafu)
#### Post date: [April 12, 2021, 9:45am UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/25 "2021-04-12T09:45:01Z")

</div>

For others with the same problem, this might be a workaround, until kinsta publishes a fixed version:

1. Clone a wordpress site from kinsta or create a new one inside the DevKinsta tool.
2. Wait for it to get stuck at updating the hosts file.
3. Exit DevKinsta.
4. Edit the hosts file manually. For this, add entries for your local domain at the end of the file like so (supposing, you used the DevKinsta default domain with `.local`):

```auto
#### START DEVKINSTA entries  
127.0.0.1 <wordpress-site-slug>.local  
127.0.0.1 www.<wordpress-site-slug>.local  
::1 <wordpress-site-slug>.local  
::1 www.<wordpress-site-slug>.local  
#### END DEVKINSTA entries

```

1. Open the Devkinsta config-file (for default Windows installation this is in `%APPDATA%\Roaming\DevKinsta\config.json`) and under `sites` find your freshly created site. Replace the `"status"`-value with `"running"`:

```auto
[...]
"sites": [
		{
			"id": "<some-unique-id>",
			"status": "running",
			"name": "<wordpress-site-slug>",
            [...]
        }
],
[...]

```

1. Under the same site, there is another entry with key `hostFile` with `"status": "error"` and some error message. Remove the error message and replace `"error"` with `"running"`:

```auto
[...]
"hostFile": {
    "status": "running"
},
[...]

```

1. Now you should be able to start DevKinsta again with no errors and the site up and running!

Hope this helps. Don’t now, why they didn’t want us to know, how we could achieve this step manually…? `¯\_(ツ)_/¯`

---

<div class="post-metadata">

### Author: ![claumigue](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/claumigue/32/451_2.png) [@claumigue](https://community.kinsta.com/u/claumigue)
#### Post date: [April 21, 2021, 8:09pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/26 "2021-04-21T20:09:09Z")

</div>

Hope they solve it soon, in the meantime I will stick with Local by Flywheel until they fix this problem, I would love to use DevKinsta without having to manually update the hosts file.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [April 21, 2021, 8:18pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/27 "2021-04-21T20:18:32Z")

</div>

Hi @claumigue ! Welcome to DevKinsta. I’m sorry for the trouble. You’re right that you shouldn’t have to manually edit the host file and by default it does not. I understand every system is different though and we’re looking at all possibilities to solve this from occurring.

---

<div class="post-metadata">

### Author: ![Didou\_Schol](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/didou_schol/32/155_2.png) [@Didou\_Schol](https://community.kinsta.com/u/Didou_Schol)
#### Post date: [May 6, 2021, 6:12pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/28 "2021-05-06T18:12:04Z")

</div>

I’ve created 8 sites successfully on local, but the last 2 sites (total of sites is now 10) both seemed to suffer from this problem. @rafu 's fix however quickly sets me on my way again, works great.

Thanks for taking the time to explain the fix.

---

<div class="post-metadata">

### Author: ![Didou\_Schol](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/didou_schol/32/155_2.png) [@Didou\_Schol](https://community.kinsta.com/u/Didou_Schol)
#### Post date: [May 22, 2021, 2:22pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/29 "2021-05-22T14:22:05Z")

</div>

@rafu workaround works for me for creating new websites. I however noticed that removing sites also wasn’t working for me (not related to workaround). I noticed that the batch file that executes had a lot of garbage dns entries so I looked into my hosts file, which is located in c:\windows\system32\drivers\etc.

It had multiple (3 in total) entries that looked like this:

```
# Added by Docker Desktop                          
192.168.2.26 host.docker.internal  
192.168.2.26 gateway.docker.internal  
# To allow the same kube context to work on the host and the container:                          
127.0.0.1 kubernetes.docker.internal  
# End of section 

```

I removed 2 of them and made sure that the IP actually matched the one from my network card. I was now able to succesfully remove the websites that I didn’t need anymore, and create a new website without having to go through the workaround.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [July 9, 2021, 4:35pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/30 "2021-07-09T16:35:22Z")

</div>

With the release of DevKinsta 2.0, could you tell us if you’re still having this issue? You can download DevKinsta 2.0+ here. Thank you and apologies for the trouble here.

---

<div class="post-metadata">

### Author: ![Evgen\_Savchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/evgen_savchenko/32/381_2.png) [@Evgen\_Savchenko](https://community.kinsta.com/u/Evgen_Savchenko)
#### Post date: [July 12, 2021, 7:29am UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/31 "2021-07-12T07:29:12Z")

</div>

Thank you very much, Michael, for your answer. Since then, as I could not find a solution to the problem with installing a new site on DevKinsta, I no longer used this program. After your new answer, I downloaded the new version and installed it. And I was pleasantly surprised that the new site was installed without any problems from the first try! Thank you for your work and the work of the support service! At a high level!

---

<div class="post-metadata">

### Author: ![LindsayB](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@LindsayB](https://community.kinsta.com/u/LindsayB)
#### Post date: [July 21, 2021, 5:22pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/32 "2021-07-21T17:22:28Z")

</div>

**Q: Date/Time this occurred (Provide your time zone also)**  
**A:** 7/21/21 10:06AM PST

**Q: DevKinsta Version**  
\*\*A:\*\*2.0

**Q: OS Version**  
**A:** Windows 10Pro 19043.1110

**Q: Docker Desktop Version**  
**A:** 3.5.2

**Q: Were any error codes or messages observed? If so, what were they?**  
**A:** DK0022 - Host file update failed

**Q: Detailed Description of the Problem**  
**A:** When I create a new site it stops at 75% with a DK0022 error code saying “Host file update failed” When I try to delete the site it says " you didn’t grant permission for site deletion" I am running as administrator.

 ![screenshotDevKinsta](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/f3e98b9f1b622228f10c3cf8bda1542f5d3a757c.png)

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [July 21, 2021, 8:17pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/33 "2021-07-21T20:17:18Z")

</div>

Hey @LindsayB . This may be another case of permissions as the host file may be locked. Have anything that might be blocking this operation from completing?

---

<div class="post-metadata">

### Author: ![LindsayB](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@LindsayB](https://community.kinsta.com/u/LindsayB)
#### Post date: [July 21, 2021, 8:41pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/34 "2021-07-21T20:41:44Z")

</div>

Hi @michael . I suppose it could be antivirus protection, how would I access the correct file to disable this? I have tried to google it but can’t find anything that I could follow. Thanks!

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [July 22, 2021, 2:20pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/35 "2021-07-22T14:20:12Z")

</div>

@LindsayB The issue is that there’s a protection enabled somewhere against this file. DevKinsta needs to be able to edit the host file. As an example, here’s [how to edit the host file manually](https://kinsta.com/knowledgebase/edit-hosts-file/#edit-hosts-file-windows) although DevKinsta itself still needs to be able to gain access to edit the file. If you’re able to disable the antivirus to test that, that might be a good first step.

---

<div class="post-metadata">

### Author: ![LindsayB](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@LindsayB](https://community.kinsta.com/u/LindsayB)
#### Post date: [July 23, 2021, 9:15pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/36 "2021-07-23T21:15:20Z")

</div>

@michael I disabled antivirus and firewall but still got the same error. I followed the steps in editing the host file manually but when opening the file etc it is empty.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [July 26, 2021, 2:12pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/37 "2021-07-26T14:12:32Z")

</div>

@LindsayB We’ll take a look at making this step easier. At the moment there’s something on your machine that’s blocking DevKinsta from being able to write to the host file 😞

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [October 11, 2021, 3:24pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/38 "2021-10-11T15:24:17Z")

</div>

With the release of [DevKinsta 2.2.0](https://kinsta.com/devkinsta/), this should now be resolved. Please let us know if you still experience this issue by creating a new [bug report](https://community.kinsta.com/c/bug-reports/9). Thanks again for using DevKinsta!

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [October 11, 2021, 3:24pm UTC](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338/39 "2021-10-11T15:24:19Z")

</div>



[Previous page](https://community.kinsta.com/t/blocked-at-updating-host-file-75/338.md?page=1)
