Skip to content

Node-Red service fails to start with 5.0.5 #5919

Closed

Description

@friebi

Current Behavior

Node-Red process does not start. In the logs I see

Started nodered.service - Node-RED graphical event wiring tool.
nodered.service: Main process exited, code=killed, status=4/ILL
nodered.service: Failed with result 'signal'.
nodered.service: Scheduled restart job, restart counter is at 1.
Started nodered.service - Node-RED graphical event wiring tool.
nodered.service: Main process exited, code=killed, status=4/ILL
nodered.service: Failed with result 'signal'.
nodered.service: Scheduled restart job, restart counter is at 2.

And so on...

Expected Behavior

Node-Red starts without error. Rolling back to 5.0.4 fixes the issue.

Steps To Reproduce

Update to 5.0.5 using the update script.

Example flow

No response

Environment

  • Node-RED version: 5.0.5
  • Node.js version: 24.20.0
  • npm version: 11.19.0
  • Platform/OS: Raspberry Pi 4 running DietPi 10.6.2
  • Browser: Firefox 154.0.1

Activity

  1. knolleary commented on Sep 1, 2026

    @knolleary
    Member

    Can you try running Node-RED manually to see what error is causing to not start?

  2. friebi commented on Sep 1, 2026

    @friebi
    Author
    node-red
    Ungültiger Maschinenbefehl
    

    Seems like a binary for another platform or compiled with incompatible compile options? 🤷‍♂️
    If it helps:

    uname -srvmo
    Linux 6.18.39+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.18.39-1+rpt1 (2026-07-29) aarch64 GNU/Linux
    
  3. knolleary commented on Sep 1, 2026

    @knolleary
    Member

    Can you trying running just node -v to check if its that causing the issue?

  4. friebi commented on Sep 1, 2026

    @friebi
    Author

    That returns the version 24.20.0.
    And Node is not touched by the update script plus I have one other service running with node without issue.

  5. colinl commented on Sep 1, 2026

    @colinl
    Contributor

    I am seeing the same problem on a Pi 4 running pi os.

  6. colinl commented on Sep 1, 2026

    @colinl
    Contributor

    Works fine on a PC running Ubuntu.

  7. knolleary commented on Sep 1, 2026

    @knolleary
    Member

    There weren't very many dependency updates in 5.0.5 - need to narrow down which has introduced this.

  8. colinl commented on Sep 1, 2026

    @colinl
    Contributor

    Do you want me to try anything?
    I went into /usr/lib/node_modules/node-red (is that the right place) and ran sudo npm rebuild but it didn't help.

  9. hardillb commented on Sep 1, 2026

    @hardillb
    Member

    It's failing in the bcrypt library

    gdb ./node-v24.20.0-linux-arm64/bin/node
    GNU gdb (Debian 13.1-3) 13.1
    Copyright (C) 2023 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "aarch64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
        <http://www.gnu.org/software/gdb/documentation/>.
    
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from ./node-v24.20.0-linux-arm64/bin/node...
    (gdb) help
    List of classes of commands:
    
    aliases -- User-defined aliases of other commands.
    breakpoints -- Making program stop at certain points.
    data -- Examining data.
    files -- Specifying and examining files.
    internals -- Maintenance commands.
    obscure -- Obscure features.
    running -- Running the program.
    stack -- Examining the stack.
    status -- Status inquiries.
    support -- Support facilities.
    text-user-interface -- TUI is the GDB text based interface.
    tracepoints -- Tracing of program execution without stopping the program.
    user-defined -- User-defined commands.
    
    Type "help" followed by a class name for a list of commands in that class.
    Type "help all" for the list of all commands.
    Type "help" followed by command name for full documentation.
    Type "apropos word" to search for commands related to "word".
    Type "apropos -v word" for full documentation of commands related to "word".
    Command name abbreviations are allowed if unambiguous.
    (gdb) start /home/pi/node-test/node_modules/node-red
    node-red/       node-red-admin/ 
    (gdb) start /home/pi/node-test/node_modules/node-red/
    CHANGELOG.md  LICENSE       README.md     bin/          lib/          package.json  red.js        settings.js   
    (gdb) start /home/pi/node-test/node_modules/node-red/red.js
    Temporary breakpoint 1 at 0x7cef54
    Starting program: /home/pi/node-test/node-v24.20.0-linux-arm64/bin/node /home/pi/node-test/node_modules/node-red/red.js
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
    
    Temporary breakpoint 1, 0x00000000007cef54 in main ()
    (gdb) continue
    Continuing.
    [New Thread 0x7ff796efc0 (LWP 266961)]
    [New Thread 0x7ff715efc0 (LWP 266962)]
    [New Thread 0x7ff694efc0 (LWP 266963)]
    [New Thread 0x7ff613efc0 (LWP 266964)]
    [New Thread 0x7ff592efc0 (LWP 266965)]
    [New Thread 0x7ff505bfc0 (LWP 266966)]
    [New Thread 0x7ff502bfc0 (LWP 266967)]
    [Thread 0x7ff502bfc0 (LWP 266967) exited]
    
    Thread 1 "MainThread" received signal SIGILL, Illegal instruction.
    0x0000007ff47d20f8 in ?? () from /home/pi/node-test/node_modules/@node-rs/bcrypt-linux-arm64-gnu/bcrypt.linux-arm64-gnu.node
    
    
  10. knolleary commented on Sep 1, 2026

    @knolleary
    Member

    I'll revert the bcrypt update (it wasn't security related) and spin 5.0.6

  11. hardillb commented on Sep 1, 2026

    @hardillb
    Member

    Works fine on a Pi5 so this very much feels like their Rust build env is creating binaries targeting ARMv8 only

  12. knolleary commented on Sep 1, 2026

    @knolleary
    Member

    5.0.6 has been published which reverts the bcrypt module update.

  13. friebi commented on Sep 2, 2026

    @friebi
    Author

    Thanks! Works fine now 😄

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions