tprelog / iocage-zwavejs2mqtt Goto Github PK
View Code? Open in Web Editor NEWZ-Wave JS to MQTT - TrueNAS CORE Community Plugin
License: MIT License
Z-Wave JS to MQTT - TrueNAS CORE Community Plugin
License: MIT License
After upgrading homeassistant to 2021.10.0; z-wave integration complained it needed higher version so I tried to update the plugin. after attempting an upgrade, the zw service would no longer start.
Being rather naïve in what I was doing; I found removing the options that presented error allowed the update to complete with warnings. In "iocage-zwavejs2mqtt/overlay/root/bin/install_zj2m" line 28 and 29 unsafe-perm and --ignore-optional.
Service fails to install using node 17
Fetch step
➤ YN0001: │ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:371:5)
at PassThrough.onclose (node:internal/streams/end-of-stream:122:30)
at PassThrough.emit (node:events:390:28)
at emitCloseNT (node:internal/streams/destroy:145:10)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
For now, we need to revert back to node 14
iocage console $JAIL_NAME
# Press 1 to exit menu
pkg install -y node14 npm-node14 yarn-node14
menu
4
to run an upgrade5
to start the serviceHi,
After running the installer for this iocage package, the jail is succesfully started and the settings menu is visible, but zwavejs2mqtt fails to start or become available for the webapplication.
Select: 5 Starting zwavejs2mqtt. zwavejs2mqtt is not running.
The problems occured after updating. It persisted after deleting the plugin completly and reinstalling it.
I've attachted the install notes below! Unfortunatly, the reffered logs files are not more specific on this. Hope this can still be usefull for you!
I am using 12.2-RELEASE-p8.
_Install Notes:
plugin_initialized: -> 2.20210320
plugin_version: -> 2.20210320
zwavejs2mqtt_app_dir: -> /usr/local/share/zwavejs2mqtt
zwavejs2mqtt_store_dir: -> /usr/local/etc/zwavejs2mqtt
Downloading latest release... OK
OK
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
OK
npm WARN deprecated @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
OK
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
OK
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
OK
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
OK
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
OK
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
OK
npm WARN deprecated [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
OK
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
OK
npm WARN deprecated [email protected]: this library is no longer supported
OK
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
@serialport/[email protected] install /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/@serialport/bindings
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
@serialport/[email protected] install /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/@serialport/bindings
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
gmake: Entering directory '/tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/@serialport/bindings/build'
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
CXX(target) Release/obj.target/bindings/src/serialport.o
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
CXX(target) Release/obj.target/bindings/src/serialport_unix.o
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
CXX(target) Release/obj.target/bindings/src/poller.o
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
SOLINK_MODULE(target) Release/obj.target/bindings.node
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
COPY Release/bindings.node
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
gmake: Leaving directory '/tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/@serialport/bindings/build'
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/@babel/node/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
�[96mThank you for using core-js (�[94m https://github.com/zloirock/core-js �[96m) for polyfilling JavaScript standard library!�[0m
�[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: �[0m
�[96m>�[94m https://opencollective.com/core-js �[0m
�[96m>�[94m https://www.patreon.com/zloirock �[0m
�[96mAlso, the author of core-js (�[94m https://github.com/zloirock �[96m) is looking for a good job -)�[0m
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
prebuild-install WARN install No prebuilt binaries found (target=14.17.0 runtime=node arch=x64 libc= platform=freebsd)
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
npm notice created a lockfile as package-lock.json. You should commit this file.
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"freebsd","arch":"x64"})
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"freebsd","arch":"x64"})
[email protected] postinstall /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
added 1407 packages from 741 contributors and audited 1956 packages in 45.985s
120 packages are looking for funding
run npm fund
for details
found 9 vulnerabilities (2 moderate, 7 high)
run npm audit fix
to fix them, or npm audit
for details
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
sh: npm-run-all: not found
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
npm ERR! code ELIFECYCLE
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
npm ERR! [email protected] build: npm-run-all build:*
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
[email protected] build /tmp/build_src.ccb8IJ2K/zwave-js-zwavejs2mqtt-51fa01d
npm-run-all build:*
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-20T20_39_42_738Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-20T20_39_42_738Z-debug.log
zwavejs2mqtt_enable: -> YES
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-20T20_39_42_738Z-debug.log
Starting zwavejs2mqtt.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-20T20_39_42_738Z-debug.log
zwavejs2mqtt is not running.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-20T20_39_42_738Z-debug.log
Admin Portal:
Doc URL:
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.