Skip to content

Crash after startup in Docker container after attempting migration. #7376

@jacksaturn

Description

@jacksaturn

⚠️ Please verify that your question has not already been reported

🛡️ Security Policy

📝 Describe your problem

I've had Uptime Kuma running in a Docker container inside a Promox VM for a good while now. As I'm attempting to move that container to a VM on another one of my Proxmox nodes, I'm running into a startup problem.

After executing the docker compose up -d command, the logs show a repeated boot loop, specifically the lines of code pasted below. The Docker container reboots continuously, never fully starting up. I've attempted removing my pre-existing data directory and spinning up the container from scratch, but the result is the same.

As far as I can tell, the setup of the VM is the same between the old location and the new one, and nothing has changed in my Docker Compose file, so I'm not sure what is causing this. Any suggestions are appreciated!

📝 Error Message(s) or Log

[uptime-kuma] 2026-05-11T04:32:51.314624305Z node:internal/modules/run_main:92
[uptime-kuma] 2026-05-11T04:32:51.314707757Z   const type = getNearestParentPackageJSONType(mainPath);
[uptime-kuma] 2026-05-11T04:32:51.314713642Z                ^
[uptime-kuma] 2026-05-11T04:32:51.314715873Z 
[uptime-kuma] 2026-05-11T04:32:51.314717610Z Error: Invalid package config /app/package.json.
[uptime-kuma] 2026-05-11T04:32:51.314719415Z     at shouldUseESMLoader (node:internal/modules/run_main:92:16)
[uptime-kuma] 2026-05-11T04:32:51.314721220Z     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:20)
[uptime-kuma] 2026-05-11T04:32:51.314722977Z     at node:internal/main/run_main_module:36:49 {
[uptime-kuma] 2026-05-11T04:32:51.314724642Z   code: 'ERR_INVALID_PACKAGE_CONFIG'
[uptime-kuma] 2026-05-11T04:32:51.314726342Z }
[uptime-kuma] 2026-05-11T04:32:51.314728011Z 
[uptime-kuma] 2026-05-11T04:32:51.314730179Z Node.js v22.22.2

🐻 Uptime-Kuma Version

2.3.2

💻 Operating System and Arch

Ubuntu 24.04.4 LTS (Linux 6.8.0-111-generic)

🌐 Browser

Zen Browser (macOS)

🖥️ Deployment Environment

  • Runtime Environment:
    • Docker: Version 29.4.3
    • Docker Compose: Version not specified
    • Portainer (BE/CE): Version 2.39.2 (LTS: Yes)
    • Node.js: Version X.X.X (LTS: Yes/No)
  • Database:
    • SQLite: External (local storage)
  • Database Storage:
    • Filesystem:
      • Linux: ext4/ZGS
    • Storage Medium: NVME
  • Uptime Kuma Setup:
    • Number of monitors: 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions