# Local site takes 30s to load a page with DevKinsta

**URL:** <https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988>\
**Category:** Application Support\
**Created:** [January 24, 2024, 7:40am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988 "2024-01-24T07:40:33Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [January 24, 2024, 7:40am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/1 "2024-01-24T07:40:33Z")

</div>

I pulled a fresh version of my website from prod, however, my local instance with DevKinsta takes 30s+ to load a single gd page. What is going on?

DevKinsta was working previously. This appeared out of nowhere. Thank god my prod website loads just fine. Any advice on what I can do?

Notably, my local database - when pushing or pulling from Kinsta - shows as 0 KB. Not sure if this could be related?  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/fd64e4138258c93a6684796afd3ba93048f0978c.png)

I’m surprised Kinsta does not formally support DevKinsta. Is there another program I should be using? I just came from WP Engine 🙏

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [January 24, 2024, 1:33pm UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/2 "2024-01-24T13:33:23Z")

</div>

Hello Grnatog 👋

Welcome to **Kinsta Community!**

I am sorry to hear you are experiencing issues with DevKinsta. May I ask for:

- Docker version
- DevKinsta version

In regards to the database showing 0, that’s not normal, it might mean that it didn’t pull correctly from Mykinsta. I would advise removing the site from Mykinsta and pulling again.

And lastly, we do support DevKinsta, however, we provide support here, on Kinsta Community forum.

Looking forward to hearing from you! 🙂

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [January 25, 2024, 2:41am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/3 "2024-01-25T02:41:44Z")

</div>

Thank you for the reply, excited to get some help.

- macOS Sonoma 14.2.1.
- DevKinsta v2.12.1.8460.
- Docker Desktop 4.26.1 (131620). Compose v2.23.3-desktop.2. Kubernetes: v1.28.2. Engine: 24.0.7. Credential Helper: v0.7.0

---

<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:** [January 25, 2024, 6:02am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/4 "2024-01-25T06:02:56Z")

</div>

Hi @grnatog 👋

If you’re experiencing performance issues with your local site, I’d recommend increasing the resources for your Docker Desktop. You can do this by heading to Settings \> Resources.

Also, if you’re seeing that the database is showing **0B** in size, you can check the main.log file of DevKinsta to hopefully get more detailed error as to why that is.

[For MAC users, the main.log file is located at:](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes)  
`/Users/<yourusername>/Library/Logs/DevKinsta`

I hope it helps!

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [January 30, 2024, 5:03am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/5 "2024-01-30T05:03:29Z")

</div>

I increased the resources, but I still see a 0B database. I’m not sure how to interpret the main.log file. Can I send you a DM with it out to help dx what may be going on?

---

<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:** [January 30, 2024, 5:10am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/6 "2024-01-30T05:10:12Z")

</div>

Hey @grnatog, please send me the raw `main.log` file via private message. I’ll take a look to see if I can figure out the issue. 👍

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [January 30, 2024, 5:21am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/8 "2024-01-30T05:21:38Z")

</div>

Sent a PM. It’s worth noting that I AM able to access the database locally and I see all my data is there. Not sure what’s going on?

---

<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:** [January 30, 2024, 5:47am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/9 "2024-01-30T05:47:51Z")

</div>

I’ve noticed some errors in the `main.log` file, which suggests that the pull from Kinsta may have failed at some point.

```auto
$ grep -i "\[error\]" main.log
[2024-01-19 21:26:40.121] [error] Error: (HTTP code 500) server error - Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 
[2024-01-19 21:26:40.132] [error] Error: (HTTP code 500) server error - Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 
[2024-01-19 21:28:26.867] [error] error deleting: devkinsta_fpm - Error: (HTTP code 404) no such container - No such container: devkinsta_fpm 
[2024-01-19 21:28:26.870] [error] error deleting: devkinsta_nginx - Error: (HTTP code 404) no such container - No such container: devkinsta_nginx 
[2024-01-19 21:28:26.872] [error] error deleting: devkinsta_db - Error: (HTTP code 404) no such container - No such container: devkinsta_db 
[2024-01-19 21:28:26.875] [error] error deleting: devkinsta_adminer - Error: (HTTP code 404) no such container - No such container: devkinsta_adminer 
[2024-01-19 21:28:26.879] [error] error deleting: devkinsta_mailhog - Error: (HTTP code 404) no such container - No such container: devkinsta_mailhog 
[2024-01-19 21:28:26.885] [error] error deleting: devkinsta_rsync-ssh - Error: (HTTP code 404) no such container - No such container: devkinsta_rsync-ssh 
[2024-01-19 21:34:39.119] [error] [watchDockerService] Pinging docker: FAILED. (HTTP code 500) server error -  
[2024-01-19 21:34:49.134] [error] [watchDockerService] Pinging docker: FAILED. connect ENOENT /var/run/docker.sock
[2024-01-19 21:34:59.143] [error] [watchDockerService] Pinging docker: FAILED. connect ENOENT /var/run/docker.sock

```

Could you please try creating a new WordPress instance in DevKinsta by pulling the content from your Kinsta production site again? This will help us determine if the 0B database size issue persists.

Also, please click the “Re-apply configurations” in the Docker Desktop if you have this warning when launching the app.

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

Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [February 5, 2024, 5:37pm UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/10 "2024-02-05T17:37:49Z")

</div>

Hi, unfortunately that did not work. I completely removed Docker from my Mac (used some `rm -rf` commands). I, then, reinstalled Docker.

I then deleted my website from DevKinsta. I then re-downloaded my website by “Importing from Kinsta” and it still shows my database as 0B (see the red highlight in screenshot below).

What else can we do? I really need this to work. I don’t want to go back to WP Engine.

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

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [February 5, 2024, 5:41pm UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/11 "2024-02-05T17:41:18Z")

</div>

FWIW, I can open the database locally and see tables. I blurred out potentially identifying info.

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

---

<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:** [February 6, 2024, 12:20am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/12 "2024-02-06T00:20:33Z")

</div>

It looks like the event responsible for displaying the size of the database when accessing the Site Info page of a particular site within Devkinsta is the `[getDbSize]`.

_`[getDbSize]` update "sitenamehere’ site’s db size_

@grnatog Could you please send me an updated version of the `main.log` file for this site via direct message so we can see if the action is failing and to continue troubleshooting the issue? Thank you!

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [February 6, 2024, 12:35am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/14 "2024-02-06T00:35:27Z")

</div>

Yep, just did. Also, this is weird but I see this “flip” between Staging and Local.

Remote shows as 0 bytes, which is incorrect, and Local’s database shows as 0 bytes, which is also incorrect.

I am beginning to wonder if there is something wrong with my deployment on prod as we’ve already deleted everything locally and reinstalled it.

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

---

<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:** [February 6, 2024, 1:17am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/15 "2024-02-06T01:17:54Z")

</div>

I have checked the updated log and found that the `[getDbSize]` action was triggered without any errors.

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

I was able to replicate this issue on my own DevKinsta, which indicates that it may be a DevKinsta bug. I will report this issue to our DevKinsta Dev team and keep you updated on any progress.

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [February 6, 2024, 1:54am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/16 "2024-02-06T01:54:25Z")

</div>

Thanks, @Adrian_L .

My _local_ website still suffers from very long page load times (\>30 seconds). **My local instance is effectively inoperable** , and I don’t use it anymore (I’m forced to make edits directly to production, which I hate).

I have downloaded to the latest Docker update and I have increased resources, however, to no avail. Any ideas on what I can do?

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

---

<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:** [February 6, 2024, 5:30am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/17 "2024-02-06T05:30:33Z")

</div>

I would recommend completely uninstalling both DevKinsta and Docker Desktop from your Mac. After the uninstallation, reinstall the latest versions of both apps to start anew. This process helped me fix the issue of getting 0B database data on my site earlier. Kindly note that when you uninstall both DevKinsta and Docker Desktop, all the existing local site data stored in DevKinsta will be removed.

Devkinsta 2.13.1

> **[Your Free Local WordPress Development Suite](https://kinsta.com/devkinsta/)**
>
> DevKinsta is a free suite of local development tools for macOS, Windows and Linux. Use DevKinsta to build, develop, and test WordPress sites.

Docker Desktop 4.27.1

> **[Docker Desktop release notes](https://docs.docker.com/desktop/release-notes/)**
>
> Release notes for Docker Desktop for Mac, Linux, and Windows

Make sure that you have allocated enough CPU and RAM resources to Docker Desktop. After completing these steps, you can go ahead and pull your site from your Kinsta account. Hopefully, it will help improve the local site’s performance.

---

<div class="post-metadata">

**Author:** ![grnatog](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@grnatog](https://community.kinsta.com/u/grnatog)\
**Post date:** [February 6, 2024, 8:55am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/18 "2024-02-06T08:55:41Z")

</div>

That seems to have fixed the slowness. I also restarted my computer and did some extra `rm -rf` commands. Will see if fixed database.

---

<div class="post-metadata">

**Author:** ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)\
**Post date:** [February 7, 2024, 1:37am UTC](https://community.kinsta.com/t/local-site-takes-30s-to-load-a-page-with-devkinsta/2988/19 "2024-02-07T01:37:55Z")

</div>

Hi @grnatog 👋

Thank you for your reply and confirmation!  
Glad to hear that what Adrian suggested to you before seems to have fixed the slowness issue on your local end! 👍 and hopefully the `0 B` database size will be solved too!

Please update us with the result and/or let us know again if we can assist any further!

Best regards,  
Agus Utomo
