Critical error when stopping a site, now Local has completely stopped working

While stopping a site earlier today, Local got stuck, so I checked the log and saw this:

May 16, 2018, 9:21 AM GMT+1 - error: [main/backupDB] mydumper stderr ** (mydumper:618): CRITICAL **: Couldn't write data to a file: No space left on device
** (mydumper:618): CRITICAL **: Could not write out data for local.n3t_usermeta
May 16, 2018, 9:21 AM GMT+1 - info: [main/stopSite] Stopping site: stopping container 78fb0ec8a48dc70795b35b085d5df237340d124b93151831850ac5b2837b9348
May 16, 2018, 9:21 AM GMT+1 - error: [main/backupDB] mydumper stdout 
May 16, 2018, 9:23 AM GMT+1 - info: [main/stopSite] Stopping site: running mydumper
May 16, 2018, 9:23 AM GMT+1 - info: [main/waitForMySQL] Querying MySQL
May 16, 2018, 9:23 AM GMT+1 - info: [main/backupDB] Running mydumper on SJ9kQAnNZ
May 16, 2018, 9:23 AM GMT+1 - error: [main/backupDB] mydumper stderr ** (mydumper:598): CRITICAL **: Unable to create `/tmp/local-sql-dump': No space left on device
May 16, 2018, 9:23 AM GMT+1 - info: [main/stopSite] Stopping site: stopping container 0edef69a194f2863144c0cb303a5387ccceac17be4f70d2969ae477c5763b404
May 16, 2018, 9:23 AM GMT+1 - error: [main/backupDB] mydumper stdout 
May 16, 2018, 9:23 AM GMT+1 - info: [main/waitForMySQL] Querying MySQL
May 16, 2018, 9:23 AM GMT+1 - info: [main/waitForMySQL] Querying MySQL

Now after multiple attempts to restart Local, it refuses to start and I can’t access any of my sites. Here’s what I see in the log:

May 16, 2018, 9:24 AM GMT+1 - info: [main/index] Existing Pressmatic data does not exist.
May 16, 2018, 9:24 AM GMT+1 - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Stopped\n', stderr: '' }
May 16, 2018, 9:24 AM GMT+1 - info: [renderer/CheckEnvPage] Check system promise response: 
[ undefined, 'machine-halted' ]
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] Checking Boot2Docker.iso hash
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] Running  /Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start pressmatic
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] Starting "pressmatic"...
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] (pressmatic) Check network to re-create if needed...
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] (pressmatic) Waiting for an IP...
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] Machine "pressmatic" was started.
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] Waiting for SSH to be available...
May 16, 2018, 9:24 AM GMT+1 - info: [main/docker-machine] Detecting the provisioner...
May 16, 2018, 9:25 AM GMT+1 - warn: [main/docker-machine] Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
May 16, 2018, 9:28 AM GMT+1 - info: [main/index] Existing Pressmatic data does not exist.
May 16, 2018, 9:28 AM GMT+1 - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Stopped\n', stderr: '' }
May 16, 2018, 9:28 AM GMT+1 - info: [renderer/CheckEnvPage] Check system promise response: 
[ undefined, 'machine-halted' ]
May 16, 2018, 9:28 AM GMT+1 - info: [main/docker-machine] Checking Boot2Docker.iso hash
May 16, 2018, 9:28 AM GMT+1 - info: [main/docker-machine] Running  /Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start pressmatic
May 16, 2018, 9:28 AM GMT+1 - info: [main/docker-machine] Starting "pressmatic"...
May 16, 2018, 9:28 AM GMT+1 - info: [main/docker-machine] (pressmatic) Check network to re-create if needed...
May 16, 2018, 9:29 AM GMT+1 - info: [main/docker-machine] (pressmatic) Waiting for an IP...
May 16, 2018, 9:29 AM GMT+1 - info: [main/docker-machine] Machine "pressmatic" was started.
May 16, 2018, 9:29 AM GMT+1 - info: [main/docker-machine] Waiting for SSH to be available...
May 16, 2018, 9:29 AM GMT+1 - info: [main/docker-machine] Detecting the provisioner...
May 16, 2018, 9:30 AM GMT+1 - warn: [main/docker-machine] Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

Is there anything I can do to get Local started again? I’m currently stuck without access to any of my sites at all.

Simon,

It looks like the VM may be out of space. How many sites do you have in Local? Do any have large databases?

Please see Unable to connect to database on any site previously working working without issue for instructions on how to increase the VM disk size. As of April 2017, Local defaults the VM disk size to 120GB. If you installed prior to that, the disk size max will be 20GB.

Hi Clay

I’ve got about 15 sites in there and one of them has a very large database, so that does look like the cause of the problem.

I’ve run the bash script and now following the instructions in there, I’ve got as far as adding the GParted ISO, but I’m not sure what the next two lines mean?

Add your VDI to the SATA controller as Harddisk
Remove the VMDK partition

vb