Skip to content

draupnir: hostfix for broken nodejs 24.19 - #557949

Closed
TuxCoder wants to merge 2 commits into
NixOS:masterfrom
TuxCoder:draupnir_nodejs_hotfix
Closed

TuxCoder wants to merge 2 commits into
NixOS:masterfrom
TuxCoder:draupnir_nodejs_hotfix

Conversation

@TuxCoder

@TuxCoder TuxCoder commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Change nodejs version to v22:

This prevents an upstream bug introduced in #548826
and still open here nodejs/node#65446

Add branch.txt to the runtime folder:

This fixes an error while startup of the daemon that files is not found.

Things done

I only tested this patch live against nixos 26.05 stable.
Runs currently on milliways.info and looks good to me.
tested branch: https://github.com/TuxCoder/nixpkgs/tree/draupnir_nodejs_hotfix_26_05

Maintainer: @TheArcaneBrony

upstream nodejs bug prevents draupnir from working
nodejs/node#65446
see also NixOS#548839
switch to nodejs_22 for now looks to work stable
On startup draupnir tries to read a branchfile if not found it will show
an error in the logs.
This patch provides the branch.txt also to the runtime.
@TuxCoder
TuxCoder marked this pull request as draft August 30, 2026 09:36
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Aug 30, 2026
@TuxCoder TuxCoder changed the title WIP: draupnir: hostfix for broken nodejs 24.19 draupnir: hostfix for broken nodejs 24.19 Aug 30, 2026
@TuxCoder
TuxCoder marked this pull request as ready for review August 30, 2026 13:46
@nixpkgs-ci
nixpkgs-ci Bot requested a review from TheArcaneBrony August 30, 2026 13:48
@mweinelt mweinelt added the backport release-26.05 Backport PR automatically label Aug 30, 2026
@TuxCoder

Copy link
Copy Markdown
Contributor Author

this error is currently not caught by the nixosTests:

  • error is hidden because systemd auto restarts service
  • would need to use more functionality than the current test, eg. !draupnir ban ... or something else

@TheArcaneBrony

Copy link
Copy Markdown
Member

I'm not sure this is the right solution. I can't find a concrete nodejs support policy for Draupnir, but the install from source documentation points to NodeJS 24 as only supported version.

Personally, I feel like this is the wrong way to fix this compared to reverting whichever NodeJS 24 bump broke NodeJS itself.
Perhaps others could share some thoughts too?

@TheArcaneBrony

Copy link
Copy Markdown
Member

Had a conversation with upstream: NodeJS 24 is the minimum NodeJS version that is supported. 22 may work but is an unsupported configuration and untested.

Additionally, I spent some time on making a PR to fix the tests not behaving as intended, and I don't seem to be able to reproduce this?

@TheArcaneBrony

Copy link
Copy Markdown
Member

To be clear:
image

@TuxCoder

Copy link
Copy Markdown
Contributor Author

close
see #558283

@TuxCoder TuxCoder closed this Aug 31, 2026
@TuxCoder
TuxCoder deleted the draupnir_nodejs_hotfix branch September 4, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants