I’ve got a raspberry pi 3 B+ running resinOS powering a 5m strip of WS2812b LEDs. I’m running on resin/raspberry-pi-node:8 with a nodejs express server and using rpi-ws281x-native to control the lights themselves.
I had everything working for a few days, controlling the lights via a web browser after attaching the server to port 80 and enabling the public device URL. Suddenly today everything stops working - when the device boots it will show itself online, but attempting to connect to the public URL returns a
socket hang up error. The dashboard continues to show online, but nothing is responsive - cannot ssh, and requesting any actions of the device such as reboot or restart return a socket hang up error as well.
Reflashing the SD card with resinOS and updating the image to not run the server immediately made the dashboard work again. However, whenever I would manually initiate the server with a
node command, it would execute for a few seconds and then return with a
Bus error. After executing once, the dashboard would again enter the zombie like state. Sometimes I would remain connected to the container terminal, but all commands would fail, even ls giving me
ls: reading directory .: Input/output error.
The nodejs application runs perfectly on my laptop when attached to port 3000. I also tried running a test LED controller file with no server and that worked as well, eliminating the possibility that it was an issue with the rp-ws281x-native library.
I really have no idea what is causing this - the SD card is brand new for this project, and I’ve reflashed it with Etcher probably 5 times now. Any help is greatly appreciated!