hassio-addons / addon-appdaemon

AppDaemon4 - Home Assistant Community Add-ons
https://addons.community
MIT License
152 stars 47 forks source link

Alpine APK version mismatch prevents installation of curl-dev #158

Closed uorbe001 closed 2 years ago

uorbe001 commented 3 years ago

Problem/Motivation

Can't I stall curl-dev as a system dependency using v0.7 of the add-on

Expected behavior

Should be able to install it and use it.

Actual behavior

Appdaemon fails to start because it can't install the dependency.

Steps to reproduce

system_packages:
  - build-base
  - python3-dev
  - curl-dev
python_packages: []
init_commands: []

Star the add-on with the config above. Log output should be something like this:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: AppDaemon 4
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.7.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.3  (armv7 / raspberrypi4)
 Home Assistant Core: 2021.9.6
 Home Assistant Supervisor: 2021.09.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] appdaemon.sh: executing... 
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/armv7/APKINDEX.tar.gz
v3.14.2-37-g87a4860058 [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
v3.14.2-36-g70ff2140e8 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]
OK: 14535 distinct packages available
(1/18) Installing binutils (2.35.2-r2)
(2/18) Installing libmagic (5.40-r1)
(3/18) Installing file (5.40-r1)
(4/18) Installing libgomp (10.3.1_git20210424-r2)
(5/18) Installing libatomic (10.3.1_git20210424-r2)
(6/18) Installing libgphobos (10.3.1_git20210424-r2)
(7/18) Installing gmp (6.2.1-r0)
(8/18) Installing isl22 (0.22-r0)
(9/18) Installing mpfr4 (4.1.0-r0)
(10/18) Installing mpc1 (1.2.1-r0)
(11/18) Installing gcc (10.3.1_git20210424-r2)
(12/18) Installing musl-dev (1.2.2-r3)
(13/18) Installing libc-dev (0.7.2-r3)
(14/18) Installing g++ (10.3.1_git20210424-r2)
(15/18) Installing make (4.3-r0)
(16/18) Installing fortify-headers (1.1-r1)
(17/18) Installing patch (2.7.6-r7)
(18/18) Installing build-base (0.5-r2)
Executing busybox-1.33.1-r3.trigger
OK: 212 MiB in 82 packages
(1/2) Installing pkgconf (1.7.4-r0)
(2/2) Installing python3-dev (3.9.5-r1)
Executing busybox-1.33.1-r3.trigger
OK: 250 MiB in 84 packages
ERROR: unable to select packages:
  libcrypto1.1-1.1.1k-r0:
    breaks: openssl-dev-1.1.1l-r0[libcrypto1.1=1.1.1l-r0]
    satisfies: world[libcrypto1.1=1.1.1k-r0]
               ca-certificates-20191127-r5[so:libcrypto.so.1.1]
               python3-3.9.5-r1[so:libcrypto.so.1.1]
               libretls-3.3.3p1-r2[so:libcrypto.so.1.1]
               libcurl-7.78.0-r0[so:libcrypto.so.1.1]
               apk-tools-2.12.7-r0[so:libcrypto.so.1.1]
               libssl1.1-1.1.1k-r0[so:libcrypto.so.1.1]
  libssl1.1-1.1.1k-r0:
    breaks: openssl-dev-1.1.1l-r0[libssl1.1=1.1.1l-r0]
    satisfies: world[libssl1.1=1.1.1k-r0]
               python3-3.9.5-r1[so:libssl.so.1.1]
               libretls-3.3.3p1-r2[so:libssl.so.1.1]
               libcurl-7.78.0-r0[so:libssl.so.1.1]
               apk-tools-2.12.7-r0[so:libssl.so.1.1]
[22:07:04] FATAL: Failed installing package curl-dev
[cont-init.d] appdaemon.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.

 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Proposed changes

I believe the base image for appdaemon needs to be updated using the latest index of alpine's APK index.

underko commented 2 years ago

I am installing curl-dev with following config:

system_packages:
  - libcrypto1.1
  - libssl1.1
  - curl-dev
python_packages: []
init_commands: []
frenck commented 2 years ago

If you install curl-dev, be sure to also install curl.

uorbe001 commented 2 years ago

I managed to install it doing the same thing @underko suggested, however, simply adding curl didn't work. Thanks for the suggestion!