Please help!
I’ve suddenly got this error: Error establishing a database connection
It happened 2 or 3 times while I was updating pages, but was ok when I waited a couple of seconds. Now I cannot access the site at all - with a deadline to meet.
I go to Adminer and it says ‘No such file or directory’.
WP_ALLOW_REPAIR is set to ‘True’ but going to /wp-admin/maint/repair.php just gives the same error.
I haven’t installed anything new on the site for about 1 week. This just came out of the blue.
Last few lines of the log file are below:
'Error\n at Object.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2800)\n at Generator.next (<anonymous>)\n at _0x3cbc6e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1126)\n at process._tickCallback (internal/process/next_tick.js:68:7)' }
Aug 19, 2020, 3:30 PM GMT+1 - info: [main/index] Shutting Down VM
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Environment does not have package.json: /Users/murph/Library/Application Support/Local by Flywheel/environments/custom-1-3-0/package.json
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-1/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-1/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-2/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-2/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-2-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-2-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-0/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-1/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-1/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-2/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-2/out/environment.js
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/check-system] Check System: Docker Machine:
{ stdout: 'Stopped\n', stderr: '' }
Aug 19, 2020, 3:32 PM GMT+1 - info: [renderer/CheckEnvPage] Check system promise response:
[ undefined, 'machine-halted' ]
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/docker-machine] Checking Boot2Docker.iso hash
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/docker-machine] Running /Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start local-by-flywheel
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/docker-machine] Starting "local-by-flywheel"...
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/docker-machine] (local-by-flywheel) Check network to re-create if needed...
Aug 19, 2020, 3:32 PM GMT+1 - info: [main/docker-machine] (local-by-flywheel) Waiting for an IP...
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine] Machine "local-by-flywheel" was started.
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine] Waiting for SSH to be available...
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine] Detecting the provisioner...
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine] Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/set-docker-env] Getting Docker Machine env.
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/set-docker-env] Received Docker Machine env. export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.95.100:2376"
export DOCKER_CERT_PATH="/Users/murph/.docker/machine/machines/local-by-flywheel"
export DOCKER_MACHINE_NAME="local-by-flywheel"
# Run this command to configure your shell:
# eval $("/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine" env --shell bash local-by-flywheel)
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine] checking IP
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine] checked IP 192.168.95.100
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine-fdv] NFS Mount Status
{ mountedPoints: [ '/Users', '/Volumes' ],
mountPoints: [ '/Users', '/Volumes' ] }
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-machine-fdv] unfsd already running
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-router] getRouterContainers()
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-router] teardown()
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-router] Removing router container 488614c01cd88044b7383b58d5a5652c2822aa6e9250f8114810622ffdf62b19
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-router] updateProxyManager()
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-router] runContainer()
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-network-manager] removeExistingNetworks
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-network-manager] createNetwork
Aug 19, 2020, 3:33 PM GMT+1 - info: [main/docker-router] reconnectNetwork()
Aug 19, 2020, 3:33 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:33 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:34 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:34 PM GMT+1 - warn: [main/SiteModel] wpInstalled not returning "installed"
{ message: '',
stack:
'Error\n at Object.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2800)\n at Generator.next (<anonymous>)\n at _0x3cbc6e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1126)\n at process._tickCallback (internal/process/next_tick.js:68:7)' }
Aug 19, 2020, 3:38 PM GMT+1 - info: [main/docker-router] getRouterContainers()
Aug 19, 2020, 3:38 PM GMT+1 - info: [main/docker-router] teardown()
Aug 19, 2020, 3:38 PM GMT+1 - info: [main/docker-router] Removing router container 4c6bb9958b9881849adac274caafce8e9892008f3919ec925cea56c89b9a6789
Aug 19, 2020, 3:38 PM GMT+1 - info: [main/docker-router] updateProxyManager()
Aug 19, 2020, 3:38 PM GMT+1 - info: [main/docker-router] runContainer()
Aug 19, 2020, 3:38 PM GMT+1 - info: [main/docker-router] reconnectNetwork()
Aug 19, 2020, 3:39 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:39 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:40 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:40 PM GMT+1 - warn: [main/SiteModel] wpInstalled not returning "installed"
{ message: '',
stack:
'Error\n at Object.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2800)\n at Generator.next (<anonymous>)\n at _0x3cbc6e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1126)\n at process._tickCallback (internal/process/next_tick.js:68:7)' }
Aug 19, 2020, 3:40 PM GMT+1 - info: [main/stopSite] Stopping site: running mydumper
Aug 19, 2020, 3:40 PM GMT+1 - info: [main/stopSite] Stopping site: stopping container ea1fd999f7db7eb45a7ab6ff3cf6e31a756cba6a059a14c33534c5872c14fc8d
Aug 19, 2020, 3:40 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:40 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:40 PM GMT+1 - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: '', stderr: '' }
Aug 19, 2020, 3:40 PM GMT+1 - warn: [main/SiteModel] wpInstalled not returning "installed"
{ message: '',
stack:
'Error\n at Object.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2800)\n at Generator.next (<anonymous>)\n at _0x3cbc6e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1126)\n at process._tickCallback (internal/process/next_tick.js:68:7)' }