Commit Graph

263 Commits

Author SHA1 Message Date
Louis Lam
07b38184bb fix: Revert back to single SQLite connection by default (#7346) 2026-05-04 00:05:25 +08:00
Andreas Wagner
913105f2de fix: Add busy_timeout to sqlite to avoid error SQLITE_BUSY: database is locked (#7307) 2026-05-02 20:24:00 +08:00
Louis Lam
ba85804c23 fix(database): add UPTIME_KUMA_SQLITE_SINGLE_CONNECTION (#7312) 2026-04-26 23:49:52 +08:00
otbutz
aa40ffdf23 fix(database): knex propagate create errors (#7155) 2026-03-16 23:18:05 +08:00
Cassandra
174c63d479 feat: structured logging (JSON) (#5179)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
2026-02-26 17:02:58 +00:00
Louis Lam
41e75ddd6e refactor: improve SQLite multiple connections (#6979) 2026-02-19 13:58:55 +08:00
Diego
a86789be6c feat: Add path to socket for external mariadb database (#6670)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2026-01-18 16:44:43 +01:00
Nilanjan Debnath
c5675ae9eb feat(setup-database): Add SSL authentication method for database setup (#6671)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2026-01-11 07:03:53 +00:00
Frank Elsinga
0f61d7ee1b chore: enable formatting over the entire codebase in CI (#6655)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-09 02:10:36 +01:00
Shengqi Chen
d23ff8c486 fix: v2 migration process report is always 0 when having many monitors / dates (#6516)
Signed-off-by: Shengqi Chen <i@harrychen.xyz>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2025-12-22 14:31:39 +00:00
Amirparsa Baghdadi
756f179219 feat: make mariadb max pool connections controllable via env (#6386)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2025-12-03 13:19:19 +00:00
Louis Lam
a4d2e077b8 Fix: Check MySQL database name (#5991) 2025-08-31 01:26:32 +08:00
ianlv
54b0c89ea5 chore: fix typos in code comments (#5966)
Signed-off-by: ianlv <sunlvyun@outlook.com>
2025-07-02 16:18:13 +02:00
Louis Lam
e0335ecfbd [Eliminate Blocking] Database related (#5926) 2025-06-19 14:30:24 +08:00
Đăng Khoa
0b29fd49ad fix(sql): use UTC_TIMESTAMP instead of NOW for consistent time calcul… (#5843) 2025-05-17 23:33:00 +02:00
Louis Lam
efdffca06c Fix: [MariaDB] Unable to clean up heartbeat data (#5425)
Co-authored-by: GJS <homelab.api@gmail.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-12-12 14:49:01 +08:00
Louis Lam
5864c6dd88 Fix: Embedded MariaDB startup issue (#5283) 2024-11-05 20:25:08 +08:00
Louis Lam
ca094296f2 Fix: Knex cannot set a default value for TEXT field (MariaDB) (#5261) 2024-10-28 13:16:22 +08:00
Louis Lam
277d6fe0ce Fix #5087 and fix migration state (#5260) 2024-10-27 20:30:44 +08:00
Louis Lam
46d8744fa4 Fix: Docker Healthcheck is not happy during migration (#5258) 2024-10-27 13:22:23 +08:00
Louis Lam
4d779cfc69 Data migration and history retention for 2.0.0 (#5075) 2024-10-26 20:50:29 +08:00
Louis Lam
eca90a2b00 Revert "feat: structured logging (JSON)" (#5175) 2024-10-09 07:43:44 +08:00
Cassandra
b287a25de7 feat: structured logging (JSON) (#5118) 2024-09-24 17:51:21 +08:00
Louis Lam
85c67b6866 Revert "Switch back to TryGhost/node-sqlite3 from louislam/node-sqlite3" (#4879) 2024-06-24 15:52:07 +08:00
Louis Lam
88b7c047a8 Switch back to TryGhost/node-sqlite3 from louislam/node-sqlite3 (#4773) 2024-05-20 10:42:37 +08:00
Louis Lam
6bfb1be71a Improve MariaDB's connection (#4728) 2024-05-19 22:46:22 +08:00
Nelson Chan
08f75b0b99 Fix: Add missing FK for monitor-tls-info table (#4632) 2024-03-31 12:04:22 +08:00
Frank Elsinga
0e3b3a9ab8 Made sure that more of the async usages are awaited (#4574) 2024-03-15 15:02:55 +01:00
Nelson Chan
35479c7690 Fix: Disable timezone conversion for mariadb (#3756) 2023-12-03 01:34:26 +08:00
Louis Lam
2aa15ea635 Merge branch '1.23.X' into 1.23.X-merge-to-2.X.X
# Conflicts:
#	server/database.js
2023-11-18 01:37:30 +08:00
Louis Lam
f0975cd929 Should be a final ulitmate fix for request timeout issue (#4045)
* Try to fix timeout again

* Ops
2023-11-18 01:17:54 +08:00
Louis Lam
65cbc7b318 Migrate kafka_producer patch 2023-11-13 21:19:43 +08:00
Louis Lam
ace1fe00c2 Merge branch 'master' into 1.23.X-merge-to-2.X.X
# Conflicts:
#	docker/debian-base.dockerfile
#	package-lock.json
#	server/database.js
#	server/model/monitor.js
#	server/uptime-kuma-server.js
#	server/util-server.js
2023-11-13 21:15:51 +08:00
Muhammed Hussein karimi
9f170a68d7 🐛 fix: boolean fields in kafka producer monitor (#3949)
* 🐛 fix: boolean fields in kafka producer monitor

Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>

* 🐛 fix: boolean fields db patch table modify

Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>

* ✏️  typo: remove `_old` COLUMNs in patch-fix-kafka-producer-booleans

Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>

---------

Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
2023-10-28 14:42:55 +08:00
Louis Lam
e11aad2d60 Add some comments 2023-10-18 21:54:48 +08:00
Louis Lam
03e43ab364 Log color and simplify startup log for production (#3889) 2023-10-14 03:00:34 +08:00
Louis Lam
852b3fa61b Merge branch '1.23.X'
# Conflicts:
#	package-lock.json
#	server/database.js
#	server/server.js
#	server/util-server.js
2023-10-09 21:28:01 +08:00
Louis Lam
16a396debb Similar to #3763, but for 1.23.3 2023-09-21 20:38:54 +08:00
Louis Lam
2ef759a362 Allow missing patch files for downgrade or testing pr. 2023-09-21 20:12:10 +08:00
Louis Lam
83d91dbb1b Set mariadb timezone to UTC using +00:00 (#3723) 2023-09-10 18:33:09 +08:00
Frank Elsinga
d6302198f3 chore(jsdoc):Linting fixes (#3703)
* fixed the lockfile having a different version

* jsdoc
2023-09-07 15:42:44 +08:00
Nelson Chan
f3e1a9c61a Fix: Incorrect database check in sqlHourOffset (#3706) 2023-09-07 14:00:49 +08:00
Louis Lam
076331bf00 Uptime calculation improvement and 1-year uptime (#2750) 2023-09-01 05:19:21 +08:00
Louis Lam
db3a7d69fe Change some jsdoc rule to warn instead of error 2023-08-11 22:29:45 +08:00
Matthew Nickson
8a92054c2b Added JSDoc to ESLint (#3529)
* Added JSDoc to eslint rules

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>

* Fixed JSDoc eslint errors

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>

* Update the check-linters workflow to Node.js 20

---------

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
2023-08-11 15:46:41 +08:00
Louis Lam
da4f4e3d76 Update migrations 2023-08-09 21:07:23 +08:00
Louis Lam
3e0f5f4231 Merge branch 'master' into 2.0.X
# Conflicts:
#	package-lock.json
#	server/database.js
#	server/util-server.js
2023-08-09 20:09:56 +08:00
Nelson Chan
2921f33c24 Feat: add givenPortOnly as gamedig option (#3532) 2023-08-08 03:14:21 +08:00
Jinhyeok Lee
439b6517d1 Feat: Add http/http keyword timeout option (#2142)
* feat: Add timeoutMs field

* chore: Update Languages (incl. ko-KR)

* Revert "chore: Update Languages (incl. ko-KR)"

This reverts commit 349331a00b.

* chore: Update ko-KR selectively

* chore: Update en selectively

* Merge manually

* Reorder and show only if http related monitors

* fix: Update Korean translation

* fix: Rename timeoutMs to timeout, rename label, make DOUBLE

* fix: Change minimum step to 0.1, matching DOUBLE type

* Put the sql patch at the end

* Update EditMonitor.vue

* Colocate timeout with retry, fix clampTimeout logic, show default on 0

* Update src/pages/EditMonitor.vue to remove a comment

Co-authored-by: Frank Elsinga <frank@elsinga.de>

* Fix merge issue

* Update the timeout value while finished editing the interval value

---------

Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2023-08-07 00:14:56 +08:00
Louis Lam
c6e68fac97 Follow up #2852 (#3527) 2023-08-04 23:08:44 +08:00