clean cache files automatically after a certain (non-configurable) size #4027

Open
opened 2026-02-28 03:48:43 -05:00 by deekerman · 6 comments
Owner

Originally created by @Justinzobel on GitHub (Mar 12, 2025).

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

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I think we need an entry in the wiki for maintenance of uptime kuma.

For example I found in ~/.cache/Cypress 1.2GB of files, are they needed? Can they be cleaned up?

Is there a way to clean up unused npm modules to save disk space?

I found a file core.809 (180MB) in my uptime-kuma folder, I assume it is a coredump from a crash. Can we clean these up regularly?

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.16

💻 Operating System and Arch

Ubuntu 24.04 x86_64

🌐 Browser

N/A

🖥️ Deployment Environment

  • Runtime:
  • Database:
  • Filesystem used to store the database on:
  • number of monitors:
Originally created by @Justinzobel on GitHub (Mar 12, 2025). ### ⚠️ Please verify that this question has NOT been raised before. - [x] I checked and didn't find similar issue ### 🛡️ Security Policy - [x] I agree to have read this project [Security Policy](https://github.com/louislam/uptime-kuma/security/policy) ### 📝 Describe your problem I think we need an entry in the wiki for maintenance of uptime kuma. For example I found in ~/.cache/Cypress 1.2GB of files, are they needed? Can they be cleaned up? Is there a way to clean up unused npm modules to save disk space? I found a file `core.809` (180MB) in my uptime-kuma folder, I assume it is a coredump from a crash. Can we clean these up regularly? ### 📝 Error Message(s) or Log _No response_ ### 🐻 Uptime-Kuma Version 1.23.16 ### 💻 Operating System and Arch Ubuntu 24.04 x86_64 ### 🌐 Browser N/A ### 🖥️ Deployment Environment - Runtime: - Database: - Filesystem used to store the database on: - number of monitors:
Author
Owner

@CommanderStorm commented on GitHub (Mar 25, 2025):

If there are general maintenance tasks, we should perform them not some entry in the wiki.

We tried to compress the npm part, but were not succssfull.
About the other part I don't know => reclassifying as a FR

@CommanderStorm commented on GitHub (Mar 25, 2025): If there are general maintenance tasks, we should perform them not some entry in the wiki. We tried to compress the npm part, but were not succssfull. About the other part I don't know => reclassifying as a FR
Author
Owner

@CommanderStorm commented on GitHub (Mar 25, 2025):

The coredump should not be deleted, instead it might contain important information why your system crashed (or not, who knows?)

=> consider looking at the crashdump and reporting the results

@CommanderStorm commented on GitHub (Mar 25, 2025): The coredump should not be deleted, instead it might contain important information why your system crashed (or not, who knows?) => consider looking at the crashdump and reporting the results
Author
Owner

@Justinzobel commented on GitHub (Mar 25, 2025):

All the better if Uptime Kuma can clean up cache data by itself!

@Justinzobel commented on GitHub (Mar 25, 2025): All the better if Uptime Kuma can clean up cache data by itself!
Author
Owner

@Justinzobel commented on GitHub (Mar 25, 2025):

How does one open the crashdump file? Or is it easier if I just upload it somewhere for you to look at?

@Justinzobel commented on GitHub (Mar 25, 2025): How does one open the crashdump file? Or is it easier if I just upload it somewhere for you to look at?
Author
Owner

@CommanderStorm commented on GitHub (Mar 27, 2025):

Here is a stackexchange article explaining the various options:
https://askubuntu.com/questions/434431/how-can-i-read-a-crash-file-from-var-crash

I would ask you to do the work involved. Ther might be secrets in there you might not want shared/known.

@CommanderStorm commented on GitHub (Mar 27, 2025): Here is a stackexchange article explaining the various options: https://askubuntu.com/questions/434431/how-can-i-read-a-crash-file-from-var-crash I would ask you to do the work involved. Ther might be secrets in there you might not want shared/known.
Author
Owner

@JEFFIN4144 commented on GitHub (Sep 26, 2025):

hey im interested

@JEFFIN4144 commented on GitHub (Sep 26, 2025): hey im interested
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#4027
No description provided.