nodered.service: Failed to determine group credentials: No such process
nodered.service: Failed at step GROUP spawning /usr/bin/env: No such process
nodered.service: Main process exited, code=exited, status=216/GROUP
nodered.service: Failed with result 'exit-code'.
nodered.service: Scheduled restart job, restart counter is at 37.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
nodered.service: Failed to determine group credentials: No such process
nodered.service: Failed at step GROUP spawning /usr/bin/env: No such process
nodered.service: Main process exited, code=exited, status=216/GROUP
nodered.service: Failed with result 'exit-code'.
nodered.service: Scheduled restart job, restart counter is at 38.
This is my output from lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu20.04.3 LTS
Release: 20.04
Codename: focal
And if I run: sudo systemctl status nodered.service, this is the output. As you can see, it is constantly activating but it is never active.
[Service]
Type=simple #Run as normal pi user - change to the user name you wish to run Node-RED as
User=qmf
Group=qmf
WorkingDirectory=/home/qmf
Environment="NODE_OPTIONS=--max_old_space_size=2048" #uncomment and edit next line if you need an http proxy
#Environment="HTTP_PROXY=my.httpproxy.server.address" #uncomment the next line for a more verbose log output
#Environment="NODE_RED_OPTIONS=-v" #uncomment next line if you need to wait for time sync before starting
#ExecStartPre=/bin/bash -c '/bin/journalctl -b -u systemd-timesyncd | /bin/grep -q "systemd-timesyncd.* Synchronized to time server"'
#ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS
ExecStart=/usr/bin/env node $NODE_OPTIONS red.js $NODE_RED_OPTIONS #Use SIGINT to stop
KillSignal=SIGINT #Auto restart on crash
Restart=on-failure
RestartSec=20 #Tag things in the log
SyslogIdentifier=Node-RED
#StandardOutput=syslog
Were you logged in as user qmf then? There should generally be a group with the same name as the user. Either create the group qmf and add the user to it, or if the service file is wrong then change the user/group/working directory there as appropriate. The error you got means that the group is invalid.