Skip to content
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

Dashboard empty as if no data was input, extremely large history database #3261

Closed
2 tasks done
michalb314 opened this issue Jun 13, 2023 · 5 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@michalb314
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

After installing Kuma through a docker install, after a while there's a bug when after editing a monitor, everything will disappear - all monitors, settings, etc. It's as if Kuma has been reset to a post-install state.

This has happened on an install that has around 300 monitors checking every minute. I think it has something to do with the database, since when i checked, the database size reported to be 1400mb (in options). When i deleted the whole history, dtabase history dropped to 5mb and Kuma started showing my monitors and all options have been loaded to their previous values. Since then everything is working fine.

👟 Reproduction steps

  • Install kuma through docker
  • Add a lot of monitors (300 in my case)
  • Wait until the database history is around 1,4gb
  • Edit a monitor

👀 Expected behavior

Monitor succesfully edits, application continues work.

😓 Actual Behavior

Every monitor and setting disappears.

🐻 Uptime-Kuma Version

1.21.3

💻 Operating System and Arch

Debian GNU/Linux 9 (stretch)

🌐 Browser

Firefox 113.0.2 (also other browsers)

🐋 Docker Version

19.03.15, build 99e3ed8919

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@michalb314 michalb314 added the bug Something isn't working label Jun 13, 2023
@michalb314 michalb314 changed the title Dashboard empty a sif no data was input, extremely large history database Dashboard empty as if no data was input, extremely large history database Jun 13, 2023
@chakflying
Copy link
Collaborator

Likely to be another duplicate of #2346

@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Jun 13, 2023

@michalb314 does the log show similar output as #2346? Could you run the debugging steps I requested in #3248?
If yes, could we continue this discussion over in #2346 and close this issue? (less duplicates => better)
What hardware are you letting your instance run on? (slower SSD?)

@michalb314
Copy link
Author

@CommanderStorm Yes, the log shows pretty much the exact same error message:
KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? at Client_SQLite3.acquireConnection (/app/node_modules/knex/lib/client.js:312:26)
There's a few different SQL queries where this fails, but i feel like it's not the query that's an issue, but the database size/performance itself.

Unfortunately i'm not able to debug as per your request, lack of time.

I don't really have exact hardware specs, it's an OVH VPS with a nvme SSD.

I feel like the issue related enough to warrant closing this issue, so please go ahead if you feel like it's a preferable course of action.

@CommanderStorm
Copy link
Collaborator

Only you or Louis can close issues.

I think continuing this in the issue I linked would be beneficial (duplicates only hurt the project).
Please close this issue.

@michalb314
Copy link
Author

Right, i did not know that, thank you.

Closed as per above. Related to #2346

@michalb314 michalb314 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants