# Failed at step GROUP spawning /usr/bin/env: No such process

**URL:** <https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306>\
**Category:** General\
**Created:** [14 February 2022 11:10 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306 "2022-02-14T11:10:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![quemf](https://avatars.discourse-cdn.com/v4/letter/q/97f17d/32.png) [@quemf](https://discourse.nodered.org/u/quemf)\
**Post date:** [14 February 2022 11:10 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306/1 "2022-02-14T11:10:31Z")

</div>

Hi,

I've been using node-red for a while now, and today I realized that I can't execute it from my laptop, and I can't find the reason.

I tried to uninstall it with these recommendations:

> [@How to uninstall Node-Red](https://discourse.nodered.org/t/how-to-uninstall-node-red/19135):
>
> Hey all, new here and TOTALLY new to Node-Red. Ive never used it before, and I was just looking into it. Well, I installed it with the script that is given in the tutorial for Ubuntu or Debian based systems: bash \<(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) Now, I cant figure out how to completely remove it from my system... any suggestions? I'm on Ubuntu 19.10.

I installed it again with the command I usually do it:  
[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

But this is what I get:

> 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: **Ubuntu**  **20.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.

> ● nodered.service - Node-RED graphical event wiring tool  
> Loaded: loaded (/lib/systemd/system/nodered.service; enabled; vendor preset: enabled)  
> Active: **activating** (auto-restart) (Result: exit-code) since Mon 2022-02-14 12:05:47 CET; 18s ago  
> Docs: [Redirecting…](http://nodered.org/docs/hardware/raspberrypi.html)  
> Process: 21874 ExecStart=/usr/bin/env node $NODE\_OPTIONS red.js $NODE\_RED\_OPTIONS (code=exited, status=216/GROUP)  
> Main PID: 21874 (code=exited, status=216/GROUP)

Could you please help me?

Thank you!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 February 2022 11:33 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306/2 "2022-02-14T11:33:09Z")

</div>

Can you paste the file /lib/systemd/system/nodered.service here please?

Can you logon as the user you used to install node red and run the command  
`groups`

---

<div class="post-metadata">

**Author:** ![quemf](https://avatars.discourse-cdn.com/v4/letter/q/97f17d/32.png) [@quemf](https://discourse.nodered.org/u/quemf)\
**Post date:** [14 February 2022 11:38 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306/3 "2022-02-14T11:38:32Z")

</div>

The **/lib/systemd/system/nodered.service** content:

> #systemd service file to start Node-RED
> 
> [Unit]  
> Description=Node-RED graphical event wiring tool  
> Wants=network.target  
> Documentation=[Redirecting…](http://nodered.org/docs/hardware/raspberrypi.html)
> 
> [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
> 
> [Install]  
> WantedBy=multi-user.target

And the **groups** command shows:

> openmote adm dialout cdrom sudo dip video plugdev lpadmin lxd sambashare docker

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 February 2022 11:55 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306/4 "2022-02-14T11:55:00Z")

</div>

> [@quemf](#):
>
> And the **groups** command shows:

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.

---

<div class="post-metadata">

**Author:** ![quemf](https://avatars.discourse-cdn.com/v4/letter/q/97f17d/32.png) [@quemf](https://discourse.nodered.org/u/quemf)\
**Post date:** [16 February 2022 16:16 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306/5 "2022-02-16T16:16:58Z")

</div>

Thank you! It works now!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 March 2022 16:17 UTC](https://discourse.nodered.org/t/failed-at-step-group-spawning-usr-bin-env-no-such-process/58306/6 "2022-03-02T16:17:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
