I was running an old 1.X version and installed 2.9.0 over the top after upgrading to node 18.20.4 The install went ok but when I started the service, it didn't.
When I check with sudo service flowforge status
I get this . . .
Oct 08 12:30:21 localhost systemd[1]: flowforge.service: Main process exited, co
Oct 08 12:30:21 localhost systemd[1]: flowforge.service: Failed with result 'exit-code'
~
Cleared it all out and did a full reinstall from latest version after a node.js v20 install as well, and . . .
flowfuse.service - FlowFuse Platform
Loaded: loaded (/lib/systemd/system/flowfuse.service; disabled; vendor preset
Active: activating (auto-restart) (Result: exit-code) since Tue 2024-10-08 13
Docs: Documentation • FlowFuse
Process: 27778 ExecStart=/opt/flowforge/bin/flowfuse.sh (code=exited, status=1
Main PID: 27778 (code=exited, status=1/FAILURE)
Oct 08 13:05:50 localhost systemd[1]: flowfuse.service: Main process exited, cod
Oct 08 13:05:50 localhost systemd[1]: flowfuse.service: Failed with result 'exit
lines 1-9/9 (END)
so I found something using port 3000 and all was nearly well . . . managed to get into the admin portal and create a node-red instance . . . now it fails because the instance has node v16.X and needs higher - but my debian instance has node 18 installed ?!?! is there some way to chance the node-js instance Flowfuse is using for its NR instances ?
I've used flowfuse quite a bit previously and never hit probs like this
How have you installed node.js? The launcher will be using whatever version of node.js it finds on the path. Depending how you have node.js installed, it may have modified the path of your user to pickup node 20, whereas the FF service running as its own user has a different path configured.
nvm is very useful for installing multiple versions of node.js, however it only sets up the local user's path to point at what you've installed using it.
For other users, it will fall back to the version installed via apt (as this is Debian).
One solution will be to update the version of node.js you have installed globally via apt. Rather than rely on the default debian repositories which are usually backlevel, you can install from nodesource: GitHub - nodesource/distributions: NodeSource Node.js Binary Distributions - just note their instructions will get you Node 22.
Thanks - I checked the APT installed version and it was old, however I'd got myself into a mess and fortunately had a backup of the VM I was on and restored, then updated using APT and I'm now in a happy place ( who knows how long that will last ! ) so thanks for the help, appreciated