Comments (12)
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.
This is indeed now written up in the README > Docker section: https://github.com/abandonware/noble/#docker
Thanks to @atrovato ❤️
from noble.
I suspect problem in docker run params ?
Maybe we can add a docker-compose file
from noble.
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.
feel free to add a chapter in readme file about using with docker
from noble.
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.
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.
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.
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.
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.
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.
Я разработал свой собственный пакет 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)
- v1.9.2-19 not discovering all peripherals HOT 9
- support bluetooth 5
- @abandonware/noble does not discover any devices HOT 2
- TypeError: Cannot read properties of undefined (reading 'exchangeMtu') HOT 1
- Gets stuck in the function discoverSomeServicesAndCharacteristicsAsync without any errors HOT 1
- Uncaught SyntaxError
- Ubuntu 22.04 Behavior HOT 3
- Installation failing on Windows 11 Pro (error C2039 in winrt) HOT 2
- An error occurred in ubunto
- "No native build was found" for M2 running OSX? HOT 1
- New maintainer in town (bluetooth-hci-socket, noble, bleno) - new features HOT 10
- Link Node JS and Node "File exists" HOT 5
- not support build base python^3.12
- Wrong node-bluetooth-hci-socket version HOT 3
- noble not returning correct data HOT 6
- Can't subscribe more than 1 characteristic at time
- PS5 wireless controller not listed HOT 1
- Unhandled Promise rejection: No Services matching UUID 0000ffe0-0000-1000-8000-00805f9b34fb found in Device.
- Cannot install any version later than 1.9.2-23 on Windows 11 23H2 HOT 2
- Not compatible with Window11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noble.