louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
56.53k stars 5.08k forks source link

Maintenance not working #3114

Open hanyuwei70 opened 1 year ago

hanyuwei70 commented 1 year ago

āš ļø Please verify that this bug has NOT been raised before.

šŸ›”ļø Security Policy

Description

I have set up one maintenance using these settings. image

but when maintenance window should work, it still send me alerts. image image

This issue happened after I updated from 1.21.0 to 1.21.2 (not very sure)

šŸ‘Ÿ Reproduction steps

Described above

šŸ‘€ Expected behavior

Not raise any alerts

šŸ˜“ Actual Behavior

Raise alters even in maintenance window.

šŸ» Uptime-Kuma Version

1.21.2

šŸ’» Operating System and Arch

Arch Linux

šŸŒ Browser

Edge

šŸ‹ Docker Version

23.0.1

šŸŸ© NodeJS Version

No response

šŸ“ Relevant log output

2023-04-29T03:00:00+08:00 [MAINTENANCE] INFO: Maintenance id: 1 is under maintenance now
2023-04-29T03:01:53+08:00 [MONITOR] WARN: Monitor #4 '<redacted>': Pending: connect ETIMEDOUT 172.67.145.23:443 | Max retries: 3 | Retry: 1 | Retry Interval: 300 seconds | Type: http
Worker for job "clear-old-data" online undefined
2023-04-29T03:14:01+08:00 [PLUGIN] WARN: Warning: In order to enable plugin feature, you need to use the default data directory: ./data/
2023-04-29T03:14:01+08:00 [DB] INFO: Data Dir: data/
2023-04-29T03:14:02+08:00 [DB] INFO: SQLite config:
[ { journal_mode: 'wal' } ]
[ { cache_size: -12000 } ]
2023-04-29T03:14:02+08:00 [DB] INFO: SQLite Version: 3.41.1
{
  name: 'clear-old-data',
  message: 'Data deletion has been disabled as period is less than 1. Period is 0 days.'
}
{ name: 'clear-old-data', message: 'done' }
2023-04-29T03:26:04+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Pending: Request failed with status code 502 | Max retries: 3 | Retry: 1 | Retry Interval: 60 seconds | Type: http
2023-04-29T03:27:04+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Pending: Request failed with status code 502 | Max retries: 3 | Retry: 2 | Retry Interval: 60 seconds | Type: http
2023-04-29T03:28:05+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Pending: Request failed with status code 502 | Max retries: 3 | Retry: 3 | Retry Interval: 60 seconds | Type: http
2023-04-29T03:29:13+08:00 [MONITOR] WARN: Monitor #4 '<redacted>': Pending: connect ETIMEDOUT 104.21.79.107:443 | Max retries: 3 | Retry: 1 | Retry Interval: 300 seconds | Type: http
2023-04-29T03:29:14+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Failing: Request failed with status code 502 | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
2023-04-29T03:30:15+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Failing: Request failed with status code 502 | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
2023-04-29T03:31:16+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Failing: Request failed with status code 502 | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
2023-04-29T03:32:16+08:00 [MONITOR] WARN: Monitor #14 '<redacted>': Failing: Request failed with status code 502 | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
Tralapo commented 1 year ago

I had the same issue, no matter what I tried or which recurring type I used.

As soon as I left the "Effected Date Range" empty (which is now Optional) it worked again. Seems like a bug somewhere in there.

hanyuwei70 commented 1 year ago

I had the same issue, no matter what I tried or which recurring type I used.

As soon as I left the "Effected Date Range" empty (which is now Optional) it worked again. Seems like a bug somewhere in there.

Works for me! Thanks.

gdtms247 commented 1 year ago

I have the exact same issue for last few weeks, removed "Effected Date Range" and scheduled maintenance is now successfully running. Thanks!

x86dev commented 1 year ago

Same here, can confirm that this workaround fixed it for me, thanks!

DANW999 commented 10 months ago

I can confirm that also worked for me. I was pulling my hair out trying to figure out why the maintenance mode was not kicking in at scheduled time.