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 crashes with signal SIGSEGV #8

Open
janvda opened this issue Nov 21, 2022 · 3 comments
Open

node-red crashes with signal SIGSEGV #8

janvda opened this issue Nov 21, 2022 · 3 comments

Comments

@janvda
Copy link

janvda commented Nov 21, 2022

I have just created a simple flow

image

and node-red crashes when I deploy that flow with following in the log file:

Welcome to Node-RED
===================

21 Nov 19:27:28 - [info] Node-RED version: v2.2.3
21 Nov 19:27:28 - [info] Node.js  version: v16.13.1
21 Nov 19:27:28 - [info] Linux 5.10.93-0-virt x64 LE
21 Nov 19:27:29 - [info] Loading palette nodes
21 Nov 19:27:29 - [info] Settings file  : /data/settings.js
21 Nov 19:27:29 - [info] Context store  : 'default' [module=memory]
21 Nov 19:27:29 - [info] User directory : /data
21 Nov 19:27:29 - [info] Projects directory: /data/projects
21 Nov 19:27:29 - [warn] No active project : using default flows file
21 Nov 19:27:29 - [info] Flows file     : /data/flows.json
21 Nov 19:27:29 - [info] Server now running at http://127.0.0.1:1880/
21 Nov 19:27:29 - [warn] Using unencrypted credentials
21 Nov 19:27:29 - [info] Starting flows
npm ERR! path /usr/src/node-red
npm ERR! command failed
npm ERR! signal SIGSEGV
npm ERR! command sh -c node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"

npm ERR! A complete log of this run can be found in:
npm ERR!     /data/.npm/_logs/2022-11-21T18_27_30_479Z-debug.log
@janvda
Copy link
Author

janvda commented Nov 22, 2022

maybe the problem is not with this repository but with the dependent module :

@janvda
Copy link
Author

janvda commented Nov 23, 2022

The problem is indeed with the dependent module

I couldn't get it working on alpine based docker images.
It seems to work when using a debian based docker image (e.g. node:16-buster-slim)

@janvda
Copy link
Author

janvda commented Nov 29, 2022

FYI I have created myself a number of node-red docker images based on debian which you can find at following location:

I am using the following base image in my docker container

  • janvda/node-red:3.0.2-19.1.0-bullseye-slim

I also had to add the following lines to my dockerfile to get it working:

# fix missing libxml2 and libc.musl-x86_64.so.1 (see https://github.com/alexander-akhmetov/python-telegram/issues/3)  and
USER root
RUN apt-get update && apt-get install -y musl-dev libxml2
RUN ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
USER node-red
# end of fix

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

No branches or pull requests

1 participant