You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you replicate the issue on the supported bench versions?
Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome
Describe the bug 📉
When running sudo bench setup production <user> the nodejs path is wrong in supervisor.conf, bench loads node from system path instead using the user environment installed like nvm install 18.
This behavior creates problem on OS which ship node < 16 like Ubuntu 22 and consequentially fail to start socketio process
This is the affected row in supervisor.conf
To Reproduce 📃
Steps to reproduce the behavior:
Install node
nvm install 18
sudo bench setup production <user>
Expected behavior 📈
supervisor.conf should use node from user environment like: command=/home/ubuntu/.nvm/versions/node/v18.20.5/bin/node /home/ubuntu/frappe-15/apps/frappe/socketio.js
Screenshots 🔮
If applicable, add screenshots to help explain your problem.
OS (please complete the following information): 🌀
Linux: Ubuntu:22
Version Information
Can be found out by running bench version in your respective bench folder.
Bench Branch: latest,
Frappe Version: v15
Additional context 📄
Add any other context about the problem here.
Possible Solution 📑
In git which("node") should use user context instead of sudo
Issue: Bug report
Do the checklist before filing an issue:
Describe the bug 📉
When running
sudo bench setup production <user>
the nodejs path is wrong in supervisor.conf, bench loads node from system path instead using the user environment installed like nvm install 18.This behavior creates problem on OS which ship node < 16 like Ubuntu 22 and consequentially fail to start socketio process
This is the affected row in supervisor.conf
To Reproduce 📃
Steps to reproduce the behavior:
Install node
Expected behavior 📈
supervisor.conf should use node from user environment like:
command=/home/ubuntu/.nvm/versions/node/v18.20.5/bin/node /home/ubuntu/frappe-15/apps/frappe/socketio.js
Screenshots 🔮
If applicable, add screenshots to help explain your problem.
OS (please complete the following information): 🌀
Ubuntu:22
Version Information
Can be found out by running
bench version
in your respective bench folder.Additional context 📄
Add any other context about the problem here.
Possible Solution 📑
In git which("node") should use user context instead of sudo
The text was updated successfully, but these errors were encountered: