-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitors are stopped after database is locked
error
#3130
Comments
Does the issue reappear if you restart the server? |
I think I restarted the server during the updating process... but yeah, restarting the server seems to fix this issue |
Unfortunately a lot of the useful logging are hidden unless you run with I thought about this but there really shouldn't be any database changes that would affect the behavior of the push monitor. |
Ah, so I need to add the variable to my compose file to get more info. I will do more test later |
Looks like it might not be about the version. I have enabled debug logs, and noticed some of the monitors gone after these errors:
I'm using docker local bind ( I have seen another
one of the message mentioned the monitor is restarted, another message didn't after the batch of errors, I haven't seen the |
The two error handlers: Lines 1802 to 1807 in 9dc02bb
uptime-kuma/server/model/monitor.js Lines 809 to 822 in 9dc02bb
|
I have also encountered the |
database is locked
error
Those errors will show up without setting debug logging. If you haven't seen them before, it maybe because printing the debug logs increased server load too much. |
The log was too long so I didn't find them before starting checking |
Thank you for your investigation. This is a separate issue and a fix is now open in #3174. |
🛡️ Security Policy
Description
I have updated uptime kuma to the latest version recently. I use push monitors only, they are all created in an old version.
One day my push clients are offline for about 1 hour because my local firewall, but when I check the uptime dashboard, there is no DOWN record at all.
The heartbeat intervals of monitors are 60s/30s an retry is 5/3, they should go down in 5mins normally without any push request.
the chart of affected monitors looks like this:
I stopped the push client for about 10 mins, no request in the period. In chart, there is no data in the period too but it's green all the time.
Editing an affected monitor without actually changing any settings and saving directly will fix this issue for that one monitor. (
Mumble
in the logs below)New monitor (
test
in the logs below) works well👟 Reproduction steps
👀 Expected behavior
push monitors from old version should work as expected (going down without push requests) without re-saving
😓 Actual Behavior
such monitors never going down
🐻 Uptime-Kuma Version
1.21.2
💻 Operating System and Arch
Ubuntu 20.04.5 LTS
🌐 Browser
Chrome 112.0.5615.49
🐋 Docker Version
20.10.18
🟩 NodeJS Version
No response
📝 Relevant log output
The text was updated successfully, but these errors were encountered: