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 build error related to dependencies? #21

Closed
jeroenterheerdt opened this issue Nov 4, 2022 · 30 comments
Closed

docker build error related to dependencies? #21

jeroenterheerdt opened this issue Nov 4, 2022 · 30 comments
Assignees

Comments

@jeroenterheerdt
Copy link

image

This is what is in the Supervisor log:

**** install build packages ****
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/armv7/APKINDEX.tar.gz
ERROR: unable to select packages:

  musl-1.2.3-r0:
    breaks: musl-dev-1.2.3-r1[musl=1.2.3-r1]
    satisfies: world[musl=1.2.3-r0]
               apk-tools-2.12.9-r3[musl>=1.2]
               apk-tools-2.12.9-r3[so:libc.musl-armv7.so.1]
               pkgconf-1.8.0-r1[so:libc.musl-armv7.so.1]
               llvm13-13.0.1-r2[so:libc.musl-armv7.so.1]
               gcc-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               clang-13.0.1-r1[so:libc.musl-armv7.so.1]
               icu-dev-71.1-r2[so:libc.musl-armv7.so.1]
               g++-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               libffi-3.4.2-r1[so:libc.musl-armv7.so.1]
               tzdata-2022c-r0[so:libc.musl-armv7.so.1]
               patch-2.7.6-r7[so:libc.musl-armv7.so.1]
               libjpeg-turbo-2.1.3-r1[so:libc.musl-armv7.so.1]
               libxslt-1.1.35-r0[so:libc.musl-armv7.so.1]
               bash-5.1.16-r2[so:libc.musl-armv7.so.1]
               ca-certificates-20220614-r0[so:libc.musl-armv7.so.1]
               python3-3.10.5-r0[so:libc.musl-armv7.so.1]
               binutils-2.38-r3[so:libc.musl-armv7.so.1]
               busybox-1.35.0-r17[so:libc.musl-armv7.so.1]
               libecpg-dev-14.5-r0[so:libc.musl-armv7.so.1]
               sqlite-libs-3.38.5-r0[so:libc.musl-armv7.so.1]
               curl-7.83.1-r2[so:libc.musl-armv7.so.1]
               ncurses-libs-6.3_p20220521-r0[so:libc.musl-armv7.so.1]
               expat-2.5.0-r0[so:libc.musl-armv7.so.1]
               musl-utils-1.2.3-r0[so:libc.musl-armv7.so.1]
               nghttp2-libs-1.47.0-r0[so:libc.musl-armv7.so.1]
               llvm13-libs-13.0.1-r2[so:libc.musl-armv7.so.1]
               libstdc++-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               mpdecimal-2.5.1-r1[so:libc.musl-armv7.so.1]
               libbz2-1.0.8-r1[so:libc.musl-armv7.so.1]
               brotli-libs-1.0.9-r6[so:libc.musl-armv7.so.1]
               libpq-14.5-r0[so:libc.musl-armv7.so.1]
               libpq-dev-14.5-r0[so:libc.musl-armv7.so.1]
               clang-libs-13.0.1-r1[so:libc.musl-armv7.so.1]
               file-5.41-r0[so:libc.musl-armv7.so.1]
               icu-71.1-r2[so:libc.musl-armv7.so.1]
               libcurl-7.83.1-r2[so:libc.musl-armv7.so.1]
               mpc1-1.2.1-r0[so:libc.musl-armv7.so.1]
               libmagic-5.41-r0[so:libc.musl-armv7.so.1]
               gdbm-1.23-r0[so:libc.musl-armv7.so.1]
               icu-libs-71.1-r2[so:libc.musl-armv7.so.1]
               oniguruma-6.9.8-r0[so:libc.musl-armv7.so.1]
               mpfr4-4.1.0-r0[so:libc.musl-armv7.so.1]
               zlib-1.2.12-r3[so:libc.musl-armv7.so.1]
               libgomp-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               readline-8.1.2-r0[so:libc.musl-armv7.so.1]
               libecpg-14.5-r0[so:libc.musl-armv7.so.1]
               make-4.3-r0[so:libc.musl-armv7.so.1]
               libgpg-error-1.45-r0[so:libc.musl-armv7.so.1]
               libgcc-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               postgresql14-dev-14.5-r0[so:libc.musl-armv7.so.1]
               libssl1.1-1.1.1q-r0[so:libc.musl-armv7.so.1]
               alpine-baselayout-3.2.0-r22[so:libc.musl-armv7.so.1]
               libcrypto1.1-1.1.1q-r0[so:libc.musl-armv7.so.1]
               libatomic-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               xz-libs-5.2.5-r1[so:libc.musl-armv7.so.1]
               libxml2-2.9.14-r2[so:libc.musl-armv7.so.1]
               scanelf-1.3.4-r0[so:libc.musl-armv7.so.1]
               gmp-6.2.1-r2[so:libc.musl-armv7.so.1]
               jq-1.6-r1[so:libc.musl-armv7.so.1]
               libgcrypt-1.10.1-r0[so:libc.musl-armv7.so.1]
               isl22-0.22-r0[so:libc.musl-armv7.so.1]
  libcrypto1.1-1.1.1q-r0:
    breaks: openssl-dev-1.1.1s-r0[libcrypto1.1=1.1.1s-r0]
    satisfies: world[libcrypto1.1=1.1.1q-r0]
               ca-certificates-20220614-r0[so:libcrypto.so.1.1]
               python3-3.10.5-r0[so:libcrypto.so.1.1]
               libpq-14.5-r0[so:libcrypto.so.1.1]
               libcurl-7.83.1-r2[so:libcrypto.so.1.1]
               apk-tools-2.12.9-r3[so:libcrypto.so.1.1]
               libssl1.1-1.1.1q-r0[so:libcrypto.so.1.1]
  libssl1.1-1.1.1q-r0:
    breaks: openssl-dev-1.1.1s-r0[libssl1.1=1.1.1s-r0]
    satisfies: world[libssl1.1=1.1.1q-r0]
               python3-3.10.5-r0[so:libssl.so.1.1]
               libpq-14.5-r0[so:libssl.so.1.1]
               libcurl-7.83.1-r2[so:libssl.so.1.1]
               apk-tools-2.12.9-r3[so:libssl.so.1.1]
  build-dependencies-20221104.164031:
    masked in: cache
    satisfies: world[build-dependencies=20221104.164031]
Removing intermediate container eada0d48d2e4
@jeroenterheerdt
Copy link
Author

I am on:
Home Assistant 2022.10.5
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221010.0 - latest

Raspberry 4

@jeroenterheerdt jeroenterheerdt changed the title docker build error docker build error related to dependencies? Nov 4, 2022
@OttPeterR
Copy link
Owner

is this your first install or were you updating?

@OttPeterR OttPeterR self-assigned this Nov 4, 2022
@jeroenterheerdt
Copy link
Author

first install

@jeroenterheerdt
Copy link
Author

are there pre-reqs I should somehow install first?

@jeroenterheerdt
Copy link
Author

also tried running the Dockerfile in the Portainer add-on, same result:

Step 1/12 : ARG BUILD_FROM=ghcr.io/hassio-addons/base/armv7:12.2.3



Step 2/12 : FROM ${BUILD_FROM}



 ---> 772ef21b4775

Step 3/12 : VOLUME ["/run"]



 ---> Using cache

 ---> a1f76178557a

Step 4/12 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]



 ---> Using cache

 ---> 27fae369c78a

Step 5/12 : RUN   echo "**** install build packages ****" &&   apk add --no-cache --virtual=build-dependencies     build-base     curl     jpeg-dev     libffi-dev     libxml2-dev     libxslt-dev     postgresql-dev     python3-dev     zlib-dev



 ---> Running in ff9ca8e74719

**** install build packages ****

fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/armv7/APKINDEX.tar.gz

fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/armv7/APKINDEX.tar.gz

ERROR: unable to select packages:

  musl-1.2.3-r0:
    breaks: musl-dev-1.2.3-r1[musl=1.2.3-r1]
    satisfies: world[musl=1.2.3-r0]
               apk-tools-2.12.9-r3[musl>=1.2]
               apk-tools-2.12.9-r3[so:libc.musl-armv7.so.1]
               pkgconf-1.8.0-r1[so:libc.musl-armv7.so.1]
               llvm13-13.0.1-r2[so:libc.musl-armv7.so.1]
               gcc-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               clang-13.0.1-r1[so:libc.musl-armv7.so.1]
               icu-dev-71.1-r2[so:libc.musl-armv7.so.1]
               g++-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               libffi-3.4.2-r1[so:libc.musl-armv7.so.1]
               tzdata-2022c-r0[so:libc.musl-armv7.so.1]
               patch-2.7.6-r7[so:libc.musl-armv7.so.1]
               libjpeg-turbo-2.1.3-r1[so:libc.musl-armv7.so.1]
               libxslt-1.1.35-r0[so:libc.musl-armv7.so.1]
               bash-5.1.16-r2[so:libc.musl-armv7.so.1]
               ca-certificates-20220614-r0[so:libc.musl-armv7.so.1]
               python3-3.10.5-r0[so:libc.musl-armv7.so.1]


               binutils-2.38-r3[so:libc.musl-armv7.so.1]
               busybox-1.35.0-r17[so:libc.musl-armv7.so.1]
               libecpg-dev-14.5-r0[so:libc.musl-armv7.so.1]
               sqlite-libs-3.38.5-r0[so:libc.musl-armv7.so.1]
               curl-7.83.1-r2[so:libc.musl-armv7.so.1]
               ncurses-libs-6.3_p20220521-r0[so:libc.musl-armv7.so.1]
               expat-2.5.0-r0[so:libc.musl-armv7.so.1]
               musl-utils-1.2.3-r0[so:libc.musl-armv7.so.1]
               nghttp2-libs-1.47.0-r0[so:libc.musl-armv7.so.1]
               llvm13-libs-13.0.1-r2[so:libc.musl-armv7.so.1]
               libstdc++-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               mpdecimal-2.5.1-r1[so:libc.musl-armv7.so.1]
               libbz2-1.0.8-r1[so:libc.musl-armv7.so.1]
               brotli-libs-1.0.9-r6[so:libc.musl-armv7.so.1]
               libpq-14.5-r0[so:libc.musl-armv7.so.1]
               libpq-dev-14.5-r0[so:libc.musl-armv7.so.1]
               clang-libs-13.0.1-r1[so:libc.musl-armv7.so.1]

               file-5.41-r0[so:libc.musl-armv7.so.1]
               icu-71.1-r2[so:libc.musl-armv7.so.1]
               libcurl-7.83.1-r2[so:libc.musl-armv7.so.1]
               mpc1-1.2.1-r0[so:libc.musl-armv7.so.1]
               libmagic-5.41-r0[so:libc.musl-armv7.so.1]
               gdbm-1.23-r0[so:libc.musl-armv7.so.1]
               icu-libs-71.1-r2[so:libc.musl-armv7.so.1]
               oniguruma-6.9.8-r0[so:libc.musl-armv7.so.1]
               mpfr4-4.1.0-r0[so:libc.musl-armv7.so.1]
               zlib-1.2.12-r3[so:libc.musl-armv7.so.1]
               libgomp-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               readline-8.1.2-r0[so:libc.musl-armv7.so.1]
               libecpg-14.5-r0[so:libc.musl-armv7.so.1]
               make-4.3-r0[so:libc.musl-armv7.so.1]
               libgpg-error-1.45-r0[so:libc.musl-armv7.so.1]
               libgcc-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               postgresql14-dev-14.5-r0[so:libc.musl-armv7.so.1]
               libssl1.1-1.1.1q-r0[so:libc.musl-armv7.so.1]


               alpine-baselayout-3.2.0-r22[so:libc.musl-armv7.so.1]
               libcrypto1.1-1.1.1q-r0[so:libc.musl-armv7.so.1]
               libatomic-11.2.1_git20220219-r2[so:libc.musl-armv7.so.1]
               xz-libs-5.2.5-r1[so:libc.musl-armv7.so.1]
               libxml2-2.9.14-r2[so:libc.musl-armv7.so.1]
               scanelf-1.3.4-r0[so:libc.musl-armv7.so.1]
               gmp-6.2.1-r2[so:libc.musl-armv7.so.1]
               jq-1.6-r1[so:libc.musl-armv7.so.1]
               libgcrypt-1.10.1-r0[so:libc.musl-armv7.so.1]
               isl22-0.22-r0[so:libc.musl-armv7.so.1]
  libcrypto1.1-1.1.1q-r0:
    breaks: openssl-dev-1.1.1s-r0[libcrypto1.1=1.1.1s-r0]
    satisfies: world[libcrypto1.1=1.1.1q-r0]
               ca-certificates-20220614-r0[so:libcrypto.so.1.1]
               python3-3.10.5-r0[so:libcrypto.so.1.1]
               libpq-14.5-r0[so:libcrypto.so.1.1]
               libcurl-7.83.1-r2[so:libcrypto.so.1.1]
               apk-tools-2.12.9-r3[so:libcrypto.so.1.1]
               libssl1.1-1.1.1q-r0[so:libcrypto.so.1.1]


  libssl1.1-1.1.1q-r0:
    breaks: openssl-dev-1.1.1s-r0[libssl1.1=1.1.1s-r0]
    satisfies: world[libssl1.1=1.1.1q-r0]
               python3-3.10.5-r0[so:libssl.so.1.1]
               libpq-14.5-r0[so:libssl.so.1.1]
               libcurl-7.83.1-r2[so:libssl.so.1.1]
               apk-tools-2.12.9-r3[so:libssl.so.1.1]
  build-dependencies-20221104.184630:
    masked in: cache
    satisfies: world[build-dependencies=20221104.184630]

The command '/bin/bash -o pipefail -c echo "**** install build packages ****" &&   apk add --no-cache --virtual=build-dependencies     build-base     curl     jpeg-dev     libffi-dev     libxml2-dev     libxslt-dev     postgresql-dev     python3-dev     zlib-dev' returned a non-zero code: 76


              
            ```

@OttPeterR
Copy link
Owner

I've had similar dependency issues like this in the past, though I think it was openssl last time. I pushed an update for the base container, let me know if that does it for you!

@jeroenterheerdt
Copy link
Author

jeroenterheerdt commented Nov 4, 2022

just tried it again, same result. how can I tell I am using the latest base container? The logs are identical. the Add-on install screen says '1.13.2.1' in the top-right, so I am assuming it's using the latest you just pushed:
image

@OttPeterR
Copy link
Owner

Yeah the 1.13.2.1 in the top right means you have the version I just pushed up
As for why the error is persisting... I'm not so sure.
I can't get the issue to reproduce on my end and the first difference I see is that I'm on amd64 not armv7

@OttPeterR
Copy link
Owner

Found the issue for the previous time this happened: #11

My thought was that the dependency conflict was caused by some upstream dependency and it went away after a few days, since nothing I did seemed fix it. I'll keep a lookout for a new container version, but it may resolve itself on its own.

Sorry 😕 this isn't ideal but I think it's out of our control for now.

@jeroenterheerdt
Copy link
Author

ok, thanks for letting me know!

@jeroenterheerdt
Copy link
Author

still trying to figure this out, seems like the build-base package is the culprit (and potentially the build-essential as well). alpine-sdk doesn't help either. Cannot find a way around this, so unfortunately this is a no-go. Darn it.

@jeroenterheerdt
Copy link
Author

made some progress - replacing build-base with gcc helped. however, postgresql-dev is not included after Alpine 3.14 according to the package list: https://pkgs.alpinelinux.org/packages?name=postgresql-dev&branch=v3.14&repo=&arch=&maintainer=.
That is now stopping me from progressing. I am unsure how to get the packages from 3.14 exclusively.

@OttPeterR
Copy link
Owner

I went down a rabbit hole of dependency pinning and what not but also couldn't get to the bottom of it when this happened a few months ago 😕

@NobleWolf
Copy link

NobleWolf commented Nov 7, 2022

Is there a previous version of you addon that did successfully install?

@jeroenterheerdt where are you currently hosting Baby Buddy?

I posted here as well. https://community.home-assistant.io/t/wip-baby-buddy-integration-frontend/464123/3?u=noblewolf If there is anything I can do for testing I'd be happy to help, but I have no experience in building add-ons or containers.

@jeroenterheerdt
Copy link
Author

jeroenterheerdt commented Nov 7, 2022

hi @NobleWolf - this is my first try to install the add-on. I am not hosting it anywhere, I am trying to get it running on a container on HA on RPI 4 (arch armv7). I also tried running it on my laptop (arch x86_64) in case the architecture would be problematic and that seems to work. I am no expert either, but hoping someone can help getting this to work on armv7/rpi4

@SebRut
Copy link

SebRut commented Nov 12, 2022

There seems to be a new release of the addon-base image https://github.com/hassio-addons/addon-base/releases/tag/v12.2.6 which seems to fix the build error at least for my local build. I'm not sure on how to test the armv7 build though.

@OttPeterR
Copy link
Owner

thanks for finding that, I pushed out those changes just now, let me know if it fixes things for you @jeroenterheerdt

@NobleWolf
Copy link

NobleWolf commented Nov 12, 2022

Screenshot_20221112-144549_Home Assistant.jpg

I just tried to install version 1.13.2.2 and got this error.

I'm on a Raspberry Pi 3b+ running late at HA Supervised and HA OS.

@chpego
Copy link
Contributor

chpego commented Nov 12, 2022

thanks for finding that, I pushed out those changes just now, let me know if it fixes things for you @jeroenterheerdt

Mmmmh did you forget to bump version in build.yaml file ?

aarch64: ghcr.io/hassio-addons/base:12.2.3
amd64: ghcr.io/hassio-addons/base:12.2.3
armhf: ghcr.io/hassio-addons/base:12.2.3
armv7: ghcr.io/hassio-addons/base:12.2.3
i386: ghcr.io/hassio-addons/base:12.2.3

@chpego
Copy link
Contributor

chpego commented Nov 12, 2022

It's using amd64 arch, maybe changing this line ?

ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.2.6

@OttPeterR
Copy link
Owner

I did forget that build.yaml, thanks - that's pushed up now as well

that said, I was able to replicate the issue on my end (finally) but still have no luck in resolving the issue 😞

@chpego
Copy link
Contributor

chpego commented Nov 13, 2022

I've the same problem, now

I think the addon base image need to upgrade library musl to 1.2.3-r2

https://github.com/hassio-addons/addon-base/blob/d711941d487306313a91a066633d48c1bae26f46/base/Dockerfile#L41-L42

@jeroenterheerdt
Copy link
Author

jeroenterheerdt commented Nov 13, 2022 via email

@jampez77
Copy link

jampez77 commented Nov 14, 2022

I'm getting a similar error when upgrading from 1.13.2.2 to 1.13.2.3
Screenshot 2022-11-14 at 09 02 53

@chpego
Copy link
Contributor

chpego commented Nov 15, 2022

@OttPeterR could you upgrade the base image , the PR has been merged 😁

https://github.com/hassio-addons/addon-base/releases/tag/v12.2.7

@OttPeterR
Copy link
Owner

12.2.7 is pushed

@SebRut
Copy link

SebRut commented Nov 15, 2022

12.2.7 is pushed

I was able to install the addon now. Start is looking good as well.

@OttPeterR
Copy link
Owner

Glad to hear it, I'll close out this issue 👍🏻

@jeroenterheerdt
Copy link
Author

FWIW - I can confirm it works on armv7 for me as well now. Thank you! Hope to see ingress working at some point as well - any ideas on that?

@OttPeterR
Copy link
Owner

I'm in school right now so I don't anticipate putting much work into it until winter break, so I'd expect some update around December/January

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

6 participants