Thanks for sending that over @jacksheo. Can you please view your config.json for me and check to see if there are any running operations? On Windows think will be somewhere like C:\Users\username\AppData\Roaming\DevKinsta\config.json (The AppData folder is hidden)
I’ve gone over how to clear running operations here but do you see anything there? You can also send that file to me privately so I can share with our Developers.
Odd, it’s as if it just won’t detect that site for some reason. Can you change that running to “waiting” as well for jack-sheo? That might not fix it either, though.
I was thinking you could just create a new WordPress site in DevKinsta then migrate jack-sheo’s database and files to it since you’re still able to access the actual site when you update your hosts file.
We couldn’t see anything in your config.json that would explain why everything is still greyed out.
Hi @jacksheo, I’ve finally been able to reproduce this issue/fix it on my end and here is my theory:
Something on your PC keeps reverting the host file changes that DevKinsta makes. It could be a security application or something malicious, I do not know. You would have to find a way to track when the file is changed/what is changing it. Here’s a relevant question. We can keeep troubleshooting if it turns out it’s DevKinsta deleting the entries for some reason.
How I Reproduced This:
I opened my hosts file then deleted the DEVKINSTA entries block(including the commented lines)
#### START DEVKINSTA entries
all my domains here
#### END DEVKINSTA entries
I completely closed then restarted DevKinsta. All of my sites were now grey.
How I fixed this:
I completely closed DevKinsta
I added the DEVKINSTA block back with my appropriate host entries.
I opened config.json and changed any host related errors to “running” and deleted the error. There are two places where this change needs to be made for each site. I’ve screenshotted a before and after:
After restarting DevKinsta, I’m able to view the sites like normal again.
So fixing the issue is relatively easy, the hard part is figuring out what process is deleting the host file in the first place. I unfortunately can’t reproduce the randomness of it, that’s why I believe it’s something on your PC that is doing it.
I’m going to discuss a possible built-in solution for DevKinsta to just restore entries on restart with our developers, though. That would at least save you from having to do this manually.
Please let me know if these steps do not work for you or if you figure out what is resetting your hosts file.
Very odd. So yes, I believe you have to edit the hosts file and config.json before starting DevKinsta or else it fails again/rewrites config.json.
I have those same lines added by Docker Desktop in my hosts file as well. but Docker usually only adds those when you initially install it.
No worries about tracking what is doing it, though. Our developers are aware of how we are having to fix this manually and will work on a way to automate this. At least we have a temporary fix for now! Please let me know if anything new develops with this issue!