luisiam / homebridge-foscamcamera

Foscam Plugin for HomeBridge (API 2.1): https://github.com/nfarina/homebridge
Apache License 2.0
42 stars 6 forks source link

Error: Error relocating #57

Open oynek opened 6 years ago

oynek commented 6 years ago

What is wrong here?

[2018-1-30 15:20:12] ==================== [2018-1-30 15:20:12] ERROR LOADING PLUGIN homebridge-foscamcamera: [2018-1-30 15:20:12] Error: Error relocating /homebridge/node_modules/foscam-binary-client/build/Release/FoscamG726.node: alaw2linear: symbol not found at Object.Module._extensions..node (module.js:672:18) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object. (/homebridge/node_modules/foscam-binary-client/lib/FoscamStreamLayer.js:5:20) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) [2018-1-30 15:20:12] ====================

th3cube commented 6 years ago

Same Problem here

th3cube commented 6 years ago

Anybody have a Solution to this Problem? The Plugin seems to be Broken. Getting an Error when loading the Plugin

bildschirmfoto 2018-02-15 um 17 09 18

Homebridge@0.4.38 npm@5.6.0 node@v8.9.4

th3cube commented 6 years ago

@oynek My problem was caused by using Alpine Linux as the base System for a Docker Image which is using musl libc what causes the compatibility issues. (Thanks to @oznu for finding the Problem).

The Solution was switching to a Debian base which is using glibc. The Developer @oznu provided a Debian version of his Docker-Homebridge Implementation which is solving all problems. So if you are using Docker for Homebridge go check his Project out, its great. https://github.com/oznu/docker-homebridge. Make sure that you Download the Debian Version

oynek commented 6 years ago

I actually use @oznu 's homebridge docker image. But I did not find an option to manually choose the type of Linux. Can you point me to the right direction?

th3cube commented 6 years ago

Sure. When you pull the Docker image make sure not to use the "latest" tag, as it will download the alpine version. Use the Debian Tag instead. If you are using a Raspberry-Pi use the "debian-raspberry-pi" Tag

https://hub.docker.com/r/oznu/homebridge/tags/

CroVlado commented 6 years ago

i get the same issues on the latest release of home assistant installed with the hass.io image