Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Red Server process crashes intermittently with ERR_HTTP2_SESSION_ERROR #4370

Open
bwims opened this issue Sep 26, 2023 · 4 comments
Open

Comments

@bwims
Copy link

bwims commented Sep 26, 2023

Current Behavior

From time to time, my Node Red session crashes with the following:

26 Sep 16:38:46 - [red] Uncaught Exception:
26 Sep 16:38:46 - [error] Error [ERR_HTTP2_SESSION_ERROR]: Session closed with error code 6
at new NodeError (node:internal/errors:372:5)
at Http2Session.onGoawayData (node:internal/http2/core:680:21)
26 Sep 16:38:48 - [info]

Expected Behavior

Continuous running without a crash.

Steps To Reproduce

I don't know! Is there a way to get more verbose logging?

I have no idea how to debug this myself. I have looked at all the flows and nothing seems to be using HTTP at the time of crash.

Any pointers would be most appreciated!

Example flow

paste your flow here

Environment

  • Node-RED version: v3.0.2
  • Node.js version:v16.16.0
  • npm version: 8.11.0
  • Platform/OS: Linux 5.15.32-v8+ arm64 LE (Debian/Dietpi on RPI 4)
  • Browser: N/A

I am running Node Red as a Docker instance ; here is the compose file

version: '3.3'
services:
node-red:
container_name: NodeRed
environment:
- TZ=Europe/London
volumes:
- '/home/NodeRedData:/data'
- '/etc/localtime:/etc/localtime'
- '/home/Node-Red:/home/nodered'
- '/home/Node-Red/keys:/home/keys'
network_mode: host
ports:
- '1880:1880'
- '3456:3456'
restart: unless-stopped
image: 'nodered/node-red:latest'

@knolleary
Copy link
Member

Hmm, we don't support HTTP2 (see #3314) - but it isn't very obvious what combination leads to this particular crash and whether its in the core or a contrib node at fault.

What nodes have you got installed? That might give us some clue as to any that could be listening for http traffic.

@bwims
Copy link
Author

bwims commented Sep 26, 2023

Thanks for responding!

I have a number of possible culprits installed, including one that calls Alexa.

Is there a way to find out which nodes are running at the time of crash? Verbose logging perhaps? Some have updates available, so I can do that at least.

B.

@GianZambo
Copy link

GianZambo commented Oct 1, 2023

Randomly I have this error:

1 Oct 09:08:31 - [red] Uncaught Exception: 1 Oct 09:08:31 - [error] Error [ERR_HTTP2_SESSION_ERROR]: Session closed with error code 6 at new NodeError (node:internal/errors:405:5) at Http2Session.onGoawayData (node:internal/http2/core:689:21)

and node red disconnects.

I think it's about applestrudel palette but I am not sure ....

Node red 3.1.0
node.js v16.20.2

@bwims
Copy link
Author

bwims commented Oct 1, 2023

What we need is a guide to debugging for non-developers. E.g. what log files, how to pinpoint which module causes a crash etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants