Varying-Vagrant-Vagrants / VVV

An open source Vagrant configuration for developing with WordPress
https://varyingvagrantvagrants.org
MIT License
4.55k stars 849 forks source link

Bug: Non-blocking MariaDB connection error during docker provision #2691

Open tomjn opened 7 months ago

tomjn commented 7 months ago

Are you using the latest stable or develop branch version of VVV?

Yes (develop)

Is it a new VVV, or an existing VVV that used to work?

Don't know

Did you use a CustomFile?

No (default)

Whats the problem?

When provisoning I noticed this output:

    default:  * Ensuring MariaDB service is started
    default:  * Stopping MariaDB database server mariadbd
    default:    ...done.
    default:  * Starting MariaDB database server mariadbd
    default:    ...done.
    default:  * Checking the root user password is root
    default:  * The database root password is the expected value
    default:  * Restarting mariadb service
    default:  * Stopping MariaDB database server mariadbd
    default: /usr/bin/mariadb-admin: connect to server at 'localhost' failed
    default: error: 'Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)'
    default: Check that mysqld is running and that the socket: '/run/mysqld/mysqld.sock' exists!
    default:    ...done.
    default:  * Starting MariaDB database server mariadbd
    default:    ...done.

This doesn't prevent things from working but it should be investigated

How do we reproduce it?

No response

What is the output of vagrant status

__ __ __ __
\ V\ V\ V / v3.13 Ruby:3.1.4, Path:"/Users/tomjn/vvv-local"
 \_/\_/\_/  git::modify/php82-default(e4948b4a)

Platform: darwin shell:/bin/zsh vagrant-goodhosts shared_db_folder_disabled
Vagrant: v2.4.0, docker: v24.0.6, build ed223bc

Which Operating System are you using?

Apple MacOS (Intel)

Which provider are you using?

Other