question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serial port crash on startup with 11.0.4 on ARM

See original GitHub issue

Problem/Motivation

In 11.0.4 on ARM devices, serial port nodes crash Node-RED. Root cause is https://github.com/serialport/node-serialport/issues/2438

Expected behavior

Node-RED starts up and works

Actual behavior

[16:07:23] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
28 Feb 16:07:26 - [info] 
Welcome to Node-RED
===================
28 Feb 16:07:26 - [info] Node-RED version: v2.2.2
28 Feb 16:07:26 - [info] Node.js  version: v16.14.0
28 Feb 16:07:26 - [info] Linux 5.10.92-v8 arm64 LE
28 Feb 16:07:28 - [info] Loading palette nodes
28 Feb 16:07:32 - [info] Dashboard version 3.1.6 started at /endpoint/ui
28 Feb 16:07:34 - [info] Settings file  : /etc/node-red/config.js
28 Feb 16:07:34 - [info] Context store  : 'default' [module=memory]
28 Feb 16:07:34 - [info] User directory : /config/node-red/
28 Feb 16:07:34 - [info] Projects directory: /config/node-red/projects
28 Feb 16:07:34 - [info] Server now running at http://127.0.0.1:46836/
28 Feb 16:07:34 - [info] Active project : foxden-home
28 Feb 16:07:34 - [info] Flows file     : /config/node-red/projects/foxden-home/flows.json
28 Feb 16:07:34 - [info] Starting flows
[16:07:37] INFO: Starting Node-RED...

And this repeats over and over, no error messages I can find.

Full log: log.txt

Steps to reproduce

Just on startup, every time. In case it is related to my config. All my config is in a git project that can be found here: https://github.com/FoxDenHome/nodered

Proposed changes

If this is widespread, unpublish the update or hotfix

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:50 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
juanhaywoodcommented, Mar 12, 2022

Finally figured out how to roll back. You only need to roll back node-red-node-serialport.

In Home Assistant, go to the NodeRed add-on. Then go to the configuration for the add-on. Next to npm packages to install, put “node-red-node-serialport@0.15.0”.

Then save and restart the NR add-on. This will revert node-red-node-serialport to the previous version that was working.

4reactions
Doridiancommented, Mar 1, 2022

Agreed. But for sure keep this open so people who find their 11.0.4 crashing. From this it seems like everyone who uses a serial port and is using an ARM-based device will be affected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

serialport@10.3.0 fails in docker container on rpi #2438 - GitHub
I discovered this problem on a raspberry pi 4 with node-red and node-red-node-serialport. This problem cost me a lot of time as node-red...
Read more >
Node-red restarting and no error in the logs
Hi all, node-red is on a strange restart loop - must have started after some auto-update, it was working fine a few days...
Read more >
Serial library (NRJavaSerial) causes JVM to crash on ARM ...
This is an ARMv5 device with Debian installed (32 bits). No problems with the serial port. But version 1.2 with the NRJavaSerial library...
Read more >
android app crashes at start up in 2019.3 ad 2020 - Unity Forum
everything was working fine with my app until i updated unity from 2019.2 to 2019.3b, (also tried 2020) which i need to do...
Read more >
Serial communication crash - c++ - Stack Overflow
I use a FTDI serial to USB converter so the module appear under /dev/ttyUSB0 . I've written this code : void TsToCoord::serialConfig() {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found