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.

Node-red does not run

See original GitHub issue

Problem/Motivation

Node-red add-on stopping with errors

Expected behavior

Normal function

Actual behavior

Several errors during Hassio restart and when started manually

This log is produced:

[cont-init.d] 81-npm-packages.sh: executing…

serialport@6.2.2 install /opt/node_modules/modbus-serial/node_modules/serialport prebuild-install || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=8.14.0 runtime=node arch=arm platform=linux) gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Linux 4.14.98-v7 gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /opt/node_modules/modbus-serial/node_modules/serialport gyp ERR! node -v v8.14.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@6.2.2 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@6.2.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-02-26T12_00_48_198Z-debug.log FATAL: Failed installing npm package node-red-contrib-modbus [cont-init.d] 81-npm-packages.sh: exited 1. [cont-finish.d] executing container finish scripts… [cont-finish.d] 99-message.sh: executing…


            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] 99-message.sh: exited 0. [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
frenckcommented, Mar 1, 2019

@esnil The longer startup times are expected, since well, it needs to compile the code.

The main problem is with node-red-contrib-modbus, they are behind on their dependency updates.

Thanks for letting me know it worked out @esnil 👍

1reaction
frenckcommented, Feb 27, 2019

They are only used / available during the container build and removed before finishing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node-Red will not run - General
Couple of things to perhaps check. Firstly that you don't have an error in your settings.js file and secondly that you don't have...
Read more >
Node-red Error . Does not start - General
After installing new nodes node-red crashed and does not start. I´m running it on Raspberry. Please any advice to fix ?
Read more >
Running Node-RED locally
Once installed as a global module you can use the node-red command to start Node-RED in your terminal. You can use Ctrl-C or...
Read more >
Node-red won't launch - General
Your flow credentials file is encrypted using a system-generated key. If the system-generated key is lost for any reason, your credentials file will...
Read more >
Red node does not start anymore - General
0 started at /ui 23 Sep 15:16:02 - [info] Settings file : /home/pi/.node-red/settings.js 23 Sep 15:16:02 - [info] Context store : 'default' [ ......
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