-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
n8n: fails to start on aarch64 #119687
Comments
Hi, I just tried the binary on my machine from master, looks ok, but it is not an aarch64. |
@purcell Can you please check if a basic call to |
I can second that enabling the n8n service on raspberry pi 4 fails. It seems to fail for me on other machines as well but with a slightly different error message. I don't have the errors at hand but can try to post when I have my computer. |
In fact I run the |
On my non-arm machine I recall that it looks like a permission error when starting node. Edit, here's the output on non-arm64:
|
A guess is that this folder is owned by the wrong user. |
I tried the n8n derivation from unstable on my 20.09 system and it looks good, even as a service. This module has some hardening features enabled in the systemd unit file. Maybe the systemd update from 20.09 -> unstable could explain the change? I don't have a running system with unstable kernel/systemd |
But this folder is generated by systemd on startup |
It's owned by |
Actually, only the symlink is owned by root. Here are the corresponding directories:
So it looks like But in any case, it looks like the error is related to nodejs/node#37061, supposedly fixed in Node 15.9.0 |
Scratch that, I think the error message for that issue is a bit different. There's talk here of fixing this specific error via the attributes of the node executable, e.g. |
I am not sure is matches the nix store requirements |
Yeah, that's definitely not a fix, just noting related info I found. |
pretty sure it's because of the:
in systemd' service configuration. This is incompatible with nodejs afaik, because its JIT relies on the fact it can rewrite the program's code dynamically. |
The MemoryDenyWriteExecute systemd option is widely known to be incompatible with nodejs, and causes service crashes as reported in NixOS#119687. Fixes NixOS#119687.
Describe the bug
Wanted to try out n8n on a Raspberry Pi 4 running latest nixos-unstable, so I enabled it with no specific startup configuration, and it exits with the following error:
I don't see any corresponding issues in github.
To Reproduce
Steps to reproduce the behavior:
services.n8n.enable = true
nixos-rebuild switch
journalctl -u n8n
Expected behavior
Successful startup and accessible by web interface.
Screenshots
Notify maintainers
@freezeboy, @arjunv27
Metadata
"aarch64-linux"
Linux 5.4.79, NixOS, 21.05pre282432.311ceed827f (Okapi)
yes
yes
nix-env (Nix) 2.3.10
"nixos-21.05pre282432.311ceed827f"
""
""
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: