homebridge-foscamcamera icon indicating copy to clipboard operation
homebridge-foscamcamera copied to clipboard

Error: Error relocating

Open oynek opened this issue 7 years ago • 6 comments

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] ====================

oynek avatar Jan 30 '18 15:01 oynek

Same Problem here

th3cube avatar Feb 04 '18 16:02 th3cube

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

[email protected] [email protected] [email protected]

th3cube avatar Feb 17 '18 16:02 th3cube

@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

th3cube avatar Feb 20 '18 10:02 th3cube

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?

oynek avatar Feb 20 '18 12:02 oynek

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/

th3cube avatar Feb 20 '18 12:02 th3cube

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

CroVlado avatar Feb 28 '18 14:02 CroVlado