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

Hello, Gurvak! :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 or the actual 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

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

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 and try again?

Thanks!

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.

Main log file redacted for security (Kinsta staff edit)

Now it seems the application is not even launching

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!

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

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.

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.

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

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

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.

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

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!

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.

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

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.

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.

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?

(main.log redacted)

Here’s the latest log file for your review

@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.

[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:

Let us know how it goes!

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 :blush: @Adrian_L @JovanaDjordjevic @merineth @Brandon @Andrew

1 Like

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