-
-
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
Updating without losing data #3968
Comments
First thing first, make a backup of your old volume first. You don't need to create a new volume. You can use the same volume all the time. You should follow: Transferring data using HeidiSQL is not recommended, because Uptime Kuma has its own database migration process. |
Thank you for your time to reply. I have seen that wiki but never knew it has its own database migration. I assume it uninstall old container since its has "rm" command. |
See the diference between The local file system of the container indeed gets deleted and the container also gets deleted. |
@louislam sorry if its out of context, is their a way to change uptime percentage in status page? as far as i know, the uptime is only 24h. any plan for this? |
Inital requirements for such a feature were added by #2750 Here is our contribution guide: https://github.com/louislam/uptime-kuma/blob/b534fde26512bb4e6ae674aa92d5447c11e15b2c/CONTRIBUTING.md |
We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days. |
🛡️ Security Policy
📝 Describe your problem
May i know what is the appropriate way to update uptime-kuma without losing any data? The steps i always do are as below but sometime its working sometimes its not working.
FYI, i have 800+ monitoring with already have 9GB for kuma.db.
📝 Error Message(s) or Log
This is the error i get when i do docker logs --details containerID
at consoleCall ()
at Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:987:25)
2023-10-31T04:11:50+08:00 [MONITOR] ERROR: Please report to https://github.com/louislam/uptime-kuma/issues
2023-10-31T04:11:50+08:00 [MONITOR] INFO: Try to restart the monitor
Trace: [Error: select * from
heartbeat
where monitor_id = 614 ORDER BY time DESC limit 1 - SQLITE_CORRUPT: database disk image is malformed] {errno: 11,
code: 'SQLITE_CORRUPT'
}
Sometimes it works maybe depending on the updated version. but for this latest v.1.23.3, I always failed to update. once transfer the db, uptime kuma reconnects every 1 minute
🐻 Uptime-Kuma Version
1.23.3
💻 Operating System and Arch
Oracle Linux 8.5
🌐 Browser
Google Chrome
🐋 Docker Version
20.10.17
🟩 NodeJS Version
No response
The text was updated successfully, but these errors were encountered: