# GROUP SELECTION not working. NR 4.0.9

**URL:** https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523
**Category:** General
**Created:** [10 June 2025 03:56 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523 "2025-06-10T03:56:49Z")
**Posts on this page:** 11
**Page:** 2

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 June 2025 23:45 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/22 "2025-06-10T23:45:03Z")

</div>

For the fun of it.

The one I posted works on both.

THOUGH: **BOOKWORM** -- can't say.

Yours doesn't work.

ERROR 123 on the `nodered last restarted` node.

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [11 June 2025 01:09 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/23 "2025-06-11T01:09:39Z")

</div>

We are going off at a bit of a tangent here but at least you will have relevant info to hand next time someone asks for it 😉

Much simpler (on the surface) flow, it works in Debian, would be interested to see if it's OK on Ubuntu ?

```auto
[{"id":"e5c2ee066e9fbfc6","type":"inject","z":"32bc1133.9bf706","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"OS Info","x":1205,"y":2460,"wires":[["f8c36499d7f2a52c"]],"l":false},{"id":"f8c36499d7f2a52c","type":"exec","z":"32bc1133.9bf706","command":"node-red --version && cat /etc/os-release | grep -oP '^PRETTY_NAME=\"\\K.*?(?=\")' && stat -c %y /lost+found | cut -d'.' -f1 | xargs -I {} date -d \"{}\" -Iseconds && uptime -s | xargs -I {} date -d \"{}\" -Iseconds && npm --version && systemctl show nodered | grep '^ExecMainStartTimestamp=' | cut -d'=' -f2- | xargs -I {} date -d \"{}\" -Iseconds","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Get OS Name & last reboot","x":1370,"y":2460,"wires":[["08df6dd7f4c7475b"],[],[]]},{"id":"08df6dd7f4c7475b","type":"function","z":"32bc1133.9bf706","name":"","func":"const line = msg.payload.split('\\n');\n\nmsg.payload = {\n nodered_version: line[0].split(\"v\")[1],\n nodejs_version: line[1].split(\"v\")[1],\n npm_version: line[6],\n nr_started: line[7],\n\n // System info\n hostname: os.hostname(),\n os_pretty: line[3],\n release: `${os.type()} ${os.release()} ${os.arch()} ${os.endianness()}`,\n os_installed: line[4],\n last_reboot: line[5],\n\n // CPU info\n cpu: os.cpus()[0].model,\n cores: os.cpus().length,\n\n // Memory info\n totalmem: (os.totalmem() / (1024 ** 3)).toFixed(1) + \" GB\",\n freemem: (() => {\n const freeMem = os.freemem();\n const gb = freeMem / (1024 * 1024 * 1024);\n return gb >= 1 ? `${gb.toFixed(1)} GB` : `${Math.round(freeMem / (1024 * 1024))} MB`;\n })(),\n\n // Load average\n loadAverage: (() => {\n const [load1min, load5min, load15min] = os.loadavg();\n return {\n load1min: Number(load1min.toFixed(2)),\n load5min: Number(load5min.toFixed(2)),\n load15min: Number(load15min.toFixed(2))\n };\n })(),\n\n // Network interfaces\n networkInterfaces: os.networkInterfaces(),\n\n // Add timestamp of when this data was collected\n collected_at: new Date().toISOString()\n};\n\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[{"var":"os","module":"os"}],"x":1545,"y":2460,"wires":[["e369c7b8dfd5743d"]],"l":false},{"id":"e369c7b8dfd5743d","type":"debug","z":"32bc1133.9bf706","name":"info","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1660,"y":2460,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [11 June 2025 01:14 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/24 "2025-06-11T01:14:22Z")

</div>

Ubuntu output:

```auto
nodered_version: "4.0.9"
nodejs_version: "20.19.2"
npm_version: "10.8.2"
nr_started: "2025-06-11T07:40:14+10:00"
hostname: "me-desktop"
os_pretty: "Ubuntu 22.04.5 LTS"
release: "Linux 5.15.0-141-generic x64 LE"
os_installed: "2017-10-31T15:42:16+11:00"
last_reboot: "2025-06-11T07:40:07+10:00"
cpu: "Intel(R) Core(TM) i5-7260U CPU @ 2.20GHz"
cores: 4
totalmem: "31.2 GB"
freemem: "12.7 GB"
loadAverage: object
networkInterfaces: object
collected_at: "2025-06-11T01:13:14.437Z"

```

Looking good!

(Maybe you should upload this to the .... library as a node to use to get _system information_ when posting problems.)

I'm sure a lot of people would appreciate it.

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [11 June 2025 01:20 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/25 "2025-06-11T01:20:27Z")

</div>

Done -

> [@A flow to gather system information when reporting issues etc](https://discourse.nodered.org/t/a-flow-to-gather-system-information-when-reporting-issues-etc/97540):
>
> When reporting issues on the forum, it's much easier to help if all the important information is included. This flow collects most of the helpful information in one place. [{"id":"e5c2ee066e9fbfc6","type":"inject","z":"32bc1133.9bf706","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"OS Info","x":1205,"y":2460,"wires":[["f8c36499d7f2a52c"]],"l":false},{"id":"f8c36499d7f2a52c","type":"exec","z":"32bc1133.9bf706","command":"node-red --ve…

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [11 June 2025 01:28 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/26 "2025-06-11T01:28:03Z")

</div>

Good on your Steve.

I really think that WILL be appreciated.

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [11 June 2025 01:29 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/27 "2025-06-11T01:29:37Z")

</div>

It's Sean BTW - Steve is Captain Pickard, not Data !  
😉

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [11 June 2025 01:37 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/28 "2025-06-11T01:37:42Z")

</div>

I am sorry. I am SHOCKING with names.

Even though if I click on the icon it would probably tell me.  
(Phew... It doesn't) 😉

And as you said: We should probably stop nattering on here.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 June 2025 10:13 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/29 "2025-06-11T10:13:40Z")

</div>

> [@Trying\_to\_learn](#):
>
> Well there is a _problem_ that the `sudo` command needs the password

Oops! I forgot that as well. I have specific sudo commands allowed to run by the node-red user without a password and that is one of them.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [11 June 2025 21:13 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/30 "2025-06-11T21:13:21Z")

</div>

No problems.

Did you see the flow uploaded by Sean for getting system information?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [11 June 2025 21:40 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/31 "2025-06-11T21:40:10Z")

</div>

Yes, saw that thanks. Probably better than mine.

Mine has been working for me for a long time though and is linked into other notifications so I'm going to keep mine. 😃 Glad it triggered some useful discussion though.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [11 June 2025 21:59 UTC](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523/32 "2025-06-11T21:59:02Z")

</div>

On RPiOS at least you don't need sudo for systemctl status or systemctl show nodered.

```auto
$ systemctl show nodered | grep -oP 'ExecMainStartTimestamp=\K.*' | xargs -0 date -Iseconds -u -d
2025-06-11T10:02:01+00:00

```

[Previous page](https://discourse.nodered.org/t/group-selection-not-working-nr-4-0-9/97523.md?page=1)
