-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New version not working #355
Comments
Hi @Bluscream, have you been on a normal PC in the while? :-D Can you provide more information, please? Thanks |
original docker-compose with setcap: version: '3'
services:
mqtt-io:
privileged: true
user: root
image: flyte/mqtt-io
ports:
- "443:443"
- "1883:1883"
- "8883:8883"
- "14567:14567"
volumes:
- type: bind
source: /portainer/Files/AppData/Config/mqtt-io/config.yml
target: /config.yml
read_only: true
- /dev/i2c-0:/dev/i2c-0
- /dev/mem:/dev/mem
- /dev/gpiomem:/dev/gpiomem
devices:
- /dev/i2c-0
- /dev/mem
- /dev/gpiomem
command: >
bash -c "setcap 'cap_sys_rawio+eip' $(readlink -f venv/bin/python) && venv/bin/python -m mqtt_io /config.yml"
network_mode: host |
New command in docker-compose without setcap: Log without setcap:
|
Same error here |
Hello, The same problem is on the Homeassistant Plugin which belongs to this project. |
same problem, no luck getting this to work. Please fix |
Hey guys, I installed gcc in the slim docker in PR #368 When I try it with compose file from @Bluscream, it builds rpi.gpio and runs mqtt_io with it on my raspberry:
Please test it, so i can merge and release it! @Bluscream stripped compose.yaml:
I ran it with: |
hello, same probleme :'( docker run -ti --rm -v /home/pi/Docker_Container_data/mqtt-io/config.yml:/config.yml flyte/mqtt-gpio:test your image is not found |
Hi @moebius911, you have to build it locally first, the mqtt-gpio:test is NOT pushed somewhere. |
I get RuntimeError: No access to /dev/mem. Try running as root! With my current working mqttio version I don't have to specify any volumes or devices and the container has access to /dem/mem. ok got it working. Had to add the user: root to my compose file.
|
I'm working on the release ;-) |
raspi docker a64 user here. im on mobile so excuse the less details here.
the new update seems to have broken the docker container. earlier today i noticed my mqtt-io container wasnt running anymore and when i checked the logs it said that setcap wasnt found a lot. When i manually removed the setcap from that start cmd it said that gcc failed when installing rpi.gpio
Maybe related to openhab/openhab-docker#252 (comment)
The text was updated successfully, but these errors were encountered: