Lima issues

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

Facing the same issues

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

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?!?!

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.