# Lima issues

**URL:** https://discourse.roots.io/t/lima-issues/25996
**Category:** trellis
**Tags:** lima
**Created:** 2023-09-20T10:27:44Z
**Posts:** 5

## Post 1 by @James_Cobbett — 2023-09-20T10:27:44Z

Hi,

I’ve been using Lima for a few months now on a M1 Mac, I want to carry on using it but i’m finding it increasingly temperamental. I have to keep deleting the vm and recreating it which makes local development a real pain.

Typically i’m experieincing:

- Database connection refused issues randomly while using the site ( **Warning** : mysqli\_real\_connect(): (HY000/2002): Connection refused in **/srv/www/justiceandcare.org/current/web/wp/wp-includes/class-wpdb.php** on line **2019** )
- DB errors displayed while the site still works but then causing issues with page editors loading etc
- Trellis vm start getting stuck on stage 1 of 3

Sometimes restarting my computer solves it, sometimes I have to destroy the site and start again.

Any ideas of what I can do to solve these issues? I’m using the latest versions of Lima and Trellis CLI.

Thanks,  
James

---

## Post 2 by @Elliott_James — 2023-10-23T15:03:02Z

Facing the same issues

---

## Post 3 by @mZoo — 2024-03-06T16:12:22Z

For me, seems to intermittently, and fairly frequently, stall out… to the point of being unusable. Something with my network, perhaps.

---

## Post 4 by @mZoo — 2024-03-09T20:12:18Z

Perhaps interesting update. I had a few Trellis/Lima projects going, and _each_ had a `~/.lima/example.com/diffdisc` file that with a size (at least according to Mac `Cmd-i`) of 107.37 GB. What?!?!

---

## Post 5 by @andronocean — 2024-06-04T21:00:49Z

I think that’s a hard-coded maximum container size. I have 3 lima VMs and they all show 107.37 GB (aka 100 base-2 GiB). The true size on disk is _much_ smaller — between 1.6 and 3 GB on all of my machines.
