OttPeterR / addon-babybuddy

BabyBuddy, wrapped into a Home Assistant addon
35 stars 13 forks source link

unable to install after migrating from Pi to Pi #4

Closed jofotoo closed 2 years ago

jofotoo commented 2 years ago

Hello, I just migrated from a Pi3 to a Pi4 and am unable to install Baby Buddy. I restored HA to the Pi4 via full backup, but left out baby buddy because i'm not using it yet. I figured i'd add it later and did a partial restore from the same backup, but it wont' install. i can't install afresh version from the add on store either. below is the supervisor log i'm getting showing the install attempt as well as the restore attempt.

Any ideas?

22-04-16 22:19:30 INFO (SyncWorker_7) [supervisor.docker.addon] Starting build for 68152197/aarch64-addon-baby_buddy:1.10.2.1
22-04-16 22:19:33 ERROR (SyncWorker_7) [supervisor.docker.addon] Can't build 68152197/aarch64-addon-baby_buddy:1.10.2.1: 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: 17
22-04-16 22:19:33 ERROR (SyncWorker_7) [supervisor.docker.addon] Build log: 
Step 1/16 : ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.0.1
Step 2/16 : FROM ${BUILD_FROM}
 ---> 8e1846329f8a
Step 3/16 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 ---> Using cache
 ---> 9ddbf7589d3f
Step 4/16 : 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 d4efbc26ae89
**** install build packages ****
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
ERROR: unable to select packages:

  libcrypto1.1-1.1.1l-r8:
    breaks: openssl-dev-1.1.1n-r0[libcrypto1.1=1.1.1n-r0]
    satisfies: world[libcrypto1.1=1.1.1l-r8]
               ca-certificates-20191127-r7[so:libcrypto.so.1.1]
               python3-3.9.7-r4[so:libcrypto.so.1.1]
               libretls-3.3.4-r2[so:libcrypto.so.1.1]
               libpq-14.2-r0[so:libcrypto.so.1.1]
               libcurl-7.80.0-r0[so:libcrypto.so.1.1]
               apk-tools-2.12.7-r3[so:libcrypto.so.1.1]
               libssl1.1-1.1.1l-r8[so:libcrypto.so.1.1]
  libssl1.1-1.1.1l-r8:
    breaks: openssl-dev-1.1.1n-r0[libssl1.1=1.1.1n-r0]
    satisfies: world[libssl1.1=1.1.1l-r8]
               python3-3.9.7-r4[so:libssl.so.1.1]
               libretls-3.3.4-r2[so:libssl.so.1.1]
               libpq-14.2-r0[so:libssl.so.1.1]
               libcurl-7.80.0-r0[so:libssl.so.1.1]
               apk-tools-2.12.7-r3[so:libssl.so.1.1]
Removing intermediate container d4efbc26ae89

22-04-16 22:20:33 INFO (MainThread) [supervisor.backups.manager] Partial-Restore 11204d85 start
22-04-16 22:20:53 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
22-04-16 22:21:01 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
22-04-16 22:21:29 INFO (MainThread) [supervisor.backups.manager] Restoring 11204d85 Docker config
22-04-16 22:21:29 INFO (MainThread) [supervisor.backups.manager] Restoring 11204d85 Repositories
22-04-16 22:21:29 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/hassio-addons/repository repository
22-04-16 22:21:34 INFO (MainThread) [supervisor.store] Loading add-ons from store: 101 all - 39 new - 0 remove
22-04-16 22:21:34 INFO (MainThread) [supervisor.backups.manager] Restoring 11204d85 Add-ons
22-04-16 22:21:47 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
22-04-16 22:21:55 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
22-04-16 22:22:10 INFO (MainThread) [supervisor.addons.addon] Restore config for addon 68152197_baby_buddy
22-04-16 22:22:41 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon 68152197_baby_buddy
22-04-16 22:22:41 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
22-04-16 22:25:54 INFO (SyncWorker_5) [supervisor.docker.addon] Importing image /data/tmp/tmpj8_u5zom/image.tar and version 1.10.2.1
22-04-16 22:25:54 WARNING (SyncWorker_5) [supervisor.docker.interface] Can't find 68152197/aarch64-addon-baby_buddy for cleanup
22-04-16 22:25:54 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon 68152197_baby_buddy
22-04-16 22:26:01 ERROR (SyncWorker_7) [supervisor.docker] Image 68152197/aarch64-addon-baby_buddy:1.10.2.1 does not exist for addon_68152197_baby_buddy
22-04-16 22:26:02 ERROR (MainThread) [supervisor.backups.backup] Can't restore backup 68152197_baby_buddy
22-04-16 22:26:03 INFO (MainThread) [supervisor.backups.manager] Partial-Restore 11204d85 done
22-04-16 22:28:08 INFO (SyncWorker_4) [supervisor.docker.addon] Starting build for 68152197/aarch64-addon-baby_buddy:1.10.2.1

System Health

version core-2022.4.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.103-v8
arch aarch64
timezone America/New_York
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4576 Installed Version | 1.24.5 Stage | running Available Repositories | 1109 Downloaded Repositories | 65
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 7.6 -- | -- update_channel | stable supervisor_version | supervisor-2022.04.0 docker_version | 20.10.9 disk_total | 222.8 GB disk_used | 43.9 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Samba Backup (5.0.0), Barcode Buddy for Grocy (dev-docker-based), File editor (5.3.3), Grocy (0.17.0), Home Assistant Google Drive Backup (0.106.2), Let's Encrypt (4.12.0), MariaDB (2.4.0), Mosquitto broker (6.0.1), NGINX Home Assistant SSL proxy (3.1.1), Node-RED (11.1.1), Remote Backup (2022.1.1), Rsync Backups (1.1.1), SQLite Web (3.3.0), SSH & Web Terminal (10.1.1), Samba share (9.5.1), Vaultwarden (Bitwarden) (0.16.0), WireGuard (0.6.0), Z-Wave JS (0.1.55), Z-Wave JS to MQTT (0.37.0), phpMyAdmin (0.7.1), room-assistant (2.20.0), pigpio (1.5.1), AppDaemon (0.8.2), Home Assistant Git Exporter (1.12.2), InfluxDB (4.4.1), Grafana (7.5.2)
Dashboards dashboards | 5 -- | -- resources | 37 views | 30 mode | storage
OttPeterR commented 2 years ago

Hey thanks for opening this issue, I've had some issues with those libcrypto and openssl errors when I was first building the addon. I'm running on a HABlue (Odroid) so I don't have the same hardware to test it fully but I'll see what I do!

OttPeterR commented 2 years ago

@jofotoo I pushed up a change, when you have a minute can you try installing and seeing what happens?

jofotoo commented 2 years ago

looks the same. i see a new version number (1.10.2.2)

22-04-22 11:01:54 ERROR (SyncWorker_4) [supervisor.docker.addon] Can't build 68152197/aarch64-addon-baby_buddy:1.10.2.2: 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: 17
22-04-22 11:01:54 ERROR (SyncWorker_4) [supervisor.docker.addon] Build log:
Step 1/16 : ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.1.0
Step 2/16 : FROM ${BUILD_FROM}
 ---> 8e1846329f8a
Step 3/16 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 ---> Using cache
 ---> 9ddbf7589d3f
Step 4/16 : 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 4d62b4de8022
**** install build packages ****
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
ERROR: unable to select packages:

  libcrypto1.1-1.1.1l-r8:
    breaks: openssl-dev-1.1.1n-r0[libcrypto1.1=1.1.1n-r0]
    satisfies: world[libcrypto1.1=1.1.1l-r8]
               ca-certificates-20191127-r7[so:libcrypto.so.1.1]
               python3-3.9.7-r4[so:libcrypto.so.1.1]
               libretls-3.3.4-r2[so:libcrypto.so.1.1]
               libpq-14.2-r0[so:libcrypto.so.1.1]
               libcurl-7.80.0-r0[so:libcrypto.so.1.1]
               apk-tools-2.12.7-r3[so:libcrypto.so.1.1]
               libssl1.1-1.1.1l-r8[so:libcrypto.so.1.1]
  libssl1.1-1.1.1l-r8:
    breaks: openssl-dev-1.1.1n-r0[libssl1.1=1.1.1n-r0]
    satisfies: world[libssl1.1=1.1.1l-r8]
               python3-3.9.7-r4[so:libssl.so.1.1]
               libretls-3.3.4-r2[so:libssl.so.1.1]
               libpq-14.2-r0[so:libssl.so.1.1]
               libcurl-7.80.0-r0[so:libssl.so.1.1]
               apk-tools-2.12.7-r3[so:libssl.so.1.1]
Removing intermediate container 4d62b4de8022
OttPeterR commented 2 years ago

I was able to reproduce your issue but it went away with that latest update on my local machine. I'll keep trying things though

jofotoo commented 2 years ago

Thanks. I don't quite need it yet, so there's time. :)

OttPeterR commented 2 years ago

an update has been pushed that fixes this, could you let me know if its working for you?