uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Broken after Container update

Open nixmomo opened this issue 4 months ago • 4 comments

📑 I have found these related issues/pull requests

🛡️ Security Policy

Description

Today i updated my kuma to latest Version, just repulled the latest image again and deployed it. Since this update the container wont start anymore

👟 Reproduction steps

no idea i just updated the container to latest version

👀 Expected behavior

Working Kuma instance

😓 Actual Behavior

Crashing with this log
Your Node.js version: 18.20.3
2024-10-05T08:50:43Z [SERVER] INFO: Welcome to Uptime Kuma
2024-10-05T08:50:43Z [SERVER] INFO: Node Env: production
2024-10-05T08:50:43Z [SERVER] INFO: Inside Container: true
2024-10-05T08:50:43Z [SERVER] INFO: Importing Node libraries
2024-10-05T08:50:43Z [SERVER] INFO: Importing 3rd-party libraries
2024-10-05T08:50:47Z [SERVER] INFO: Creating express and socket.io instance
2024-10-05T08:50:47Z [SERVER] INFO: Server Type: HTTP
2024-10-05T08:50:47Z [SERVER] INFO: Importing this project modules
2024-10-05T08:50:48Z [NOTIFICATION] INFO: Prepare Notification Providers
2024-10-05T08:50:48Z [SERVER] INFO: Version: 1.23.15
2024-10-05T08:50:48Z [DB] INFO: Data Dir: ./data/
2024-10-05T08:50:48Z [SERVER] INFO: Connecting to the Database
2024-10-05T08:50:48Z [DB] INFO: SQLite config:
[ { journal_mode: 'wal' } ]
[ { cache_size: -12000 } ]
2024-10-05T08:50:48Z [DB] INFO: SQLite Version: 3.41.1
2024-10-05T08:50:48Z [SERVER] INFO: Connected
2024-10-05T08:50:48Z [DB] INFO: Your database version: 1
2024-10-05T08:50:48Z [DB] INFO: Latest database version: 10
2024-10-05T08:50:48Z [DB] INFO: Database patch is needed
2024-10-05T08:50:48Z [DB] INFO: Patching ./db/patch2.sql
2024-10-05T08:50:48Z [DB] INFO: Closing the database
2024-10-05T08:50:50Z [DB] INFO: SQLite closed
[Error: CREATE TABLE monitor_tls_info (
	id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
	monitor_id INTEGER NOT NULL,
	info_json TEXT
) - SQLITE_ERROR: table monitor_tls_info already exists] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
2024-10-05T08:50:50Z [DB] ERROR: Start Uptime-Kuma failed due to issue patching the database
2024-10-05T08:50:50Z [DB] ERROR: Please submit a bug report if you still encounter the problem after restart: https://github.com/louislam/uptime-kuma/issues

🐻 Uptime-Kuma Version

latest

💻 Operating System and Arch

Docker

🌐 Browser

all

🖥️ Deployment Environment

  • Runtime:
  • Database: sqlite
  • Filesystem used to store the database on: sext4
  • number of monitors: around 40

📝 Relevant log output

Your Node.js version: 18.20.3
2024-10-05T08:50:43Z [SERVER] INFO: Welcome to Uptime Kuma
2024-10-05T08:50:43Z [SERVER] INFO: Node Env: production
2024-10-05T08:50:43Z [SERVER] INFO: Inside Container: true
2024-10-05T08:50:43Z [SERVER] INFO: Importing Node libraries
2024-10-05T08:50:43Z [SERVER] INFO: Importing 3rd-party libraries
2024-10-05T08:50:47Z [SERVER] INFO: Creating express and socket.io instance
2024-10-05T08:50:47Z [SERVER] INFO: Server Type: HTTP
2024-10-05T08:50:47Z [SERVER] INFO: Importing this project modules
2024-10-05T08:50:48Z [NOTIFICATION] INFO: Prepare Notification Providers
2024-10-05T08:50:48Z [SERVER] INFO: Version: 1.23.15
2024-10-05T08:50:48Z [DB] INFO: Data Dir: ./data/
2024-10-05T08:50:48Z [SERVER] INFO: Connecting to the Database
2024-10-05T08:50:48Z [DB] INFO: SQLite config:
[ { journal_mode: 'wal' } ]
[ { cache_size: -12000 } ]
2024-10-05T08:50:48Z [DB] INFO: SQLite Version: 3.41.1
2024-10-05T08:50:48Z [SERVER] INFO: Connected
2024-10-05T08:50:48Z [DB] INFO: Your database version: 1
2024-10-05T08:50:48Z [DB] INFO: Latest database version: 10
2024-10-05T08:50:48Z [DB] INFO: Database patch is needed
2024-10-05T08:50:48Z [DB] INFO: Patching ./db/patch2.sql
2024-10-05T08:50:48Z [DB] INFO: Closing the database
2024-10-05T08:50:50Z [DB] INFO: SQLite closed
[Error: CREATE TABLE monitor_tls_info (
	id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
	monitor_id INTEGER NOT NULL,
	info_json TEXT
) - SQLITE_ERROR: table monitor_tls_info already exists] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
2024-10-05T08:50:50Z [DB] ERROR: Start Uptime-Kuma failed due to issue patching the database
2024-10-05T08:50:50Z [DB] ERROR: Please submit a bug report if you still encounter the problem after restart: https://github.com/louislam/uptime-kuma/issues

nixmomo avatar Oct 05 '24 08:10 nixmomo