# Whenever I am trying to add a site in DevKinsta I am getting this error "Something bad happened" this is happening on both my macbook and my windows laptop

**URL:** https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076
**Category:** Application Support
**Created:** [March 27, 2026, 10:33am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076 "2026-03-27T10:33:51Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 27, 2026, 10:33am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/1 "2026-03-27T10:33:51Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/9/92bf86263044221fb797c218ae12070a07a9483c.jpeg)

---

<div class="post-metadata">

### Author: ![JovanaDjordjevic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jovanadjordjevic/32/3854_2.png) [@JovanaDjordjevic](https://community.kinsta.com/u/JovanaDjordjevic)
#### Post date: [March 27, 2026, 12:37pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/2 "2026-03-27T12:37:18Z")

</div>

Hello, Gurvak! 👋 Thanks for reaching out.  
I hope you are doing well! This is Jovana from the Kinsta Team. 😊

Can you please provide us with the details from the main.log file or the actual file, so we can investigate further?  
You can check how to view it [here](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes/#viewing-the-application-log-file).

Please let me know if you need anything else.

Best regards,  
Jovana

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 27, 2026, 1:43pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/3 "2026-03-27T13:43:11Z")

</div>

Here I have attached the log as requested, sorry should have done that already with my post my bad.

---

<div class="post-metadata">

### Author: ![JovanaDjordjevic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jovanadjordjevic/32/3854_2.png) [@JovanaDjordjevic](https://community.kinsta.com/u/JovanaDjordjevic)
#### Post date: [March 27, 2026, 2:41pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/5 "2026-03-27T14:41:36Z")

</div>

Thank you for that.

I checked, and it seems you didn’t grant permission to edit the host file. That is why it is failing.

Can you please ensure you [upgraded DevKinsta to the latest version](https://kinsta.com/devkinsta/download/) and try again?

Thanks!

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 27, 2026, 4:42pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/6 "2026-03-27T16:42:20Z")

</div>

I have installed the latest version and also it does not give me a prompt to grant it permission.

Let me find a way to manually grant it permission.

I also noticed something strange, when I am creating a website or opening DevKinsta the prompt for permisison is not getting triggered, but when I am deleting the website I am getting the prompt to grant permission.

Now I do not understand how can I fix this.

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 27, 2026, 5:29pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/7 "2026-03-27T17:29:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/7/7f947aacc8470dff39ee9d37fa60b5daf770ae2b.jpeg)

Main log file redacted for security (Kinsta staff edit)

Now it seems the application is not even launching

---

<div class="post-metadata">

### Author: ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)
#### Post date: [March 28, 2026, 2:18am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/10 "2026-03-28T02:18:11Z")

</div>

Hi @Gurvak_Singh! Thank you for your reply!

I am sorry to see that DevKinsta is now experiencing an error while starting. I have reviewed the main.log file you provided in your post and noticed it appears the devkinsta\_nginx Docker container may not be running.

To try and get the container running again please fully stop DevKinsta, and then fully exit Docker Desktop and restart it. At this point please review the status of the DevKinsta related containers to ensure they are running. If they still appear stopped at this point please launch DevKinsta again as this should complete the startup process.

If the error persists however please let us know. If you could also include the status of each DevKinsta related Docker container (if it is running, stopped, or in an error state) that will help in our investigation.

We look forward to hearing back from you!

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 28, 2026, 3:52am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/11 "2026-03-28T03:52:11Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/1/147a089a83260b349c35ccfccb5d732c07c4667e.jpeg)

The Nginx container is stuck and keep restarting, as it keep lookig for the ssl certificate and I haven’t created any websites, I have uninstalled, deep cleaned my mac for any reamaning file or caches for DevKinsta and re-installed done that 3 times still the same issue nginx stuck at restarting and it keeps looking for this ssl certificate in the /www/kinsta/ssl/cloudops.local.crt which does not exist

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 28, 2026, 4:21am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/12 "2026-03-28T04:21:03Z")

</div>

I think I will look for other alternatives to use for the local wordpress development as for some reason whenever I am starting DevKinsta and creating a site it is not asking me for the permission to edit the host file.

And I found there is one other application like this called Local so I think I will be using that. I am sorry to say this but I have no other option.

Thanks for all your efforts and help.

---

<div class="post-metadata">

### Author: ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)
#### Post date: [March 28, 2026, 6:52am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/13 "2026-03-28T06:52:46Z")

</div>

Hi @Gurvak_Singh

From the screenshot that you’ve provide from the `devkinsta_nginx` container, it looks like the `cloudops.local.crt` file is missing from your local machine. I’m not certain how it may have been removed, deleted, or moved, but that seems to be what is causing the issue.

To confirm, please check the `~/DevKinsta/ssl/` folder on your computer and see whether the `.crt` file is still there. If it is missing, you may also want to search your machine in case it was moved elsewhere. If you do find it, please move it back into that folder and then try reopening DevKinsta.

So in your case, if you confirm that the `cloudops.local.crt` file is missing from the `~/DevKinsta/ssl/` folder and you are unable to find it anywhere else on your machine, the next step would be to regenerate it.

Please follow these steps:

Go to the SSL folder:

`cd ~/DevKinsta/ssl/`

Generate the key file:

`openssl genrsa 2048 > cloudops.local.key`

Then generate the certificate file:

`openssl req -new -x509 -nodes -sha256 -days 365 -key cloudops.local.key -out cloudops.local.crt`

You will be asked a few questions during the process. You can answer them like this as an example:

Country Name (2 letter code) [AU]: US  
State or Province Name (full name) [Some-State]: CA  
Locality Name (eg, city): West Hollywood  
Organization Name (eg, company) [Internet Widgits Pty Ltd]: Kinsta  
Organizational Unit Name (eg, section): DevKinsta  
Common Name (e.g. server FQDN or YOUR name): cloudops.local  
Email Address:

Please note that the **Common Name** must match the actual local site URL, in this case:

`cloudops.local`

Once the new files have been created, please also remove the `devkinsta_nginx` container before reopening DevKinsta:

`docker rm -f devkinsta_nginx`

Then reopen DevKinsta. At that point, the error should no longer appear. After that, please test the site and confirm that it loads correctly.

Please give this a try on your end, and hopefully this resolves the issue.  
I will wait for your update, thank you.

---

<div class="post-metadata">

### Author: ![Brandon](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/brandon/32/5477_2.png) [@Brandon](https://community.kinsta.com/u/Brandon)
#### Post date: [March 28, 2026, 11:43am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/14 "2026-03-28T11:43:30Z")

</div>

try this commaand “wsl --shutdown” in powershell / cmd  
Worked for me in the same similar issue

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 28, 2026, 3:12pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/15 "2026-03-28T15:12:53Z")

</div>

I have fixed the nginx container, issue bu there is another issue I am facing it is not triggering the prompt to grant it permission to edit the host file

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 28, 2026, 3:14pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/16 "2026-03-28T15:14:02Z")

</div>

I am using a macbook actually, and I did fixed the issue. But not able to fix the permission issue whenever I am adding a site it is not triggering the permission prompt.

---

<div class="post-metadata">

### Author: ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)
#### Post date: [March 29, 2026, 1:51am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/17 "2026-03-29T01:51:03Z")

</div>

Hi @Gurvak_Singh! Thank you for your reply!

I am happy to hear you have gotten DevKinsta back into a running state. But, I am sorry to hear you are continuing to experience the issue where you are not prompted to update the hosts file when creating a site.

I have looked into this further and I have found a thread where another user had a similar issue. It turned out to be related to AdBlocking software installed on the system. A link to their post can be found here: [Host file update failed DK0022 (authorization never requested) [Mac] - #4 by phil-s](https://community.kinsta.com/t/host-file-update-failed-dk0022-authorization-never-requested-mac/1352/4)

To clarify, do you have any AdBlock software installed that may have modified the hosts ffile? If so, could you please try making a backup of the hosts file, and then resetting the hosts file to a default state?

Please let us know if this helps! We look forward to hearing from you!

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 29, 2026, 4:09am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/18 "2026-03-29T04:09:17Z")

</div>

I have not installed any adblocking software in my macbook. I have noticed one thing, then when I am trying to create a site I am not getting prompted to grant permission, but when I am removing that site I get prompted to grant permission.

Now I am not understanding what is happening and why is that happening. And because I am using a mac there is no way for me to give permission for always or manually do something about, whereas if I was using windows I could have just given the applicaiton admin privileges.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/1/123d5c9d0bf682403e279e2a3a0152ae740dcf6f.jpeg)

My host file is already in default state no changes there.

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

After reviewing the post you shared @Andrew I do not have that error code which is DK0022, my error does not even give me an error code actually. It stops right after configuring the nginx server.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/7/770a8a834be50526835d47f769e7ff660269fb4d.jpeg)

And here as you can see I do get the prompt to delete the site from the host file.

I am sorry if I am being annoying or being nuisance. But I really don’t understand why I am having this issue. For the mean time I using another application like this but I would really want devkinsta to work so that I can use it. I have used it in past and find it to be far better than any other application.

I did some searching around and found out that the helper tool for DevKinsta for some reason is not getting installed.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/d842e0886a38be4385991d769505bafaa20f9116.jpeg)

---

<div class="post-metadata">

### Author: ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)
#### Post date: [March 29, 2026, 8:06am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/19 "2026-03-29T08:06:14Z")

</div>

Thank you for the update and for sharing the screenshots of the error.

I’ll need to investigate this further and will try to reproduce the issue on my end.

Would you be able to send us the latest `main.log` file as well so we can take a closer look?

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [March 29, 2026, 10:40am UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/20 "2026-03-29T10:40:54Z")

</div>

(main.log redacted)

Here’s the latest log file for your review

---

<div class="post-metadata">

### Author: ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)
#### Post date: [March 29, 2026, 10:59pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/22 "2026-03-29T22:59:43Z")

</div>

@Gurvak_Singh

Upon reviewing the main.log file, I noticed that the Nginx server/container initially failed to restart, but the most recent and consistent error I now observe is a permissions issue for the user “root” in the database.

```auto
[2026-03-28 09:41:49.907] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:12.959] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:13.516] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:13.731] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:13.955] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:14.301] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:14.493] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:14.668] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:14.836] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:15.000] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:15.158] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:15.479] [error] [ipcMainStep] Error in operation SITE_CREATION, step database: Error: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[2026-03-28 09:42:20.058] [error] Error - DK0051: DELETE_SITE_DATABASE: Error (1): UERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

```

To resolve this, can you please try the solution provided here:

> [@Error: Something bad happened - when trying to import site from myKinsta](https://community.kinsta.com/t/error-something-bad-happened-when-trying-to-import-site-from-mykinsta/5661/15):
>
> Hello @wpcreative-jwwaving_hand As discussed in our chat, I’m posting a complete step by step instructions, if needed in the future. @Seyed My colleague and I gave you the steps in the other threads, but I wanted to tag you here as well. Note: This applies to fixing the issues with site creation that are caused by database access error (in DevKinsta main.log, it’s → ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES) ). Part ONE - RESETING ‘root’ USER PASSW…

Let us know how it goes!

---

<div class="post-metadata">

### Author: ![Gurvak\_Singh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/gurvak_singh/32/2637_2.png) [@Gurvak\_Singh](https://community.kinsta.com/u/Gurvak_Singh)
#### Post date: [April 1, 2026, 2:31pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/23 "2026-04-01T14:31:47Z")

</div>

Thank you so much, for the help provided by everyone the issue is not fixed, and I am now able to create new sites.

Feels so great now thank you so much and I have bookmarked the link that you shared for the issue so if I encounter the same issue in future I could just reference the link and fix the issue.

Feeling so good now.

THANK YOU!!! EVERYONE 😊 @Adrian_L @JovanaDjordjevic @merineth @Brandon @Andrew

---

<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: [April 4, 2026, 4:02pm UTC](https://community.kinsta.com/t/whenever-i-am-trying-to-add-a-site-in-devkinsta-i-am-getting-this-error-something-bad-happened-this-is-happening-on-both-my-macbook-and-my-windows-laptop/6076/24 "2026-04-04T16:02:51Z")

</div>

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