Hi,
my Trellis powered sites can not connect to their databases. Besides the familiar Error establishing a database connection
page, they show following PHP error:
( ! ) Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /srv/www/XXX/current/web/wp/wp-includes/wp-db.php on line 1531
So I’ve tried vagrant reload --provision
, which crashed on task mariadb : Install MySQL server]
with the following error:
'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options
::=--force-confold" install 'mariadb-server'' failed: No apport report
written because the error message indicates its a followup error from a
previous failure.
E: Sub-process /usr/bin/dpkg returned an error code (1)
No apport report written because the error message indicates its a followup
error from a previous failure.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I can post the stack trace, if it will be of any use.
My configuration:
- OSX 10.13.6
- Vagrant 2.2.0 (updated for debug)
- Trellis - current
vagrant pull
(did for debug) - Ansible
2.4.2.0_2
(donwgraded for debug)
I’m not aware of any change in my local environment - besides putting my computer to service for a keyboard repair, where they did not touch my data.
The issue looks awfully similar to this one - SOLVED! Vagrant provision - Composer could not find composer.json with encrypted HD - except I don’t have encrypted HD, so I’m not exactly sure what to do next.
Can you point me in some direction? Thanks.