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

[docker] mariadbd (initiated by: unknown): Normal shutdown #110

Closed
lynnwho12 opened this issue Jun 3, 2024 · 3 comments · Fixed by #112
Closed

[docker] mariadbd (initiated by: unknown): Normal shutdown #110

lynnwho12 opened this issue Jun 3, 2024 · 3 comments · Fixed by #112
Assignees

Comments

@lynnwho12
Copy link

Hi when I try to using the docker with auto-install-modules or mode, it failes. the docker log said

mariadbd (initiated by: unknown): Normal shutdown

[root@VM-0-8-centos basic-example]# docker logs bd4005d17100 > docker.log
2024-06-03 02:32:11+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
2024-06-03 2:32:14 0 [Note] Starting MariaDB 11.4.2-MariaDB-ubu2404 source revision 3fca5ed772fb75e3e57c507edef2985f8eba5b12 as process 91
2024-06-03 2:32:14 0 [Note] InnoDB: Compressed tables use zlib 1.3
2024-06-03 2:32:14 0 [Note] InnoDB: Number of transaction pools: 1
2024-06-03 2:32:14 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-06-03 2:32:14 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-06-03 2:32:14 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-06-03 2:32:14 0 [Note] InnoDB: Completed initialization of buffer pool
2024-06-03 2:32:14 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2024-06-03 2:32:14 0 [Note] InnoDB: End of log at LSN=47763
2024-06-03 2:32:14 0 [Note] InnoDB: Opened 3 undo tablespaces
2024-06-03 2:32:14 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2024-06-03 2:32:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-06-03 2:32:14 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-06-03 2:32:14 0 [Note] InnoDB: log sequence number 47763; transaction id 14
2024-06-03 2:32:14 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-06-03 2:32:14 0 [Note] Plugin 'wsrep-provider' is disabled.
2024-06-03 2:32:16 0 [Warning] 'user' entry 'root@bd4005d17100' ignored in --skip-name-resolve mode.
2024-06-03 2:32:16 0 [Warning] 'proxies_priv' entry '@% root@bd4005d17100' ignored in --skip-name-resolve mode.
2024-06-03 2:32:16 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
2024-06-03 2:32:16 0 [Note] mariadbd: ready for connections.
Version: '11.4.2-MariaDB-ubu2404' socket: '/run/mysqld/mysqld.sock' port: 0 mariadb.org binary distribution
2024-06-03 2:32:17 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
2024-06-03 2:32:17 0 [Note] InnoDB: FTS optimize thread exiting.
2024-06-03 2:32:17 0 [Note] InnoDB: Starting shutdown...
2024-06-03 2:32:17 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2024-06-03 2:32:17 0 [Note] InnoDB: Buffer pool(s) dump completed at 240603 2:32:17
2024-06-03 2:32:17 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-06-03 2:32:17 0 [Note] InnoDB: Shutdown completed; log sequence number 47763; transaction id 15
2024-06-03 2:32:17 0 [Note] mariadbd: Shutdown complete

2024-06-03 2:32:17 0 [Note] Starting MariaDB 11.4.2-MariaDB-ubu2404 source revision 3fca5ed772fb75e3e57c507edef2985f8eba5b12 as process 1
2024-06-03 2:32:17 0 [Note] InnoDB: Compressed tables use zlib 1.3
2024-06-03 2:32:17 0 [Note] InnoDB: Number of transaction pools: 1
2024-06-03 2:32:17 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-06-03 2:32:17 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2024-06-03 2:32:17 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-06-03 2:32:17 0 [Note] InnoDB: Completed initialization of buffer pool
2024-06-03 2:32:17 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2024-06-03 2:32:17 0 [Note] InnoDB: End of log at LSN=47763
2024-06-03 2:32:17 0 [Note] InnoDB: Opened 3 undo tablespaces
2024-06-03 2:32:17 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2024-06-03 2:32:17 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-06-03 2:32:17 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-06-03 2:32:17 0 [Note] InnoDB: log sequence number 47763; transaction id 14
2024-06-03 2:32:17 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-06-03 2:32:17 0 [Note] Plugin 'wsrep-provider' is disabled.
2024-06-03 2:32:17 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-06-03 2:32:17 0 [Note] InnoDB: Buffer pool(s) load completed at 240603 2:32:17
2024-06-03 2:32:18 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-06-03 2:32:18 0 [Note] Server socket created on IP: '::'.
2024-06-03 2:32:18 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
2024-06-03 2:32:18 0 [Note] mariadbd: ready for connections.
Version: '11.4.2-MariaDB-ubu2404' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution

@lynnwho12 lynnwho12 changed the title mariadbd (initiated by: unknown): Normal shutdown [docker] mariadbd (initiated by: unknown): Normal shutdown Jun 3, 2024
@jokesterfr
Copy link
Collaborator

jokesterfr commented Jun 4, 2024

Ok, unhealthy mariadb.
Seems we recently discovered this issue, it's tied to the way we monitor the healthiness of mariadb in the docker-compose.yml.

I refer to this:

    image: mariadb:lts
    healthcheck:
      test:
        [
          "CMD",
          "mysqladmin",
          "ping",
          "--host=localhost",
          "--user=root",
          "--password=prestashop",
        ]
      interval: 10s
      timeout: 10s
      retries: 5

LTS version of mariadb recently changed.
Can you test this:

    image: mariadb:lts
    healthcheck:
      test:
        [
          "CMD",
          "healthcheck.sh",
          "--connect",
        ]
      interval: 5s
      timeout: 10s
      retries: 5

I will update the examples documentation.

@jokesterfr
Copy link
Collaborator

@lynnwho12 kind ping, if you can check this resolves your issue

@lynnwho12
Copy link
Author

lynnwho12 commented Jun 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants