Skip to content

Commit 1dccaac

Browse files
dnikuibizaman
authored andcommitted
karakeep: use Node 22
The Karakeep SSO VM aborted in better-sqlite3's Statement destructor under Node 24.19.0, as observed in https://github.com/ibizaman/selfhostblocks/actions/runs/32601131491/job/97099512653. This matches Node's deterministic reproducer for a Node 24.19 ObjectWrap cleanup regression at nodejs/node#65446. The fix proposed in nodejs/node#63985 was manually landed on main as nodejs/node@68321ef. Its Node 24 backport at nodejs/node#65042 remains open. nixpkgs defaults to the affected Node 24.19. Node 26 does not enter LTS until October 2026, while Node 22 remains supported through April 2027 according to https://github.com/nodejs/Release#release-schedule. Use Node 22 as a temporary supported LTS workaround while preserving explicit package overrides.
1 parent bc3234e commit 1dccaac

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎modules/services/karakeep.nix‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
config,
33
lib,
4+
pkgs,
45
shb,
56
...
67
}:
@@ -197,6 +198,22 @@ in
197198
services.karakeep = {
198199
enable = true;
199200
meilisearch.enable = true;
201+
# Node 24.19 can abort ObjectWrap addons during GC. Use the supported
202+
# Node 22 LTS until a fixed Node 24 reaches nixpkgs.
203+
# https://github.com/nodejs/node/issues/65446
204+
# Manually landed on main: https://github.com/nodejs/node/commit/68321eff80918e324e9fdaf1aa8cee6db14b84f7
205+
# Pending Node 24 backport: https://github.com/nodejs/node/pull/65042
206+
# https://github.com/nodejs/Release#release-schedule
207+
package = lib.mkDefault (
208+
assert lib.assertMsg (pkgs.nodejs.version == "24.19.0") ''
209+
The Karakeep Node 22 workaround expected nixpkgs to provide Node
210+
24.19.0, but it now provides ${pkgs.nodejs.version}. Check whether
211+
https://github.com/nodejs/node/pull/65042 has landed and retry
212+
Karakeep with pkgs.karakeep. If fixed, remove the Node 22 override;
213+
otherwise update this guard with evidence for retaining it.
214+
'';
215+
pkgs.karakeep.override { nodejs = pkgs.nodejs_22; }
216+
);
200217

201218
extraEnvironment = {
202219
PORT = toString cfg.port;

0 commit comments

Comments
 (0)