Broken Update n8n to 2.36.8
-
I debugged this on my instance with Claude Code and found what looks like the actual root cause, sharing here in case it helps.
Root cause (confirmed via docker exec):
/home/cloudron inside the container is owned by 998:998 with mode 750:$ docker exec <cid> ls -lan /home/ drwxr-xr-x 1 998 998 4096 Aug 7 14:46 . drwxr-x--- 1 998 998 4096 Sep 1 10:59 cloudronBut
start.shrunsgosu cloudron:cloudron npm install ...and that user isuid=1000(cloudron)gid=1000(cloudron). Since998:998isn't in that user's groups and the dir is750, UID1000has zero traversal access to/home/cloudron- it fails on the very first path component, not just on_cacacheownership. That's also why thechown -R 1000:1000 ~/.npmsuggestion in the npm error message doesn't actually help here.On top of that,
/home/cloudronis baked into a read-only image layer: chown as root inside the running container fails with "Read-only file system" on every file under it. So it can't be patched at runtime - it needs a fix in the image build (chown /home/cloudron to 1000:1000at build time, or align the cloudron user's UID/GID with998).Workaround that avoids touching /home/cloudron entirely, added to env.sh:
export NPM_CONFIG_CACHE="/run/n8n/custom-node-modules/.npm-cache"This redirects npm's cache to a path start.sh already chowns to cloudron:cloudron before running the install step. Confirmed working on my instance - install succeeds and n8n starts normally with this in place.
Hope this saves someone some time, happy for the team to take it from here.
-
G girish referenced this topic
-
@girish its working thank you
-
D Divemasterza referenced this topic
-
We are looking into this again @locutus , thanks for reporting. Meanwhile, I have revoked the release.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
