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

pypowerwall container for arm64 and arm/v7 #1

Closed
jasonacox opened this issue Feb 10, 2022 · 2 comments
Closed

pypowerwall container for arm64 and arm/v7 #1

jasonacox opened this issue Feb 10, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jasonacox
Copy link
Owner

Open issue for Greg Rhan

Thanks for putting together your [Powerwall Monitor] - looks great!
I'm trying to get it set up and it looks like your pypowerwall container may not be built for arm (I'm on a M1 Mac and Raspberry Pi v3b+). Any chance you could update the docker image to support linux/arm64 & linux/arm/v7 in addition to amd64? Thanks in advance.

From my Pi
$ docker logs pypowerwall
standard_init_linux.go:228: exec user process caused: exec format error
standard_init_linux.go:228: exec user process caused: exec format error
standard_init_linux.go:228: exec user process caused: exec format error

From my M1 Mac

image

@jasonacox
Copy link
Owner Author

Corrected! Pushed pypowerwall container for linux/amd64, linux/arm64, and linux/arm/v7.

 docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --push -t jasonacox/pypowerwall:latest 

image

@jasonacox
Copy link
Owner Author

Discovery:

Thanks, that worked!

I hit another issue related to a bug in the libseccomp2 library for 32-bit Debian Buster, so including the error msg and resolution in case it comes up in the project issues.

pi:~/powerwall_monitor $ docker logs -f pypowerwall
Fatal Python error: _Py_InitializeMainInterpreter: can't initialize time
PermissionError: [Errno 1] Operation not permitted

 # Resolved by [from https://docs.linuxserver.io/faq#option-2]

sudo apt-key adv --keyserver [keyserver.ubuntu.com](http://keyserver.ubuntu.com/) --recv-keys 04EE7237B7D453EC 648ACFD622F3D138
echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install -t buster-backports libseccomp2

jasonacox pushed a commit that referenced this issue Mar 1, 2022
@jasonacox jasonacox added the bug Something isn't working label Sep 25, 2022
jasonacox pushed a commit that referenced this issue Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant