bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.41k stars 4.88k forks source link

[bitnami/moodle] Data base error #69427

Closed centurionj closed 3 months ago

centurionj commented 3 months ago

Name and Version

docker.io/bitnami/moodle:4.4

What architecture are you using?

amd64

What steps will reproduce the bug?

after starting moodle everything was good. in 3 days container with db has been down himself.

i have this error

image

used this compose:

version: '3.8'
services:
  mariadb:
    image: docker.io/bitnami/mariadb:11.3
    environment:
      # ALLOW_EMPTY_PASSWORD is recommended only for development.
      - ALLOW_EMPTY_PASSWORD=yes
      - MARIADB_ROOT_PASSWORD=festu
      - MARIADB_PASSWORD=festu
      - MARIADB_USER=festu
      - MARIADB_DATABASE=festu
      - MARIADB_PORT_NUMBER=3306
      - MARIADB_CHARACTER_SET=utf8mb4
      - MARIADB_COLLATE=utf8mb4_unicode_ci
    volumes:
      - 'mariadb_data:/bitnami/mariadb'
  moodle:
    image: docker.io/bitnami/moodle:4.4
    ports:
      - '80:8080'
      - '443:8443'
    environment:
      - MOODLE_DATABASE_HOST=mariadb
      - MOODLE_DATABASE_PORT_NUMBER=3306
      - MOODLE_DATABASE_USER=festu
      - MOODLE_DATABASE_NAME=festu
      - MOODLE_DATABASE_PASSWORD=festu
      # ALLOW_EMPTY_PASSWORD is recommended only for development.
      - ALLOW_EMPTY_PASSWORD=no
      - MOODLE_LANG=ru
      - MOODLE_SITE_NAME=Moodle ДВГУПС
#      - MOODLE_USERNAME=user
#      - MOODLE_PASSWORD=bitnami
    volumes:
      - 'moodle_data:/bitnami/moodle'
      - 'moodledata_data:/bitnami/moodledata'
    depends_on:
      - mariadb
volumes:
  mariadb_data:
    driver: local
  moodle_data:
    driver: local
  moodledata_data:
    driver: local

What is the expected behavior?

console logs:

root@3214491:~# docker logs 1b49bd3e0fb1
mariadb 14:21:59.62 INFO  ==>
mariadb 14:21:59.63 INFO  ==> Welcome to the Bitnami mariadb container
mariadb 14:21:59.63 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mariadb 14:21:59.64 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mariadb 14:21:59.64 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mariadb 14:21:59.64 INFO  ==>
mariadb 14:21:59.65 INFO  ==> ** Starting MariaDB setup **
mariadb 14:21:59.69 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mariadb 14:21:59.70 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
mariadb 14:21:59.71 INFO  ==> Initializing mariadb database
mariadb 14:21:59.73 INFO  ==> Updating 'my.cnf' with custom configuration
mariadb 14:21:59.74 INFO  ==> Setting user option
mariadb 14:21:59.76 INFO  ==> Setting port option
mariadb 14:21:59.79 INFO  ==> Setting character_set_server option
mariadb 14:21:59.80 INFO  ==> Setting collation_server option
mariadb 14:21:59.82 INFO  ==> Setting slow_query_log option
mariadb 14:21:59.83 INFO  ==> Setting long_query_time option
mariadb 14:21:59.83 INFO  ==> Installing database
/opt/bitnami/mariadb/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb' instead
mariadb 14:22:01.11 INFO  ==> Starting mariadb in background
2024-07-18 14:22:01 0 [Note] Starting MariaDB 11.3.2-MariaDB source revision 068a6819eb63bcb01fdfa037c9bf3bf63c33ee42 as process 130
2024-07-18 14:22:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2024-07-18 14:22:01 0 [Note] InnoDB: Number of transaction pools: 1
2024-07-18 14:22:01 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-07-18 14:22:01 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2024-07-18 14:22:01 0 [Note] InnoDB: Using Linux native AIO
2024-07-18 14:22:01 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-07-18 14:22:01 0 [Note] InnoDB: Completed initialization of buffer pool
2024-07-18 14:22:01 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2024-07-18 14:22:01 0 [Note] InnoDB: End of log at LSN=46300
2024-07-18 14:22:01 0 [Note] InnoDB: Opened 3 undo tablespaces
2024-07-18 14:22:01 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2024-07-18 14:22:01 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-07-18 14:22:01 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-07-18 14:22:01 0 [Note] InnoDB: log sequence number 46300; transaction id 14
2024-07-18 14:22:01 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2024-07-18 14:22:01 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-07-18 14:22:01 0 [Note] Plugin 'wsrep-provider' is disabled.
2024-07-18 14:22:01 0 [Note] InnoDB: Buffer pool(s) load completed at 240718 14:22:01
2024-07-18 14:22:01 0 [Note] Server socket created on IP: '127.0.0.1'.
2024-07-18 14:22:01 0 [Warning] 'user' entry 'root@1b49bd3e0fb1' ignored in --skip-name-resolve mode.
2024-07-18 14:22:01 0 [Warning] 'user' entry '@1b49bd3e0fb1' ignored in --skip-name-resolve mode.
2024-07-18 14:22:01 0 [Warning] 'proxies_priv' entry '@% root@1b49bd3e0fb1' ignored in --skip-name-resolve mode.
2024-07-18 14:22:01 0 [Note] mysqld: Event Scheduler: Loaded 0 events
2024-07-18 14:22:01 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '11.3.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
mariadb 14:22:03.16 INFO  ==> Configuring authentication
2024-07-18 14:22:03 5 [Warning] 'proxies_priv' entry '@% root@1b49bd3e0fb1' ignored in --skip-name-resolve mode.
/opt/bitnami/mariadb/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb' instead
/opt/bitnami/mariadb/bin/mysql: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/bin/mariadb' instead
mariadb 14:22:03.36 INFO  ==> Running mysql_upgrade
find: '/docker-entrypoint-startdb.d/': No such file or directory
mariadb 14:22:03.43 INFO  ==> Stopping mariadb
2024-07-18 14:22:03 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (initiated by: unknown): Normal shutdown
2024-07-18 14:22:03 0 [Note] InnoDB: FTS optimize thread exiting.
2024-07-18 14:22:03 0 [Note] InnoDB: Starting shutdown...
2024-07-18 14:22:03 0 [Note] InnoDB: Dumping buffer pool(s) to /bitnami/mariadb/data/ib_buffer_pool
2024-07-18 14:22:03 0 [Note] InnoDB: Buffer pool(s) dump completed at 240718 14:22:03
2024-07-18 14:22:03 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-07-18 14:22:03 0 [Note] InnoDB: Shutdown completed; log sequence number 47875; transaction id 15
2024-07-18 14:22:03 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: Shutdown complete

mariadb 14:22:04.46 INFO  ==> ** MariaDB setup finished! **

mariadb 14:22:04.54 INFO  ==> ** Starting MariaDB **
/opt/bitnami/mariadb/sbin/mysqld: Deprecated program name. It will be removed in a future release, use '/opt/bitnami/mariadb/sbin/mariadbd' instead
2024-07-18 14:22:04 0 [Note] Starting MariaDB 11.3.2-MariaDB source revision 068a6819eb63bcb01fdfa037c9bf3bf63c33ee42 as process 1
2024-07-18 14:22:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2024-07-18 14:22:04 0 [Note] InnoDB: Number of transaction pools: 1
2024-07-18 14:22:04 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2024-07-18 14:22:04 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2024-07-18 14:22:04 0 [Note] InnoDB: Using Linux native AIO
2024-07-18 14:22:04 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2024-07-18 14:22:04 0 [Note] InnoDB: Completed initialization of buffer pool
2024-07-18 14:22:04 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2024-07-18 14:22:04 0 [Note] InnoDB: End of log at LSN=47875
2024-07-18 14:22:04 0 [Note] InnoDB: Opened 3 undo tablespaces
2024-07-18 14:22:04 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2024-07-18 14:22:04 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2024-07-18 14:22:04 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2024-07-18 14:22:04 0 [Note] InnoDB: log sequence number 47875; transaction id 16
2024-07-18 14:22:04 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2024-07-18 14:22:04 0 [Note] Plugin 'FEEDBACK' is disabled.
2024-07-18 14:22:04 0 [Note] Plugin 'wsrep-provider' is disabled.
2024-07-18 14:22:04 0 [Note] InnoDB: Buffer pool(s) load completed at 240718 14:22:04
2024-07-18 14:22:04 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-07-18 14:22:04 0 [Warning] 'proxies_priv' entry '@% root@1b49bd3e0fb1' ignored in --skip-name-resolve mode.
2024-07-18 14:22:04 0 [Note] mysqld: Event Scheduler: Loaded 0 events
2024-07-18 14:22:04 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '11.3.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
root@3214491:~#

What do you see instead?

How can I solve it?

Additional information

No response

javsalgar commented 3 months ago

Hi!

Could you show the Moodle logs to see if there is anything suspicious?

github-actions[bot] commented 3 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 3 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.