MariaDB / mariadb-docker

Docker Official Image packaging for MariaDB
https://mariadb.org
GNU General Public License v2.0
770 stars 438 forks source link

Cannot startup container with MARIADB_ROOT_HOST=localhost #460

Closed billieri closed 2 years ago

billieri commented 2 years ago

Using the command below I am unable to startup the container: docker run --name some-mariadb --env MARIADB_ROOT_HOST=localhost --env MARIADB_ROOT_PASSWORD=my-secret-pw mariadb:latest

Here is the log:

2022-09-21 16:22:06+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.9.3+maria~ubu2204 started.
2022-09-21 16:22:06+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2022-09-21 16:22:06+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.9.3+maria~ubu2204 started.
2022-09-21 16:22:06+00:00 [Note] [Entrypoint]: Initializing database files
2022-09-21 16:22:06 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required)
2022-09-21 16:22:06 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following command:

'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at https://mariadb.com/kb

Please report any problems at https://mariadb.org/jira

The latest information about MariaDB is available at https://mariadb.org/.

Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2022-09-21 16:22:07+00:00 [Note] [Entrypoint]: Database files initialized
2022-09-21 16:22:07+00:00 [Note] [Entrypoint]: Starting temporary server
2022-09-21 16:22:07+00:00 [Note] [Entrypoint]: Waiting for server startup
2022-09-21 16:22:07 0 [Note] mariadbd (server 10.9.3-MariaDB-1:10.9.3+maria~ubu2204) starting as process 93 ...
2022-09-21 16:22:07 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-09-21 16:22:07 0 [Note] InnoDB: Using transactional memory
2022-09-21 16:22:07 0 [Note] InnoDB: Number of transaction pools: 1
2022-09-21 16:22:07 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2022-09-21 16:22:07 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2022-09-21 16:22:07 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required)
2022-09-21 16:22:07 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
2022-09-21 16:22:07 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2022-09-21 16:22:07 0 [Note] InnoDB: Completed initialization of buffer pool
2022-09-21 16:22:07 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2022-09-21 16:22:07 0 [Note] InnoDB: 128 rollback segments are active.
2022-09-21 16:22:07 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2022-09-21 16:22:07 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2022-09-21 16:22:07 0 [Note] InnoDB: log sequence number 45452; transaction id 14
2022-09-21 16:22:07 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-09-21 16:22:07 0 [Warning] 'user' entry 'root@88e67c84df1d' ignored in --skip-name-resolve mode.
2022-09-21 16:22:07 0 [Warning] 'proxies_priv' entry '@% root@88e67c84df1d' ignored in --skip-name-resolve mode.
2022-09-21 16:22:07 0 [Note] mariadbd: ready for connections.
Version: '10.9.3-MariaDB-1:10.9.3+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
2022-09-21 16:22:08+00:00 [Note] [Entrypoint]: Temporary server started.
2022-09-21 16:22:09+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)

2022-09-21 16:22:09+00:00 [Note] [Entrypoint]: Stopping temporary server
2022-09-21 16:22:09 6 [Warning] Access denied for user 'root'@'localhost' (using password: YES)
mariadb-admin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
2022-09-21 16:22:09+00:00 [ERROR] [Entrypoint]: Unable to shut down server.
grooverdan commented 2 years ago

Thanks for the bug report. re-releasing in progress.