-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Shrinking databse/Blocking database opreations Give False Downtime #2470
Comments
Due to the limitation of SQLite, it may be a unsolvable bug. Maybe I will change to MySQL in 2.0.0. |
@louislam if you're considering supporting other databases, i would personally suggest considering postgresql and mysql and the pros/cons i don't have mysql on my server, because nothing uses it. pretty much everything i run (peertube, mastodon, synapse (matrix homeserver)) are using postgres. anyways, here's some already existing issues/comments: |
This comment was marked as spam.
This comment was marked as spam.
I'm in the same configuration as @JacksonChen666. PS: Thank you very much for the creation and maintenance of this tool, I deploy it as part of the CHATONS in France. |
Is there an update on that issue? Or any workaround, for me after some months of flawless usage, it is now unusable, because for every action a lot of monitors shows wrong thins error as down. |
@JacksonChen666 This will be resolved in the |
MariaDB support is merged already. And I'm submitting Postgres support in #3748 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@CommanderStorm: No. Today I read your comment here and click on Shrink database button. After few minutes I was able to see frontend page without backend-connection bug, list of monitors was still loading 3-4 minutes (I only have 53 Monitors) and after this, our Slack was spammed by 🔴 DOWN messages for all Monitors. My Customer almost got heart attack because of this... DB size before shrink: 860 MB |
Yea, indeed shrinking is not the same as deleting monitors. Should have read more carefully, sorry about that |
FYI: Today, after And I wonder if this text is correct:
But I checked changes in 1.10.0 (here), and Please correct me if I'm wrong |
The description is not entirely accurate, I don't remember exactly but there is some slight difference between a manually triggered |
I've just checked database -> |
Maybe just this for now:
OK, in documentation (https://www.sqlite.org/pragma.html#pragma_auto_vacuum) we have this:
IMO, we can write:
or just:
|
The last one sounds pretty good to me. |
OK, I will create PR to change en.js for this - this night or tomorrow |
Done in #4508 |
|
🛡️ Security Policy
Description
One of my monitors said it was down because:
Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
I was deleting a monitor, probably with a lot of data (i had history set for 365 previously. insane, i know), so deleting took a long time, which then caused the monitor being down.
The issue can also be caused by a manually triggered shrink database operation.
Related
👟 Reproduction steps
👀 Expected behavior
The monitors will continue as "up" and saving the correct data later (if needed).
😓 Actual Behavior
The monitors are considered "down" because a blocking database operation is happening.
🐻 Uptime-Kuma Version
1.19.0
💻 Operating System and Arch
macOS 13.1
🌐 Browser
LibreWolf 108.0.1-1
🐋 Docker Version
No response
🟩 NodeJS Version
v16.18.1
📝 Relevant log output
The text was updated successfully, but these errors were encountered: