pi-suite icon indicating copy to clipboard operation
pi-suite copied to clipboard

Got this after installation / at start pi-suite

Open schwabochino opened this issue 6 years ago • 9 comments

Hi,

got this error after start pi suite. What am i doing wrong?

pi@schwabopi:~/reelyActive/pi-suite $ sudo node pi-suite reelyActive BarnOwl instance is listening for an open IoT reelyActive Barnacles instance is notifying an open IoT reelyActive Barterer instance is exchanging data in an open IoT reelyActive Chickadee instance is curious to associate metadata in an open IoT events.js:183 throw er; // Unhandled 'error' event ^

Error: File descriptor in bad state at setScanEnable (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/hcilistener.js:215: 10) at openHciSocket (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/hcilistener.js:87:3 ) at new HCIListener (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/hcilistener.js:53 :3) at createListener (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/decodemanager.js:1 16:14) at new DecodeManager (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/decodemanager.j s:38:19) at ListenerService.bind (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/core/listenerservice/listenerserv ice.js:36:21) at HardwareInterface.bind (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/hardwareinterface.js:41:32) at BarnOwl.bind (/home/pi/reelyActive/pi-suite/node_modules/barnowl/lib/barnowl.js:46:34) at HLCServer.bind (/home/pi/reelyActive/pi-suite/node_modules/hlc-server/lib/server.js:205:21) at Object. (/home/pi/reelyActive/pi-suite/pi-suite.js:17:5)

schwabochino avatar Aug 27 '18 23:08 schwabochino

Can you specify on which Pi you are running? The onboard BLE (using HCI) has been confirmed to work on the Pi 3B and 3B+.

jeffyactive avatar Aug 28 '18 00:08 jeffyactive

Raspberry Pi 3 Model B Plus Rev 1.

schwabochino avatar Aug 28 '18 05:08 schwabochino

Thanks for the detail @schwabochino. From the error message, it could be that the BLE hardware is in use and therefore not allowing the bluetooth-hci-socket to start the scan. You can try installing libudev-dev as the package suggests, but I doubt this will have an impact.

All our testing has been headless with no other software using the BLE hardware. If you continue to have difficulties, can you can see if it works from our latest disk image?

Kindly update if you find a solution so we can add to the documentation, thanks!

jeffyactive avatar Aug 29 '18 13:08 jeffyactive

Hi thank you for your Help!

I have reinstall the pi with raspbian (NOOB) and try it with this tiny virgin again. But it's the same Error again. HLC seems not starting.

So I have download an prepare a SD with the image. Sorry, but what's the login - pi:raspberry - didn't work also root:toor ¯_(ツ)_/¯ ? Have I missed something? I am too stupid for this or I have two left hands ;)!

schwabochino avatar Aug 29 '18 18:08 schwabochino

Change it in the cmdline.txt with init=/bin/sh

schwabochino avatar Aug 29 '18 18:08 schwabochino

All the details about the SD card can be found on our Make a Pi Hub tutorial.

The default login on the card is pi:berryinsecure

jeffyactive avatar Aug 29 '18 18:08 jeffyactive

So it works with your image. ¯\_(ツ)_/¯

schwabochino avatar Aug 29 '18 18:08 schwabochino

Even more curious now what's different on your original setup that makes it not work...

What version of NodeJS did you have installed? node --version

The SD image uses Raspbian jesse lite. What were you running on your original setup?

jeffyactive avatar Aug 29 '18 19:08 jeffyactive

I think, the differences are that I obviously do some thing not the way i had to do?!

pi@schwabopi:~ $ node --version
v8.11.3
pi@schwabopi:~ $cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

schwabochino avatar Aug 29 '18 19:08 schwabochino