Node-red/Raspberry pi zero crashes #44
Comments
Thanks for reporting. Can you post the full stack trace? |
please guide how can i do that? |
Can you copy paste what Node-RED outputs on start? |
`pi@zeropi:~ $ node-red Welcome to Node-RED13 Apr 15:21:17 - [info] Node-RED version: v0.18.4
`13 Apr 15:27:52 - [info] Welcome to Node-RED13 Apr 15:27:52 - [info] Node-RED version: v0.18.4 ` |
That's weird. How did you install Node.js? Can you try upgrading Node.js? Also, can you check if the examples in https://github.com/thethingsnetwork/node-app-sdk do work? Let's see if we can isolate this issue from Node-RED, which is harder to debug. |
$sudo apt-get install nodejs Following the instructions here: https://www.thethingsnetwork.org/docs/applications/nodejs/quick-start.html i get: |
based on suggestions, i installed from https://nodejs.org/dist/v9.11.1/node-v9.11.1-linux-armv6l.tar.xz installed to /opt and changed the symlink form /usr/bin to v9.11 and ttn seems to work without any problem!! |
That is weird indeed. Can you confirm that the Node version that Node-RED reports is now v9.11.1? |
I deleted :
|
After a little more effort, there is some problem with ttn-app. See the following:
But if i run node with other nodes, no such error message..
|
If i delete ttn-app.js, node-red works without any trouble. Not sure what could be the reason:
|
It seems that the node in The error Can you try with the |
these seem to work ok, without causing illegal instruction. Meanwhile, if i go to the dist folder,
if you want me to check any specific node, please indicate because i don't have enough knowledge to mess around! |
Thanks. Can you Specifically the sections Test, Quality, Build and Example. It might be that the Build step produces different output for your processor architecture, so building it on your Pi Zero may make it work in the Example. |
I am new to this nodejs environment and toolchain. so i might have missed some step. anyhow make test gives the following illegal instruction
make typecheck says platform not supported for flow-bin/cli.js
make quality doesn't proceed because make typecheck fails:
On the contrary make build proceeds without any errors:
but little success if i go to the dist folder:
So looks like i'm stuck. In addition to this, i've unrelated problem in TTN http integration, i've forwrded all the payload to google firebase via its REST API (starting from here: https://firebase.google.com/docs/reference/rest/database/ enabling anonymous access using POST method. i've tried both https as well as http). requests are delayed by upto 4-5 hours! i raised a question on ttn forums but there was no response...not sure what is the right place to go.. |
Thanks. It may be a platform issue indeed with one of the dependencies, making the Pi Zero an unsupported platform for this library. Can you verify and run the examples (so not dist)? See https://github.com/TheThingsNetwork/node-app-sdk/tree/master/examples |
here is what ../src looks like:
From the es5 directory:
Testing more from examples:
Not sure why is there an error for import |
It seems some dependencies were outdated. I upgraded them, see the Can you check again? Best is to remove the Finally, please let me know your |
Its compiling. looks like it will take a few more days...
|
Inspite of trying several times, it gives me out of memory error. |
OK. I'm afraid we have to keep this one open. |
i will try again after a month or so. i'm a bit busy with my "real life" maybe i will try with some swap memory on the pi zero which only has like 512mb ram. to save sdcard corruption i turned off swap. if i use node directly with any of the .js it gives me some import error |
@johanstokking : Did you ever reach a conclusion with this issue? Unsupported platform armV6l? I have put mosquitto and Node-Red on a Pi Zero W which already runs a TTN packet forwarder (Rak radio) for a student needs to do some LoRaWAN project work. Everything is stable until I use the palette manager to install this node. Node-red crashes and node hogs almost all cpu and memory. Has this been a recurring issue? Will this ever work on Pi Zero W? Thanks GryKyo |
@GryKyo I'm quite sure the issue is related to the compilation of a gRPC dependency. Can you try running |
I thought I would share this as the exact same thing just happened with me on booth Raspberry Pi Zero W and Raspberry Pi 3 B+ |
Yes, I can also confirm this on RPi0W, RPi3B+, and RPi1B+ happing. |
I can confirm as well, as soon as I install node-red-contrib-ttn on the raspberry pi zero w either from the palette manager or via npm i from the console, node-red just doesn't want to start. I have to remove it with
|
I managed to knock out Node-Red on a PiZero based TTN gateway once again by installing this, so yes I can confirm that this is still an issue. G |
Please provide context; Node version, Node-RED version, error messages, output from installation, etc. |
Device: Raspberry Pi Zero W Official Install with
output from journalctl -u nodered.service --since today -f `May 31 22:18:25 raspberrypi systemd[1]: Started Node-RED graphical event wiring tool. May 31 22:18:35 raspberrypi Node-RED[13356]: 31 May 22:18:35 - [info] May 31 22:18:35 raspberrypi Node-RED[13356]: Welcome to Node-RED May 31 22:18:35 raspberrypi Node-RED[13356]: =================== May 31 22:18:35 raspberrypi Node-RED[13356]: 31 May 22:18:35 - [info] Node-RED version: v0.20.3 May 31 22:18:35 raspberrypi Node-RED[13356]: 31 May 22:18:35 - [info] Node.js version: v10.15.3 May 31 22:18:35 raspberrypi Node-RED[13356]: 31 May 22:18:35 - [info] Linux 4.14.98+ arm LE May 31 22:18:40 raspberrypi Node-RED[13356]: 31 May 22:18:40 - [info] Loading palette nodes May 31 22:19:06 raspberrypi systemd[1]: nodered.service: Main process exited, code=killed, status=4/ILL May 31 22:19:07 raspberrypi systemd[1]: nodered.service: Unit entered failed state. May 31 22:19:07 raspberrypi systemd[1]: nodered.service: Failed with result 'signal'. May 31 22:19:07 raspberrypi systemd[1]: nodered.service: Service hold-off time over, scheduling restart. May 31 22:19:07 raspberrypi systemd[1]: Stopped Node-RED graphical event wiring tool. |
@johanstokking Did you get a chance to check out this bug? I would really like to have ttn working on my node red on the raspberry pi zero W. If you need any help from me let me know what I can do, test or fix. Cheers |
I think I have found the culprit... https://github.com/grpc/grpc |
I found a workaround, And you should be all set to go. |
Great, thanks so much @dusnoki Should we update the README? |
RPi support is now deprecated. We'll add guides for V3 to work with builtin Node-RED nodes (i.e. the MQTT input and output nodes) |
On installing this node, node-red just crashes on startup with the message Illegal Instruction.
if i delete this node node-red starts as normal. i think zero is arm6. Is this node for armv7?
I've installed from pallette manager as well as from command line in ~/.node-red$ npm install node-red-node-xyz and the same problem
The text was updated successfully, but these errors were encountered: