Giter Club home page Giter Club logo

Comments (12)

C4mp3r-Grey avatar C4mp3r-Grey commented on June 29, 2024 4

Maybe this issue can be solved as I solved mine:

Run the container with --net host rather than shared.

Although this thread is pretty old, it may help others to find the own mistake as I did after several days? buanet/ioBroker.docker#134 (comment)

from noble.

ianchanning avatar ianchanning commented on June 29, 2024 2

This is indeed now written up in the README > Docker section: https://github.com/abandonware/noble/#docker

Thanks to @atrovato ❤️

from noble.

rzr avatar rzr commented on June 29, 2024 1

I suspect problem in docker run params ?
Maybe we can add a docker-compose file

from noble.

rzr avatar rzr commented on June 29, 2024 1

Is the problem in mqtt or noble module ?

Maybe try to play along different network mode, I used:

https://github.com/rzr/webthing-iotjs/blob/master/docker-compose.yml#L21

from noble.

rzr avatar rzr commented on June 29, 2024 1

feel free to add a chapter in readme file about using with docker

from noble.

atrovato avatar atrovato commented on June 29, 2024 1

Hi, did you run noble within a Docker container?
Can you share your Dockerfile, I'm not sure of required dependencies and commands to run.

from noble.

jackbridger avatar jackbridger commented on June 29, 2024

Thanks, these are the docker commands I'm using:

docker build -t mqtt-server .
docker run -it -p 9002:3002 -v $(pwd):/app mqtt-server /bin/bash

My Dockerfile:

`FROM node:latest

WORKDIR specifies the directory our
WORKDIR /app
RUN npm install -g nodemon
COPY package.json /app/package.json
RUN npm install && npm ls
RUN mv /app/node_modules /node_modules
COPY . /app
`
Package.json:

`
{
"name": "TIG-docker",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@abandonware/noble": "^1.9.2-5",
"mqtt": "^3.0.0"
}
}

`

from noble.

jackbridger avatar jackbridger commented on June 29, 2024

Thanks @rzr , Having done some more research, I think it's the bluetooth module in noble because I'm running docker locally on a mac but haven't found a solution so far?

https://forums.docker.com/t/cannot-access-macbook-built-in-bluetooth-in-docker-debian-container/32819 Maybe it's not to do with noble

from noble.

rzr avatar rzr commented on June 29, 2024

Sorry I am a linux user but I can give a try, may you open a PR with docker-compose file running a sample self test and I'll try it and will share you logs

from noble.

C4mp3r-Grey avatar C4mp3r-Grey commented on June 29, 2024

Hello! As AcCalzone mentioned, I am running into the same phenomenon here AlCalzone/ioBroker.ble#422 (comment)

I have closed it, as it does not seem to be an AlCalzone/BLE issue then.

Any update on this here?

from noble.

hkayann avatar hkayann commented on June 29, 2024

I have developed my own npm package that depends on @abandonware/noble

I am having a similar issue. Here is the error:

[node-red-contrib-ble-sense/protocols] Error: EAFNOSUPPORT, Address family not supported by protocol

I am running Node-RED on RPi 4 that runs DietPi.

from noble.

SSharshunov avatar SSharshunov commented on June 29, 2024

Я разработал свой собственный пакет npm, который зависит от@abandonware/noble

У меня похожая проблема. Вот ошибка:

[node-red-contrib-ble-sense/protocols] Error: EAFNOSUPPORT, Address family not supported by protocol

Я запускаю Node-RED на RPi 4, на котором работает DietPi.

Use --net=host for docker cli, to resolve this problem (EAFNOSUPPORT)

from noble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.