Skip to content

Bug: Monitor restarts after deleting heartbeats while pausedΒ #6895

@homelab-alpha

Description

@homelab-alpha

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

I have checked, but couldn’t find anything similar.

πŸ›‘οΈ Security Policy

πŸ“ Description

When a monitor is paused and the heartbeats are subsequently deleted, the monitor automatically starts again. This behavior is unexpected.

screencast (click to expand)

screencast_uptime_kuma.mp4

πŸ‘Ÿ Reproduction steps

  1. Create a monitor, for example an HTTP(s) monitor for google.com that sends a request every 20 seconds.
  2. Wait until several heartbeats have been recorded.
  3. Pause the monitor.
    3.1 A toast notification confirms that the monitor is paused.
  4. Delete the heartbeats.
    4.1 A toast notification confirms that the monitor status is [Up] 200 - OK.
  5. Refresh the page. You will see that the monitor has automatically started again.

Result: The heartbeats are successfully deleted, but the monitor automatically restarts.

πŸ‘€ Expected behavior

The monitor should remain paused after the heartbeats are deleted.

πŸ˜“ Actual Behavior

The monitor restarts when the heartbeats are deleted and does not remain paused.

🐻 Uptime-Kuma Version

2.1.0

πŸ’» Operating System and Arch

Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-94-generic x86_64)

🌐 Browser

Brave 1.86.148 - Chromium: 144.0.7559.133 (Official Build) (64-bit)

πŸ–₯️ Deployment Environment

  • Runtime Environment:
    • Docker: Version 26.1.0 (Build 9714adc)
    • Docker Compose: Version 2.26.1
    • Portainer (BE): Version 2.33.6 (LTS: Yes)
    • MariaDB: Version 12.1.2 (LTS: Yes)
  • Database:
    • MariaDB: External
  • Database Storage:
    • Filesystem:
      • Linux: ext4
    • Storage Medium: SSD
  • Uptime Kuma Setup:
    • Number of monitors: 99

πŸ“ Relevant log output

No relevant log output for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions