lando / lamp

The Official LAMP Lando Plugin
https://docs.lando.dev/lamp/
GNU General Public License v3.0
2 stars 9 forks source link

Failed with unknown shorthand flag: 'T' in -T #59

Closed kaushalyap closed 1 month ago

kaushalyap commented 1 month ago

lando start

 ⚠ The service "database" failed its healthcheck
 Failed with unknown shorthand flag: 'T' in -T
 This may be ok but we recommend you run the command below to investigate:
 Run lando logs -s database

❯ lando logs -s database

...
database_1  | 2024-07-19T11:41:57.815553Z 0 [Note] /opt/bitnami/mysql/bin/mysqld: ready for connections.
database_1  | Version: '5.7.29'  socket: '/opt/bitnami/mysql/tmp/mysql.sock'  port: 3306  MySQL Community Server (GPL)
database_1  | 2024-07-19T11:41:57.817462Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
database_1  | mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) while connecting to the MySQL server
database_1  | Upgrade process encountered error and will not continue.
database_1  | mysql 11:41:57.82 INFO  ==> Stopping mysql
...

.lando.yml

name: goallanka
recipe: lamp
config:
  webroot: .

Version Info:

❯ lando version                              
v3.21.2

❯ uname -a
Linux fedora 6.8.5-301.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 20:00:10 UTC 2024 x86_64 GNU/Linux
reynoldsalec commented 1 month ago

Do you see some docker-compose-v2 binaries in ~/.lando/bin? Almost sounds like the wrong Docker Compose is getting used.

reynoldsalec commented 1 month ago

You could also run lando setup to make sure Lando has the right Docker Compose.

kaushalyap commented 1 month ago

After installing docker error disappeared for what ever reason. Thanks for the support, I'll close now!