LukasGrebe / ha-addons

Addons for Home Assistant
GNU General Public License v3.0
41 stars 46 forks source link

Problem with install #2

Closed Ral126 closed 2 years ago

Ral126 commented 2 years ago

Hello! Trying to install ebusd-integration to HA - get error Log: 21-10-08 17:12:40 INFO (SyncWorker_3) [supervisor.docker.addon] Starting build for 2ad9b828/armv7-addon-ebusd:0.81 21-10-08 17:13:28 ERROR (SyncWorker_3) [supervisor.docker.addon] Can't build 2ad9b828/armv7-addon-ebusd:0.81: The command '/bin/ash -o pipefail -c apk add --no-cache build-base argp-standalone git mosquitto-dev cmake' returned a non-zero code: 5 21-10-08 17:13:28 ERROR (SyncWorker_3) [supervisor.docker.addon] Build log: Step 1/21 : ARG BUILD_FROM Step 2/21 : FROM $BUILD_FROM as builder ---> a6b4abf955c9 Step 3/21 : ENV LANG C.UTF-8 ---> Using cache ---> 4e367cb8ece4 Step 4/21 : RUN apk add --no-cache build-base argp-standalone git mosquitto-dev cmake ---> Running in 0a2e973a7db9 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/armv7/APKINDEX.tar.gz 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:

WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: Permission denied

fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/armv7/APKINDEX.tar.gz 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330: 1995604880:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:

WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: Permission denied

ERROR: unable to select packages:

argp-standalone (no such package): required by: world[argp-standalone] build-base (no such package): required by: world[build-base] cmake (no such package): required by: world[cmake] git (no such package): required by: world[git] mosquitto-dev (no such package): required by: world[mosquitto-dev] Removing intermediate container 0a2e973a7db9

Error at installation - The command '/bin/ash -o pipefail -c apk add --no-cache build-base argp-standalone git mosquitto-dev cmake' returned a non-zero code: 5

Forgot - Rpi 3B+, HA core-2021.9.7, HA supervisor-2021.09.6 Can you help?)))

LukasGrebe commented 2 years ago

Hi and thanks for trying out my ebusd addon!

reading the error message i noticed an error occurs when trying to install packages to build the ebusd source code. Specifically: it seems to be a problem verifythe ssl certificate of the apine package management

SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914

Unfortunately i don’t think theres anything i can do about it as it appears to be an upstream problem.

can you install other addons that are compiled on the device without problem?

maybe just try switching it off and on again?

LukasGrebe commented 2 years ago

It looks like there might be a problem with the clock/configured time when verifying the ssl certificate:

ASN1_TIME_adj:error getting time:crypto

Maybe double check the clock/time of you device?

Ral126 commented 2 years ago

It looks like there might be a problem with the clock/configured time when verifying the ssl certificate:

ASN1_TIME_adj:error getting time:crypto

Maybe double check the clock/time of you device?

It`s my timezone. And the date and the time is correct. I can change it to any you need =) And one more thing - "/bin/ash..." maybe missing "b"? Like - "/bin/bash...."

LukasGrebe commented 2 years ago

No that probably wont help if it matches your timezone and the time is correct.

So i think this is a problem in the Home Assistant OS / setup. Can you install other Add-ons without problems?

I know https://github.com/m-reuter/ha-addons is setup similarly. Could you try installing vzLogger? If an error doesn't occur when installing the vzLogger for example, its probably a problem with this ebusd add-on. If an error also occurs with the vzLogger add-on, the root cause is probably outside the ebusd addon scope.

Ral126 commented 2 years ago

I know https://github.com/m-reuter/ha-add-ons Hmmmm.... it`s 404 link

I`ve already installed HACS, Xiaomi Mi Gateway, mqtt brocker... - no problem

LukasGrebe commented 2 years ago

I know https://github.com/m-reuter/ha-add-ons

Hmmmm.... it`s 404 link

Oops my bad its: https://github.com/m-reuter/ha-addons

Ral126 commented 2 years ago

Yep - no problem.

21-10-08 18:03:39 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/85d384e2_vzlogger2mqtt 21-10-08 18:03:39 INFO (SyncWorker_3) [supervisor.docker.interface] Downloading docker image mreuter/armv7-vzlogger2mqtt with tag 0.9.2. 21-10-08 18:06:23 INFO (MainThread) [supervisor.addons] Add-on '85d384e2_vzlogger2mqtt' successfully installed

LukasGrebe commented 2 years ago

Thanks for trying it out! Ok so this does indeed appear to be a problem with the ebusd install. As the error measages suggest a problem with certificates when installing dependencies - a same step that vzLogger does with mostly the same packages - im not sure what the problem is exactly.

Have you tried removing the repository from the add-on store and simply trying again? Maybe you'll get a different error message?

Ral126 commented 2 years ago

Have you tried removing the repository from the add-on store and simply trying again? Maybe you'll get a different error message?

The same (( The command '/bin/ash -o pipefail -c apk add --no-cache build-base argp-standalone git mosquitto-dev cmake' returned a non-zero code: 5

LukasGrebe commented 2 years ago

Ive googled and found https://github.com/hassio-addons/addon-base/issues/40 wich is describing the same or a similar issue. But its not clear to me what the fix is…

LukasGrebe commented 2 years ago

For later Reference: This solved the problem for someone else on a different add-on https://github.com/balda/ruuvitag-discovery/commit/198544e93b19740ec389a7825cce9301146173e8

Kentrp commented 2 years ago

Have you tried removing the repository from the add-on store and simply trying again? Maybe you'll get a different error message?

The same (( The command '/bin/ash -o pipefail -c apk add --no-cache build-base argp-standalone git mosquitto-dev cmake' returned a non-zero code: 5

Did you resolve this problems, l have the same one

Kentrp commented 2 years ago

I resolve my problems just reinstall all my system

LukasGrebe commented 2 years ago

@Ral126 does the solution by @Kentrp work for you?

Ral126 commented 2 years ago

No. I reinstalled system, use another PI, no luck(

tim-devel commented 2 years ago

@Ral126 it look like this is a known issue with Alpine Linux not the eBUSd addon - https://github.com/alpinelinux/docker-alpine/issues/135

Closing this issue as there is nothing @LukasGrebe or I can do to fix this.