akx / hass-ruuvitag

Hass.io addon for Ruuvitag Weather Stations
MIT License
24 stars 7 forks source link

Cannot find module 'bluetooth-hci-socket' when starting ruuvitag #23

Open juuso123 opened 4 years ago

juuso123 commented 4 years ago

Hi, I'm Using hassio Resin OS 2.3.0+rev1, Supervisor 220 and Home-assistant 109.3. Host is a raspberry pi 3b with usb bluetooth dongle.

Is there any way to get it working? Any help would be appreciated.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. internal/modules/cjs/loader.js:796 throw err; ^ Error: Cannot find module 'bluetooth-hci-socket' Require stack:

akx commented 4 years ago

Do you have a container build log at hand?

juuso123 commented 4 years ago

Hi, this is what I got when I tried to build it manually with command:

hass-ruuvitag $ docker build --tag hass:1.0 . Sending build context to Docker daemon 833kB Step 1/17 : ARG BUILD_FROM ---> Step 2/17 : FROM $BUILD_FROM as build ---> Step 3/17 : ENV LANG C.UTF-8 ---> Using cache ---> 57f6bde8f939 Step 4/17 : RUN apk add --no-cache nodejs libusb-dev bluez-dev linux-headers eudev-dev ---> Running in 0ceb5723c23f container_linux.go:263: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory" oci runtime error: container_linux.go:263: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory"

akx commented 3 years ago

Sorry for not following up on this sooner. A manual build would be

docker build --build-arg BUILD_FROM=homeassistant/amd64-base:latest .

(i.e. you need to specify the source image)