tprelog / iocage-node-red Goto Github PK
View Code? Open in Web Editor NEWNode-RED - TrueNAS CORE Community Plugin
Node-RED - TrueNAS CORE Community Plugin
Hello,
Would it be possible to have the plugin version number displayed in FreeNAS ?
This could be a big plus to check for updates.
Thanks.
I used openssl to create a self signed cert on the jail.
I edited the settings.js file at /usr/local/lib/node_modules/node-red .
per the instructions here: http://www.steves-internet-guide.com/securing-node-red-ssl/
I restarted the jail but it's still only listening on http.
I think this plugin is in serious need of an update.
The thing is, I don't actually Node-RED, so I can't say what effect this would have when running the plugin update from TrueNAS.
Does anyone have an option on this... should I just leave it alone to avoid possible breaking changes?
Would you be OK having to reinstall this plugin, if that's what it takes to update?
If I introduce a breaking change, is there anything we should change? For example, should the configuration be moved to /home/node-red
Comments, suggestions and/or concerns are welcome
Hello, is it possible to modify the service call to allays call with --max-old-space-size=16000? My flows are very complex and I need this instruction to them start nodered (https://nodered.org/docs/getting-started/raspberrypi), normaly its used in the raspPi, but I need it in my flows to avoid crashes. This problem is reported in te nodered github and being analysed at the moment by the devs.
Thank you
I see that now you use
usr_home=/var/db/nodered
still, motd says
Plugin directory for Node-RED
/usr/home/nodered
Plugin default Node-RED settings
/usr/home/nodered/settings.js
Hello, I tried this script, but I get this error when I try to install some packages:
-----------------------------------------------------------
2019-03-14T17:30:40.221Z Install : node-red-contrib-mysensors 3.2.0
2019-03-14T17:30:40.229Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2019-03-14T17:30:44.593Z [out]
2019-03-14T17:30:44.593Z [out] > [email protected] install /usr/home/nodered/node_modules/sqlite3
2019-03-14T17:30:44.593Z [out] > node-pre-gyp install --fallback-to-build
2019-03-14T17:30:44.593Z [out]
2019-03-14T17:30:44.796Z [err] node-pre-gyp
2019-03-14T17:30:44.797Z [err]
2019-03-14T17:30:44.797Z [err] WARN
2019-03-14T17:30:44.797Z [err] Using request for node-pre-gyp https download
2019-03-14T17:30:45.345Z [err] node-pre-gyp
2019-03-14T17:30:45.345Z [err] WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v57-freebsd-x64.tar.gz
2019-03-14T17:30:45.345Z [err] node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, unknown) (falling back to source compile with node-gyp)
2019-03-14T17:30:47.435Z [out] gmake: Entering directory '/usr/home/nodered/node_modules/sqlite3/build'
2019-03-14T17:30:47.435Z [out] ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3260000/sqlite3.c
2019-03-14T17:30:47.438Z [err] /bin/sh: python: not found
2019-03-14T17:30:47.438Z [err] gmake: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3260000/sqlite3.c] Error 127
2019-03-14T17:30:47.438Z [out] gmake: Leaving directory '/usr/home/nodered/node_modules/sqlite3/build'
2019-03-14T17:30:47.440Z [err] gyp
2019-03-14T17:30:47.440Z [err]
2019-03-14T17:30:47.440Z [err] ERR!
2019-03-14T17:30:47.440Z [err]
2019-03-14T17:30:47.440Z [err] build error
2019-03-14T17:30:47.440Z [err] gyp
2019-03-14T17:30:47.440Z [err] ERR! stack
2019-03-14T17:30:47.440Z [err] Error: `gmake` failed with exit code: 2
2019-03-14T17:30:47.440Z [err] gyp
2019-03-14T17:30:47.440Z [err] ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
2019-03-14T17:30:47.441Z [err] gyp ERR! stack
2019-03-14T17:30:47.441Z [err] at emitTwo (events.js:126:13)
2019-03-14T17:30:47.441Z [err] gyp ERR!
2019-03-14T17:30:47.441Z [err] stack at ChildProcess.emit (events.js:214:7)
2019-03-14T17:30:47.441Z [err] gyp
2019-03-14T17:30:47.441Z [err] ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
2019-03-14T17:30:47.441Z [err] gyp
2019-03-14T17:30:47.441Z [err] ERR! System
2019-03-14T17:30:47.441Z [err] FreeBSD 11.2-STABLE
2019-03-14T17:30:47.441Z [err] gyp
2019-03-14T17:30:47.441Z [err] ERR! command
2019-03-14T17:30:47.441Z [err] "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/home/nodered/node_modules/sqlite3/lib/binding/node-v57-freebsd-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/usr/home/nodered/node_modules/sqlite3/lib/binding/node-v57-freebsd-x64" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
2019-03-14T17:30:47.441Z [err] gyp
2019-03-14T17:30:47.441Z [err] ERR! cwd
2019-03-14T17:30:47.441Z [err] /usr/home/nodered/node_modules/sqlite3
2019-03-14T17:30:47.441Z [err] gyp
2019-03-14T17:30:47.441Z [err] ERR! node -v v8.15.1
2019-03-14T17:30:47.441Z [err] gyp ERR!
2019-03-14T17:30:47.441Z [err] node-gyp -v v3.8.0
2019-03-14T17:30:47.441Z [err] gyp ERR!
2019-03-14T17:30:47.441Z [err] not ok
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! build error
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! stack
2019-03-14T17:30:47.444Z [err] Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/home/nodered/node_modules/sqlite3/lib/binding/node-v57-freebsd-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/home/nodered/node_modules/sqlite3/lib/binding/node-v57-freebsd-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! stack at ChildProcess.<anonymous> (/usr/home/nodered/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! stack at emitTwo (events.js:126:13)
2019-03-14T17:30:47.444Z [err] node-pre-gyp ERR!
2019-03-14T17:30:47.444Z [err] stack at ChildProcess.emit (events.js:214:7)
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! stack at maybeClose (internal/child_process.js:915:16)
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR!
2019-03-14T17:30:47.444Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR!
2019-03-14T17:30:47.444Z [err] System FreeBSD 11.2-STABLE
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! command
2019-03-14T17:30:47.444Z [err] "/usr/local/bin/node" "/usr/home/nodered/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
2019-03-14T17:30:47.444Z [err] node-pre-gyp ERR!
2019-03-14T17:30:47.444Z [err] cwd /usr/home/nodered/node_modules/sqlite3
2019-03-14T17:30:47.444Z [err] node-pre-gyp ERR!
2019-03-14T17:30:47.444Z [err] node -v v8.15.1
2019-03-14T17:30:47.444Z [err] node-pre-gyp
2019-03-14T17:30:47.444Z [err] ERR! node-pre-gyp -v v0.11.0
2019-03-14T17:30:47.444Z [err] node-pre-gyp ERR!
2019-03-14T17:30:47.444Z [err] not ok
2019-03-14T17:30:47.445Z [out] Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/home/nodered/node_modules/sqlite3/lib/binding/node-v57-freebsd-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/usr/home/nodered/node_modules/sqlite3/lib/binding/node-v57-freebsd-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
2019-03-14T17:30:47.590Z [err] npm
2019-03-14T17:30:47.590Z [err] ERR! code ELIFECYCLE
2019-03-14T17:30:47.590Z [err] npm ERR! errno 1
2019-03-14T17:30:47.591Z [err] npm
2019-03-14T17:30:47.591Z [err] ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
2019-03-14T17:30:47.591Z [err] npm ERR! Exit status 1
2019-03-14T17:30:47.591Z [err] npm ERR!
2019-03-14T17:30:47.591Z [err] npm
2019-03-14T17:30:47.591Z [err] ERR! Failed at the [email protected] install script.
2019-03-14T17:30:47.591Z [err] npm ERR!
2019-03-14T17:30:47.591Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2019-03-14T17:30:47.911Z [err]
2019-03-14T17:30:47.911Z [err] npm ERR! A complete log of this run can be found in:
2019-03-14T17:30:47.911Z [err] npm ERR! /usr/home/nodered/.npm/_logs/2019-03-14T17_30_47_596Z-debug.log
2019-03-14T17:30:47.924Z rc=1
Somting about sqlite3
how do I upgrade the node red version in this plugin?
similar plugins (home assistant, esphome) have a console menu for upgrading. what's the procedure in this plugin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.