Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lando/Mysql8/Linux fail #3665

Open
hlslaughter opened this issue Feb 14, 2024 · 1 comment
Open

Lando/Mysql8/Linux fail #3665

hlslaughter opened this issue Feb 14, 2024 · 1 comment
Labels
bug Something aint working right!

Comments

@hlslaughter
Copy link

hlslaughter commented Feb 14, 2024

Linux system info:
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"

Lando version: v3.20.8

Using the same lando.yml our project has been using forever, I made these changes:

...
recipe: drupal10
...
services:
...
database:
type: mysql:8.0.22
...

  • The result was a failed mysql8 startup and various oddities in the error logs. Examples:
  • ✖ Healthcheck samalt3_database_1 FAILED
    ERROR ==> unknown shorthand flag: 'T' in -T
  • [ERROR] [MY-013236] [Server] The designated data directory /bitnami/mysql/data/ is unusable. You can remove all files that the server added to it.
  • And dozens of entries similar to this one, all regarding the files in /helpers:
    database_1 | chmod: changing permissions of '/helpers/psh-boot.sh': Operation not permitted

Some of the other devs tested this same config, and it seems to have worked. I'm the only one using Linux. The others use Macs. I'm guessing the whole Lando team uses Macs and so has not seen this issue.

After adding these configurations to the database service, I was able to get it to work:

services:
...
database:
...
run_as_root:
- mkdir -p /bitnami/mysql/data/
config:
database: .lando.mysql8.cnf

.lando.mysql8.cnf is a from https://github.com/AaronFeledy/lando-recipe-drupal9/blob/master/mysql.cnf with some deprecated values changed.

@hlslaughter hlslaughter added the bug Something aint working right! label Feb 14, 2024
@GoonerW
Copy link

GoonerW commented Mar 15, 2024

Is there a reason you're declaring the MySQL version under services: instead of config:?

I had a similar issue where MySQL wouldn't start due to removed settings in the config file and lando was using the "incorrect" one. The fix was made in the drupal10 recipe but I "think" lando only uses that fix if you use the drupal10 recipe to configure the database server and not explicitly declare it yourself.

See: lando/drupal#40 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
None yet
Development

No branches or pull requests

2 participants