MariaDB / mariadb-docker

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

Error: failed to initialize container mariadb:11.0-rc #497

Closed rentalhost closed 1 year ago

rentalhost commented 1 year ago

Hello!

I am trying to setup a github actions to be compatible to mariadb:11.0-rc but it doesn't works. It run fine with mariadb:10.11, but fails to rc version. I don't know if I am missing something.

Action (here):

  test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        databases:
          - mariadb:10.11
          - mariadb:11.0-rc

    services:
      mariadb:
        image: ${{ matrix.databases }}
        ports:
          - 3306:3306
        env:
          MARIADB_ROOT_PASSWORD: password
          MARIADB_USER: user
          MARIADB_PASSWORD: password
          MARIADB_DATABASE: test
        options: >-
          --health-cmd="mysqladmin ping"
          --health-interval=10s
          --health-timeout=5s
          --health-retries=3

    steps:
      - uses: actions/checkout@v3

      - uses: actions/setup-node@v3
        with:
          node-version: 19

      - run: npm ci
      - run: npm run test
        env:
          TESTING_DATABASE: test
          TESTING_USER: user
          TESTING_PASSWORD: password

Log:

##[group]Service container mariadb failed.
##[command]/usr/bin/docker logs --details ecc1acb7cad7337f105c9acc69664971f1a3351f87c94bc83f0358fe16c888b3
 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.1+maria~ubu2204 started.
 [Note] Starting MariaDB 11.0.1-MariaDB-1:11.0.1+maria~ubu2204 source revision 158a58245813b1959d6ee912d77734620c7cf3ba as process 86
 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:11.0.1+maria~ubu2204 started.
 [Note] [Entrypoint]: Initializing database files

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

 '/usr/bin/mariadb-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/

 [Note] [Entrypoint]: Database files initialized
 [Note] [Entrypoint]: Starting temporary server
 [Note] [Entrypoint]: Waiting for server startup
 [Note] [Entrypoint]: Temporary server started.
 [Note] [Entrypoint]: Creating database test
 [Note] [Entrypoint]: Creating user user
 [Note] [Entrypoint]: Giving user user access to schema test
 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)

 [Note] [Entrypoint]: Stopping temporary server
 [Note] [Entrypoint]: Temporary server stopped

 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.

 [Note] InnoDB: Compressed tables use zlib 1.2.11
 [Note] InnoDB: Using transactional memory
 [Note] InnoDB: Number of transaction pools: 1
 [Note] InnoDB: Using crc32 + pclmulqdq instructions
 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
 [Note] InnoDB: Completed initialization of buffer pool
 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
 [Note] InnoDB: Opened 3 undo tablespaces
 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
 [Note] InnoDB: log sequence number 46157; transaction id 14
 [Note] Plugin 'FEEDBACK' is disabled.
 [Note] Plugin 'wsrep-provider' is disabled.
 [Warning] 'user' entry 'root@ecc1acb7cad7' ignored in --skip-name-resolve mode.
 [Warning] 'proxies_priv' entry '@% root@ecc1acb7cad7' ignored in --skip-name-resolve mode.
 [Note] mariadbd: ready for connections.
 Version: '11.0.1-MariaDB-1:11.0.1+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
 [Note] mariadbd (initiated by: unknown): Normal shutdown
 [Note] InnoDB: FTS optimize thread exiting.
 [Note] InnoDB: Starting shutdown...
 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
 [Note] InnoDB: Buffer pool(s) dump completed at 230304  1:58:33
 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
 [Note] InnoDB: Shutdown completed; log sequence number 47407; transaction id 15
 [Note] mariadbd: Shutdown complete

 [Note] Starting MariaDB 11.0.1-MariaDB-1:11.0.1+maria~ubu2204 source revision 158a58245813b1959d6ee912d77734620c7cf3ba as process 1
 [Note] InnoDB: Compressed tables use zlib 1.2.11
 [Note] InnoDB: Using transactional memory
 [Note] InnoDB: Number of transaction pools: 1
 [Note] InnoDB: Using crc32 + pclmulqdq instructions
 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
 [Note] InnoDB: Completed initialization of buffer pool
 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
 [Note] InnoDB: Opened 3 undo tablespaces
 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
 [Note] InnoDB: log sequence number 47407; transaction id 14
 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
 [Note] Plugin 'FEEDBACK' is disabled.
 [Note] Plugin 'wsrep-provider' is disabled.
 [Note] InnoDB: Buffer pool(s) load completed at 230304  1:58:33
 [Note] Server socket created on IP: '0.0.0.0'.
 [Note] Server socket created on IP: '::'.
 [Note] mariadbd: ready for connections.
 Version: '11.0.1-MariaDB-1:11.0.1+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
##[error]Failed to initialize container mariadb:11.0-rc
##[endgroup]
##[error]One or more containers failed to start.
grooverdan commented 1 year ago

no 'mysqladmin', only 'mariadb-admin'

rentalhost commented 1 year ago

@grooverdan nice! That works! I just not found where I must read to understand that changes.

grooverdan commented 1 year ago

On https://mariadb.com/kb/en/mariadb-11-0-1-release-notes/#docker-official-images, but I'm open to better suggestions on communicating release notes.