Open benoitchantre opened 10 months ago
Having this issue today with a second local version of the same Pantheon site (for testing updates in a fully separate copy of the db) after I was able to successfully update my main local version of this same site yesterday. I did get the error yesterday, but after a few restarts (I think? I don't recall exactly what I did since I was trying anything and everything) it somehow worked enough to let me do a fresh lando pull
and then everything was good after another lando rebuild
. However, this does not now seem to be the case for this second copy of my Pantheon site.
Lando: 3.21-beta.14 Docker: 4.29.0 Drupal 10 through Pantheon recipe
EDIT: I took the nuclear option and did a lando destroy
and that seems to have worked to get a lando rebuild
to actually re-build and connect to the db service/container. I've also now run lando pull
and it completed without issue, and my D10 site shows MariaDB is on v10.6.5.
Would be nice to isolate whether this problem is coming from an incompatibility between the existing data volume (which was stored assuming MariaDB 10.4) and the new 10.6 service, or if it's some other problem. I did see these two error lines that looked interesting in the original report:
2023-12-18 12:08:44 2023-12-18 11:08:44 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2023-12-18 12:08:44 2023-12-18 11:08:44 0 [ERROR] Aborting
Not sure if they matter but could be a thread to pull on as well.
...coming back to this, I think this is a standard issue upgrading to Mariadb 10.6, see my comment https://github.com/lando/pantheon/issues/247#issuecomment-2159301427 and the linked Mariadb issues there.
After a rebuild to switch to MariaDB 10.6 from MaraiDB 10.4, the website can't connect to the database.
When I run
lando info
, I see that the credentials are correct and that the service is healty.I got the following error once after a rebuild: ERROR ==> ERROR 2002 (HY000): Can't connect to local server through socket '/opt/bitnami/mariadb/tmp/mysql.sock
Docker logs
I tried the following operations:
After that, the connection to the database worked again.
Context