# Help with error please - exec node chromium kiosk

**URL:** https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002
**Category:** General
**Created:** [4 March 2021 10:56 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002 "2021-03-04T10:56:51Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 10:56 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/1 "2021-03-04T10:56:51Z")

</div>

Hi Everyone,  
I have been leaving my Pi running for longer periods and I'm seeing that the browser Chromium is crashing. Node Red itself is still up and running and if I point an external browser at it all is good.

The only clue I have is this:  
 ![Chromium Error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c5155fe89558d71bf79f642cdb78da2541ba34a.png)

the line of code inside the exec node is:  
DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk [http://localhost:1880/ui](http://localhost:1880/ui) -start-fullscreen enable-logging --v=1

If I google the problem there is information which points to increasing the buffer size and other stuff I don't understand.

If anyone could point me in right direction as to how to increase the buffer size please.

I have since connected three msg nodes to the outputs of the exec node and am waiting........

Cheers.  
Paul.

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [4 March 2021 12:00 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/2 "2021-03-04T12:00:15Z")

</div>

What is the memory capacity of your Pi ?

Are you getting the message "Can't update Chromium" in your browser when Chrome crashes ?

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 12:57 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/3 "2021-03-04T12:57:59Z")

</div>

Hi @Andrei,  
Thanks for responding.  
It's a Pi 4B 2Gb. Updated everything to the latest yesterday otherwise running faultlessly.  
The problem has been apparent for a few weeks now.

When chromium crashes it just disappears, revealing the Pi desktop.  
No other clues apart from the error next to the exec node.

This morning I looked at the Pi screen (directly connected via HDMI) I didn't touch the Pi. I went straight to my desktop PC and connected to the 1880/ui and all is there and working.  
I then used 1880/#flow and saw the error as shown above.

Node red was continuing to work as expected. I then connected three msg nodes to the outputs of the exec node. I then did a full deploy. It's all working again, I'm just waiting now hoping to get more info from the msg nodes.

Is there anything wrong with my cmd line?  
DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk [http://localhost:1880/ui](http://localhost:1880/ui) -start-fullscreen enable-logging --v=1

That's all the info I have.

Hope that's of some use.

Cheers.  
Paul.

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 13:22 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/4 "2021-03-04T13:22:28Z")

</div>

When I look in - /home/pi/.config/chromium/Crash Reports - as sudo the folder is empty.

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [4 March 2021 14:06 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/5 "2021-03-04T14:06:34Z")

</div>

> [@FatPilot](#):
>
> Is there anything wrong with my cmd line?  
> DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk [http://localhost:1880/ui](http://localhost:1880/ui) -start-fullscreen enable-logging --v=1

Hi Paul, this is very similar to the configuration I use my kiosk applications. The difference is that you start Chromium inside a shell opened by the exec node in Node-RED whereas I open Chromium using the autostart file in the LXDE Desktop environment. Your approach is interesting but I think it is sensitive to the status of the exec session opened in your flow. Anything that breaks your flow will stop the exec session ad will terminate Chrome (for instance a full deploy or if you switch to another project in Node-RED). I don´t have access to a Pi running in kiosk mode right now. I will have a look tonight on how my configuration looks like.

---

<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: [4 March 2021 14:21 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/6 "2021-03-04T14:21:36Z")

</div>

In the exec node have you got Output when Command Complete, or Output as the Command is Running? If you have the former then it will have to buffer all the stdio output until the browser closes, which it never does, which is possibly why you get the overflow. Change the output mode and see what happens.

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 15:54 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/7 "2021-03-04T15:54:23Z")

</div>

Hi @Colin,  
When I change this I get a red circle and an error code -2

Cheers.  
Paul.

---

<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: [4 March 2021 16:12 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/8 "2021-03-04T16:12:20Z")

</div>

What is the text of the error. Show Full Message in the three debug nodes and expand the contents.

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 16:15 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/9 "2021-03-04T16:15:09Z")

</div>

Hi @Colin,  
Here it is.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/b/8b183b536cceb00784eef0945b0411dc996efdc4.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e87363f5ec1a7143a9912b066819794d84bcb305.png)

The only message is in the return code.

Cheers.  
Paul.

---

<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: [4 March 2021 16:25 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/10 "2021-03-04T16:25:02Z")

</div>

Odd, could you export that flow and paste it here please.

**[Edit]** Is there no message at all on output 1 or 2?

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 16:29 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/11 "2021-03-04T16:29:19Z")

</div>

No other messages.  
Sorry I can't remember how to format the code.

[{"id":"3665f925.450a76","type":"exec","z":"e5593c90.29dda","command":"DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk [http://localhost:1880/ui](http://localhost:1880/ui) -start-fullscreen enable-logging --v=1","addpay":false,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"Kiosk Display","x":370,"y":70,"wires":[["c3c8d968.9e3898"],["9bc4ab56.ff2458"],["ae8236a8.de0d08"]]},{"id":"4ba01b75.94a9e4","type":"inject","z":"e5593c90.29dda","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","payload":"","payloadType":"date","x":180,"y":70,"wires":[["3665f925.450a76"]]},{"id":"c3c8d968.9e3898","type":"debug","z":"e5593c90.29dda","name":"stdout","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":590,"y":40,"wires":},{"id":"9bc4ab56.ff2458","type":"debug","z":"e5593c90.29dda","name":"stderr","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":70,"wires":},{"id":"ae8236a8.de0d08","type":"debug","z":"e5593c90.29dda","name":"ReturnCode","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":130,"wires":}]

---

<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: [4 March 2021 16:36 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/12 "2021-03-04T16:36:22Z")

</div>

> [@FatPilot](#):
>
> Sorry I can't remember how to format the code.

[How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<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: [4 March 2021 16:38 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/13 "2021-03-04T16:38:09Z")

</div>

Yes, you are right, I wonder about the error. I will try a few things. It seems likely that the fact that you are making it buffer the output is responsible for the buffer overflow.

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 16:40 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/14 "2021-03-04T16:40:30Z")

</div>

@Colin, Thank you

Just to show I can do it!! 🙃 😉

```auto
[{"id":"3665f925.450a76","type":"exec","z":"e5593c90.29dda","command":"DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost:1880/ui -start-fullscreen enable-logging --v=1","addpay":false,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"Kiosk Display","x":370,"y":70,"wires":[["c3c8d968.9e3898"],["9bc4ab56.ff2458"],["ae8236a8.de0d08"]]},{"id":"4ba01b75.94a9e4","type":"inject","z":"e5593c90.29dda","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","payload":"","payloadType":"date","x":180,"y":70,"wires":[["3665f925.450a76"]]},{"id":"c3c8d968.9e3898","type":"debug","z":"e5593c90.29dda","name":"stdout","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":590,"y":40,"wires":[]},{"id":"9bc4ab56.ff2458","type":"debug","z":"e5593c90.29dda","name":"stderr","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":70,"wires":[]},{"id":"ae8236a8.de0d08","type":"debug","z":"e5593c90.29dda","name":"ReturnCode","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":630,"y":130,"wires":[]}]

```

---

<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: [4 March 2021 16:47 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/15 "2021-03-04T16:47:19Z")

</div>

Try this as the command  
`bash -c "DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost:1880/ui -start-fullscreen enable-logging --v=1"`

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 17:00 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/16 "2021-03-04T17:00:47Z")

</div>

> [@Colin](#):
>
> bash -c "DISPLAY=:0 chromium-browser --noerrdialogs --disable-infobars --kiosk [http://localhost:1880/ui](http://localhost:1880/ui) -start-fullscreen enable-logging --v=1"

Hi @Colin,  
Using that in spawn mode seems to work  
getting this repeatedly out of stderr. Is it actually an error?  
it may be this message which is filling the buffer.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f03d8f114ea3e7ac87d313d383c4798fef2f333.png)

I'll reboot everything and let it run.

Thanks for your help.  
Cheers.  
Paul.

---

<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: [4 March 2021 17:17 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/17 "2021-03-04T17:17:23Z")

</div>

I think it should be `-enable-logging` if you need that option at all.  
I can't test it on a pi as I haven't got one with a desktop version of rasbian, all mine are headless servers.

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 17:22 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/18 "2021-03-04T17:22:06Z")

</div>

@Colin

I have removed that option.  
Two of these msg's but the main bulk have stopped. There were many per second.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9f1832bb83a180a7f3d82f9ada9016b2c1ddae3f.png)

I've done some googling and the error is coming from chromium.

Thanks for your help.  
I think we may be there.

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [4 March 2021 19:25 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/19 "2021-03-04T19:25:38Z")

</div>

Good progress you did with @Colin.

I checked the config in my environment and it looks like below. This script is executed when the desktop environment is started. The 5 seconds delay is to allow Node-RED to load the flows and have the dashboard ready.

```auto
#!/bin/bash
echo "Starting chromium in 5 seconds..."
sleep 5
chromium-browser --noerrdialogs --disable-translate --disable-session-crashed-bubble --start-fullscreen http://127.0.0.1:1880/ui &

```

---

<div class="post-metadata">

### Author: ![FatPilot](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatpilot/32/38329_2.png) [@FatPilot](https://discourse.nodered.org/u/FatPilot)
#### Post date: [4 March 2021 19:28 UTC](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002/20 "2021-03-04T19:28:28Z")

</div>

Hi @Andrei,

Is there something after the '&' in your codeline.

Cheers  
Paul.

[Next page](https://discourse.nodered.org/t/help-with-error-please-exec-node-chromium-kiosk/42002.md?page=2)
