ByteStash LXC - Problem with node.js >= 20 #2702
Replies: 5 comments
-
Hi Larssen, thank you for this. I've already made a post on their github asking for a Node 22 support, as Node 18 is EOL pretty much. Have you tested to see if application is fully functional after patching? #2705 PR up |
Beta Was this translation helpful? Give feedback.
-
For now, what I can say is:
I'll keep you posted when I did. Have a nice day. Cheers, |
Beta Was this translation helpful? Give feedback.
-
So, I tried to use it a little bit more and it seems ok.
Not sure how it will behave after an update, but for now it's fine :) Have a nice day. Cheers, |
Beta Was this translation helpful? Give feedback.
-
The app now supports Node v22 natively. The dev updated it :) |
Beta Was this translation helpful? Give feedback.
-
Tks for the information! I just updated it and took a look to the config file => globalThis.crypto disappeared! They must have heard about this post :P Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello all,
As I was not able to create an account or login after installing ByteStash, I started investigating with my friend Chat GPT :)
The reason everything happened was because the bytestash-backend.service was exited. And the reason why it exited was because opt/bytestash/server/src/oidc/oidcConfig.js has this line:
globalThis.crypto = crypto;
Trying to modify globalThis.crypto seems to be forbidden since node.js > 20 and the script is installing node.js 22.
There are 2 solutions:
As I went with first one, here's the steps:
if (!globalThis.crypto) { globalThis.crypto = crypto; }
sudo systemctl restart bytestash-backend
Now, if you go to http://your.ip:3000, you should be asked to create an account.
Hope this helps :)
Regards,
Larssen
Beta Was this translation helpful? Give feedback.
All reactions