-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Migration From v1 To v2
Warning
It is a major version update. It contains some breaking changes. Please read the migration guide carefully if you want to upgrade from v1 to v2.
- Stop your Uptime Kuma and:
- Backup your
datadirectory. - Make sure you have a backup of your
datadirectory again. - Make sure you have a backup of your
datadirectory again again.
- Backup your
- The migration process could take some time to complete, depending on the size of your database.
- You should be able to view the logs of the migration process in the console.
- Do not interrupt the migration process.
- FYI: My Uptime Kuma had 20 monitors and 90 days of data, and it took around 7 minutes to migrate.
- Beta version is not stable and may contain bugs, especially for the first beta release.
- The
:durationof these endpoints accepts24,24h,30d,1yonly<kuma-url>/api/badge/:monitorID/ping/:duration<kuma-url>/api/badge/:monitorID/uptime/:duration
- Dropped support for legacy browsers
- The deprecated backup and CachableLookup features are completely removed now
- Default retires for NEWly created monitors are now
0instead of1to prevent users being confused -
Email (SMTP)switched templating for subjects/bodys from a custom-regex to LiquidJS. LiquidJS does discriminate between case-ness of variables and ignores all non-matching variables. These are the supported variables:name,msg,status,heartbeatJSON,monitorJSON,hostnameOrUrl
- Dropped support for Alpine base docker image (But you still can migrate to the v2)
- If your host are using Debian / Raspbian Buster, you should not upgrade. Due to the bug of libseccomp2, it will be running into a startup problem. Read more: https://github.com/louislam/uptime-kuma/issues/41#issuecomment-896164516
- Dropped support for Node.js 14 and 16. The minimum supported version of Node.js is 18. Node.js 20 is recommended.
| Tag | Description |
|---|---|
| 2 | Latest version of v2 (Recommended) |
| 2-slim | (Slim) Latest version of v2 |
| Tag | Description |
|---|---|
| 2.x.x | Version pinned to a specific release |
| 2.x.x-slim | (Slim) Latest version of v2 pinned to a specific release |
| next | Lastest version of Uptime Kuma |
| next-slim | (Slim) Latest version of Uptime Kuma |
| Tag | Description |
|---|---|
| 2-rootless | Latest version of v2 (Rootless) |
| 2-slim-rootless | (Slim) Latest version of v2 (Rootless) |
| 2.x.x-rootless | Pinned to a specific release (Rootless) |
| 2.x.x-slim-rootless | (Slim) Pinned to a specific release (Rootless) |
| Tag | Description |
|---|---|
| beta | The latest of Beta version of Uptime Kuma |
| 2.x.x-beta.x | Pinned to a specific beta release |
| nightly2 | Development build |
| nightly2-rootless | Rootless development build |
Slim version is a smaller image size, it is about ~300MB to ~400MB smaller than the full version.
Full version includes:
- Embedded MariaDB
- Embedded Chromium
- Embedded some fonts for Chromium
- Any big dependencies in the future may be included in the full version only too
If you don't need the above features, you can use the slim version.
Rootless tags are for users who want to run Uptime Kuma without root privileges, but some features may not work as expected.
Known issues:
- Docker monitor will not work without proper configure, as by default, it requires root privileges.
- If file permission is not set correctly, it may cause some issues.
- Unable to use embedded MariaDB, you will need to use external MariaDB.
- Stop your Uptime Kuma container.
docker stop uptime-kuma- Backup your
datadirectory. - Change the image tag to
louislam/uptime-kuma:2-beta.
docker run -d --restart=unless-stopped -p <YOUR_PORT>:3001 -v <YOUR_DIR OR VOLUME>:/app/data --name uptime-kuma louislam/uptime-kuma:2-beta- Check the logs to see the migration process.
docker logs -f uptime-kuma- Stop your Uptime Kuma stack.
docker compose down-
Backup your
datadirectory. -
Change the image tag to
louislam/uptime-kuma:2-beta.
services:
uptime-kuma:
image: louislam/uptime-kuma:2-beta
....- Start your Uptime Kuma stack.
docker compose up -d- Check the logs to see the migration process.
docker compose logs -fBeta is not available for non-docker yet.
Cannot be done directly. You will need to export your data from SQLite and import it into MariaDB using 3rd party tools.