Skip to content

v2 beta - embedded mariadb fails to initialiseΒ #5279

Description

πŸ“‘ I have found these related issues/pull requests

none

πŸ›‘οΈ Security Policy

Description

Tried to create a new docker based uptime kuma instance with embedded mariadb, but mariadb cannot initialise properly and goes into start and stop loop.

πŸ‘Ÿ Reproduction steps

Create a new uptime kuma instance with docker using this docker compose file:

services:
    uptime-kuma:
        image: louislam/uptime-kuma:beta
        container_name: uptime-kuma
        volumes:
          - ./uptime-kuma-data:/app/data
        ports:
          - 3001:3001
        restart: unless-stopped

πŸ‘€ Expected behavior

Uptime Kuma would finalise the initialisation of the embedded mariadb

πŸ˜“ Actual Behavior

start and stop loop of mariadb

🐻 Uptime-Kuma Version

2.0.0-beta.0

πŸ’» Operating System and Arch

Debian 12.7 amd64

🌐 Browser

Edge v130

πŸ–₯️ Deployment Environment

  • Runtime:
  • Database:
  • Filesystem used to store the database on:
  • number of monitors: 0

πŸ“ Relevant log output

Docker compose log output (click to expand)
uptime-kuma  | Welcome to Uptime Kuma
uptime-kuma  | Your Node.js version: 20.18.0
uptime-kuma  | 2024-10-29T20:56:12Z [SERVER] INFO: Env: production
uptime-kuma  | 2024-10-29T20:56:13Z [SERVER] INFO: Uptime Kuma Version: 2.0.0-beta.0
uptime-kuma  | 2024-10-29T20:56:13Z [SERVER] INFO: Loading modules
uptime-kuma  | 2024-10-29T20:56:14Z [SERVER] INFO: Creating express and socket.io instance
uptime-kuma  | 2024-10-29T20:56:14Z [SERVER] INFO: Server Type: HTTP
uptime-kuma  | 2024-10-29T20:56:14Z [SERVER] INFO: Data Dir: ./data/
uptime-kuma  | 2024-10-29T20:56:14Z [SETUP-DATABASE] INFO: db-config.json is not found or invalid: ENOENT: no such file or directory, open 'data/db-config.json'
uptime-kuma  | 2024-10-29T20:56:14Z [SETUP-DATABASE] INFO: Starting Setup Database on 3001
uptime-kuma  | 2024-10-29T20:56:14Z [SETUP-DATABASE] INFO: Open http://localhost:3001 in your browser
uptime-kuma  | 2024-10-29T20:56:14Z [SETUP-DATABASE] INFO: Waiting for user action...
uptime-kuma  | Request /setup-database-info
uptime-kuma  | Request /setup-database-info
uptime-kuma  | Request /setup-database-info
uptime-kuma  | Request /setup-database-info
uptime-kuma  | Request /setup-database-info
uptime-kuma  | Request /setup-database-info
uptime-kuma  | 2024-10-29T20:56:26Z [SETUP-DATABASE] INFO: Database is configured, close the setup-database server and start the main server now.
uptime-kuma  | 2024-10-29T20:56:26Z [SETUP-DATABASE] INFO: The setup-database server is closed
uptime-kuma  | 2024-10-29T20:56:26Z [DB] INFO: Database Type: embedded-mariadb
uptime-kuma  | 2024-10-29T20:56:26Z [MARIADB] INFO: Embedded MariaDB: /app/data/mariadb is not found, create one now.
uptime-kuma  | 2024-10-29T20:56:28Z [MARIADB] INFO: Embedded MariaDB: mysql_install_db done:Installing MariaDB/MySQL system tables in '/app/data/mariadb' ...
uptime-kuma  | OK
uptime-kuma  |
uptime-kuma  | To start mariadbd at boot time you have to copy
uptime-kuma  | support-files/mariadb.service to the right place for your system
uptime-kuma  |
uptime-kuma  |
uptime-kuma  | Two all-privilege accounts were created.
uptime-kuma  | One is root@localhost, it has no password, but you need to
uptime-kuma  | be system 'root' user to connect. Use, for example, sudo mysql
uptime-kuma  | The second is node@localhost, it has no password either, but
uptime-kuma  | you need to be the system 'node' user to connect.
uptime-kuma  | After connecting you can set the password, if you would need to be
uptime-kuma  | able to connect as any of these users with a password and without sudo
uptime-kuma  |
uptime-kuma  | See the MariaDB Knowledgebase at https://mariadb.com/kb
uptime-kuma  |
uptime-kuma  | You can start the MariaDB daemon with:
uptime-kuma  | cd '/usr' ; /usr/bin/mariadb-safe --datadir='/app/data/mariadb'
uptime-kuma  |
uptime-kuma  | You can test the MariaDB daemon with mysql-test-run.pl
uptime-kuma  | cd '/usr/share/mysql/mysql-test' ; perl mariadb-test-run.pl
uptime-kuma  |
uptime-kuma  | Please report any problems at https://mariadb.org/jira
uptime-kuma  |
uptime-kuma  | The latest information about MariaDB is available at https://mariadb.org/.
uptime-kuma  |
uptime-kuma  | Consider joining MariaDB's strong and vibrant community:
uptime-kuma  | https://mariadb.org/get-involved/
uptime-kuma  |
uptime-kuma  |
uptime-kuma  | 2024-10-29T20:56:28Z [MARIADB] INFO: Embedded MariaDB: /app/data/run/mariadb is not found, create one now.
uptime-kuma  | 2024-10-29T20:56:28Z [MARIADB] INFO: Starting Embedded MariaDB
uptime-kuma  | 2024-10-29T20:56:28Z [MARIADB] INFO: Stopped Embedded MariaDB: 1
uptime-kuma  | 2024-10-29T20:56:28Z [MARIADB] INFO: Try to restart Embedded MariaDB as it is not stopped by user
uptime-kuma  | 2024-10-29T20:56:28Z [MARIADB] INFO: Starting Embedded MariaDB
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Stopped Embedded MariaDB: 1
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Try to restart Embedded MariaDB as it is not stopped by user
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Starting Embedded MariaDB
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Stopped Embedded MariaDB: 1
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Try to restart Embedded MariaDB as it is not stopped by user
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Starting Embedded MariaDB
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Waiting for Embedded MariaDB to start...
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Stopped Embedded MariaDB: 1
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Try to restart Embedded MariaDB as it is not stopped by user
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Starting Embedded MariaDB
uptime-kuma  | 2024-10-29T20:56:29Z [MARIADB] INFO: Waiting for Embedded MariaDB to start...
uptime-kuma  | 2024-10-29T20:56:30Z [MARIADB] INFO: Stopped Embedded MariaDB: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleaseblocker 🚨blocking bugs encountered with a new release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions