Open ScratMan opened 2 years ago
I there and thanks for reaching out!
I am currently pretty occupied with some other stuff and I do not have a Pi4 on Hand right now. But that shouldn't stop us from resolving the issue you are facing if you are willing to do some sort of pair debugging ;)
I will take a look into the posted logs and configs later that day but in the mean time what you could try is cloning the repo and trying to build it yourself like described in https://github.com/CausticLab/hass-configurator-docker#build-locally
Maybe it is because the last version is already a little bit old from the base image it is created. If building locally and running it work we may get away on this with a simple rebuild of all the images with the latest base image versions.
Oh and be sure to build it on the Pi4 itself.
Hi, thanks for the support. I managed to use the command to build changing the .
with Dockerfile
, but had some errors :
/home/docker/git_repos/hass-configurator-docker# docker build -f Dockerfile --build-arg HC_BUILD_VERSION=0.4.1 . -t hass-configurator-docker-local:0.4.1 --no-cache
Sending build context to Docker daemon 100.4kB
Step 1/10 : FROM python:3.9-alpine
3.9-alpine: Pulling from library/python
5480d2ca1740: Pull complete
d234b707fd03: Pull complete
503bbf7f1800: Pull complete
2d180caa33d8: Pull complete
5d39cf3c8efd: Pull complete
Digest: sha256:091e589aa641a59b10cc764bfc959a91b70003643f2aac91fd4fc0353f09dddf
Status: Downloaded newer image for python:3.9-alpine
---> 897efba2fbc7
Step 2/10 : LABEL maintainer="Martin <Munsio> Treml"
---> Running in 6795beb6a71c
Removing intermediate container 6795beb6a71c
---> 2b6a3b9ba405
Step 3/10 : WORKDIR /app
---> Running in 4db8b247e697
Removing intermediate container 4db8b247e697
---> f980ca0974ac
Step 4/10 : ARG HC_BUILD_VERSION
---> Running in 27cc40d13d42
Removing intermediate container 27cc40d13d42
---> 904fc706ae56
Step 5/10 : RUN apk update && apk upgrade && apk add --no-cache bash git openssh && pip install --no-cache-dir hass-configurator==${HC_BUILD_VERSION} gitpython pyotp
---> Running in 8cd825c1d670
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/armv7/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory
2 errors; 37 distinct packages available
The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache bash git openssh && pip install --no-cache-dir hass-configurator==${HC_BUILD_VERSION} gitpython pyotp' returned a non-zero code: 2
When using the built image, I get the same errors
Fatal Python error: init_interp_main: can't initialize time,
Python runtime state: core initialized,
PermissionError: [Errno 1] Operation not permitted,
Current thread 0xb6f23390 (most recent call first):,
<no Python frame>
Hmm the Fetching error does not seem right. Maybe we need to update the image anyway. I hope to get some spare time today evening than I will take a look into it.
Okay i dug a little deeper and it seems that you are not the only one having this error. https://github.com/alpinelinux/docker-alpine/issues/135
For some a simple update of the docker version may help, for others running the container in privileged mode. What also bothers me is PermissionError: [Errno 1] Operation not permitted,
but that there is no further explanation on WHAT permission failed. Your mapped folders have the right permissions?
Hello. Everything is up to date, and the mapped folders are the same as for 0.4.0. I also tried launching the build as root, same issue.
Everything is up to date
Great to hear but what exact versions are you using?
Potential causes that I read on regarding this problem are with running an 32bit OS on a 64bit CPU and that because of that a security library libseccomp2
is broken.
One workaround would be to run the container in privileged mode. If you do not want to do that you need to update your libseccomp2
library. As I do not know your distro and so on this is something you need to figure out alone.
Regardless of which option you choose I personally would try the privileged
one first to see if it solves it and than proceed to the libseccomp2
one for a permanent solution.
@ScratMan did you get sort it out? If so could you share what exactly you did so others stumbling across this issue know how to resolve it!?
@ScratMan did you get sort it out? If so could you share what exactly you did so others stumbling across this issue know how to resolve it!?
Hello, no, I couldn't fix that issue. I checked that docker and libraries are up to date, the folders are accessible, and works perfectly with 0.4.0, and I tried both with my user account and root, without success.
Hello, tried again today, still same issue.
root@raspberrypi:/home/docker/git_repos/hass-configurator-docker# docker build -f Dockerfile --build-arg HC_BUILD_VERSION=0.4.1 . -t hass-configurator-docker-local --no-cache Sending build context to Docker daemon 100.4kB Step 1/10 : FROM python:3.9-alpine ---> 897efba2fbc7 Step 2/10 : LABEL maintainer="Martin
Treml" ---> Running in 96ad06697d5a Removing intermediate container 96ad06697d5a ---> 6dce9f18bee2 Step 3/10 : WORKDIR /app ---> Running in 0826cddad6aa Removing intermediate container 0826cddad6aa ---> e293c4d8b8a2 Step 4/10 : ARG HC_BUILD_VERSION ---> Running in 984b53535c68 Removing intermediate container 984b53535c68 ---> 164b1779440e Step 5/10 : RUN apk update && apk upgrade && apk add --no-cache bash git openssh && pip install --no-cache-dir hass-configurator==${HC_BUILD_VERSION} gitpython pyotp ---> Running in e05aa9d76c9e fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/armv7/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/armv7/APKINDEX.tar.gz ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory 2 errors; 37 distinct packages available The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache bash git openssh && pip install --no-cache-dir hass-configurator==${HC_BUILD_VERSION} gitpython pyotp' returned a non-zero code: 2
Those temporary errors are really strange. I try to get my hands on a Pi 4 for troubleshooting but I can't promise that it would be in the next few days - sry.
Hello, when trying to update my hass-configurator-docker running on my Raspberry pi 4 using
causticlab/hass-configurator-docker:latest
it fails to start. I need to use thecausticlab/hass-configurator-docker:arm
tag to keep it working, but it's 0.4.0.Why ? Isn't the Pi 4 Armv7 ?
The log shows this continuously
The inspect of the container when failing: