Skip to content
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

Alpine 3.13 Tag Containers Don't Start on ARMv7 #4

Closed
jvilalta opened this issue Jan 23, 2021 · 7 comments
Closed

Alpine 3.13 Tag Containers Don't Start on ARMv7 #4

jvilalta opened this issue Jan 23, 2021 · 7 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists has-workaround resolved The issue has been resolved

Comments

@jvilalta
Copy link

Hi

Thanks for maintaining this image. I don't know that this is an issue you can fix but wanted to let you know that the Alpine 3.13 container fails to start in this environment/hardware:
Raspberry PI
ARMv7
Debian 10.6
This is the command that fails and the output:
sudo docker run --rm -it --device /dev/bus/usb/001/005 hertzg/rtl_433:alpine-3.13-latest
rtl_433 version 20.11 branch at 202011122224 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 145 out of 175 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 170-175 ]
Assertion failed: clock_gettime(1, tp) == 0 (libusbi.h: usbi_get_monotonic_time: 497)

This image/command works fine:
sudo docker run --rm -it --device /dev/bus/usb/001/005 hertzg/rtl_433:alpine-3.12-latest

Feel free to close this if it is not something that can be fixed on your side.

@hertzg
Copy link
Owner

hertzg commented Jan 23, 2021

Hello,

I'm glad you found the docker images useful, this is a known issue. As a workaround I've recently introduced alternative builds based on alpine:3.12 which you have already found in your second example 👍 (see #3 if you want details).

For now the only workaround is to use any image based on alpine 3.12.
You can access those images by hertzg/rtl_433:alpine-3.12-* where * can be any valid rtl_433 version, master or latest respectively.

Example:

$ docker run --rm -it --device /dev/bus/usb/001/005 hertzg/rtl_433:alpine-3.12-latest

I am not sure if the rtl_433 or it's dependencies support alpine and musl so I'm currently working on introducing images built based on debian images and change the :latest tag to target those. The alpine based images would still stay but be an "opt-in" variant.

@hertzg hertzg added bug Something isn't working duplicate This issue or pull request already exists has-workaround resolved The issue has been resolved labels Jan 23, 2021
@hertzg
Copy link
Owner

hertzg commented Feb 14, 2021

I've just pushed a build pipeline which provides debian builds. Maybe you could give it a try and see if it resolves the issue.

https://github.com/hertzg/rtl_433_docker/actions/runs/565743906

Once the pipeline finishes you can try:

$ docker run --rm -it --device /dev/bus/usb/001/005 hertzg/rtl_433:debian-buster-latest
# or
$ docker run --rm -it --device /dev/bus/usb/001/005 hertzg/rtl_433:debian-bullseye-latest

@hertzg hertzg closed this as completed Feb 14, 2021
@jvilalta
Copy link
Author

debian-buster-latest worked for me. bullseye throws the same error as alpine.

thank you.

@mpuff
Copy link

mpuff commented Mar 24, 2021

you need to install this for the new alpine docker image:

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.4.4-1~bpo10+1_armhf.deb
sudo dpkg -i libseccomp2_2.4.4-1~bpo10+1_armhf.deb

than it should work ;)

@hertzg
Copy link
Owner

hertzg commented Mar 25, 2021

dpkg -i

AFAIK Alpine Linux is not a Debian derivative. I’m not sure why that package would be required. If you can elaborate a bit maybe we could whip up a PR for this but so far I don’t see how that is related to the libusb issue.

@mpuff
Copy link

mpuff commented Mar 25, 2021

I had this problem also on another alpine docker image. Than i have updated this container, same error, after the installation of this libusb was the container starting again.
I found this info in another chat

@hertzg
Copy link
Owner

hertzg commented May 18, 2021

For people who are still experiencing this or who just endded up here from search engines, you can find the workaround and summary on another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists has-workaround resolved The issue has been resolved
Projects
None yet
Development

No branches or pull requests

3 participants