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

Problem with the MariaDB container, crashes because of the authentication #30

Closed
nebula-byte opened this issue Nov 3, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nebula-byte
Copy link
Collaborator

Hi, thanks a lot!

However, I have a small problem with the MariaDB container, which crashes because of the authentication.

Platform : W10
Use WSL 2 Based engine : No
Docker 4.1.1 (latest) (use Docker Compose V1)

Logs:

mariadb 10:23:35.28
mariadb 10:23:35.28 Welcome to the Bitnami mariadb container
mariadb 10:23:35.28 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mariadb
mariadb 10:23:35.29 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mariadb/issues
mariadb 10:23:35.29
mariadb 10:23:35.29 INFO ==> ** Starting MariaDB setup **
mariadb 10:23:35.30 INFO ==> Validating settings in MYSQL_/MARIADB_ env vars
mariadb 10:23:35.31 WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
mariadb 10:23:35.31 INFO ==> Initializing mariadb database
mariadb 10:23:35.32 INFO ==> Updating 'my.cnf' with custom configuration
mariadb 10:23:35.32 INFO ==> Setting user option
mariadb 10:23:35.33 INFO ==> Installing database
mariadb 10:23:37.48 INFO ==> Starting mariadb in background
mariadb 10:23:39.49 INFO ==> Configuring authentication
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mariadb 10:23:39.52 INFO ==> Stopping mariadb

If I set ALLOW_EMPTY_PASSWORD to : false through DECK .env

mariadb 10:28:51.41 INFO ==> ** Starting MariaDB setup **
mariadb 10:28:51.43 INFO ==> Validating settings in MYSQL_/MARIADB_ env vars
mariadb 10:28:51.43 WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
mariadb 10:28:51.43 INFO ==> Initializing mariadb database
mariadb 10:28:51.44 INFO ==> Updating 'my.cnf' with custom configuration
mariadb 10:28:51.45 INFO ==> Setting user option
mariadb 10:28:51.45 INFO ==> Using persisted data
mariadb 10:28:51.47 INFO ==> Running mysql_upgrade
mariadb 10:28:51.47 INFO ==> Starting mariadb in background
mariadb 10:28:53.49 INFO ==> Stopping mariadb

When editing directly, the environments in the .docker-stacks/docker-compose.yml : (removed ALLOW_EMPTY_PASSWORD)
But is saying MARIADB_ROOT_PASSWORD is empty or not set. That seem to be true. (in .env of DECK i have DB_PASSWORD and not MARIADB_ROOT_PASSWORD) but when adding MARIADB_ROOT_PASSWORD to .env is thrown the same error

mariadb 10:30:37.10 INFO ==> ** Starting MariaDB setup **
mariadb 10:30:37.11 INFO ==> Validating settings in MYSQL_/MARIADB_ env vars
mariadb 10:30:37.11 ERROR ==> The MARIADB_ROOT_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with blank passwords. This is recommended only for development.

Originally posted by @TheoD02 in #26 (comment)

@nebula-byte nebula-byte added the bug Something isn't working label Nov 3, 2021
@nabad600
Copy link
Collaborator

nabad600 commented Oct 13, 2022

Hi @nebula-byte ,

Thank your feedback, the issue is resolved. Appreciate your feedback here.

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

No branches or pull requests

3 participants