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

Docker-Container throws "Fatal Python error" on HypriotOS/armv7 #38

Closed
monsdar opened this issue Mar 29, 2021 · 2 comments
Closed

Docker-Container throws "Fatal Python error" on HypriotOS/armv7 #38

monsdar opened this issue Mar 29, 2021 · 2 comments

Comments

@monsdar
Copy link

monsdar commented Mar 29, 2021

Disclaimer: This is kind of a self-post to help others with the same issue in the future.

I'm running Prometheus, Grafana and a bunch of exporters on a Raspberry Pi 4 in Docker containers. I'm using Hypriot OS for that. When calling docker run -d -e FRITZ_EXPORTER_CONFIG="192.168.178.1,username,password" -p 9787:9787 --name fritz_exporter pdreker/fritz_exporter it fails with during startup with the following message: Fatal Python error: init_interp_main: can't initialize time.

I was able to work around that by starting in priviliged mode with docker run ... --privileged ..., but this is not working for docker build ... for example.

@monsdar
Copy link
Author

monsdar commented Mar 29, 2021

Within this StackOverflow question they mention something similar and that the cause of this issue is an old version of libseccomp2 on ARM computers.

In the end I was able to download libseccomp2_2.5.1-1_armhf.deb from the Debian repositories which installed using sudo dpkg -i libseccomp2_2.4.3-1+b1_armhf.deb without any issues. After that I could run and build the docker image without any issues.

Hope this helps someone else as well.

@monsdar monsdar closed this as completed Mar 29, 2021
@pdreker
Copy link
Owner

pdreker commented Mar 30, 2021

After you mentioned this I remembered that I had to do the exact same here (for another container, but also on a Raspi4 with "standard" RaspianOS.

I'll document this in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants