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

Problem with install #2

Closed
Ral126 opened this issue Oct 8, 2021 · 16 comments
Closed

Problem with install #2

Ral126 opened this issue Oct 8, 2021 · 16 comments

Comments

@Ral126
Copy link

Ral126 commented Oct 8, 2021

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

Ral126 commented Oct 8, 2021

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
Copy link
Owner

LukasGrebe commented Oct 8, 2021

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
Copy link
Author

Ral126 commented Oct 8, 2021

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
Copy link
Owner

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
Copy link
Author

Ral126 commented Oct 8, 2021

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
Copy link
Owner

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
Copy link
Author

Ral126 commented Oct 8, 2021

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
Copy link
Owner

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

@LukasGrebe
Copy link
Owner

For later Reference:
This solved the problem for someone else on a different add-on balda/ruuvitag-discovery@198544e

@Kentrp
Copy link

Kentrp commented Dec 24, 2021

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
Copy link

Kentrp commented Dec 25, 2021

I resolve my problems just reinstall all my system

@LukasGrebe
Copy link
Owner

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

@Ral126
Copy link
Author

Ral126 commented Jan 10, 2022

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

@tim-devel
Copy link
Contributor

@Ral126 it look like this is a known issue with Alpine Linux not the eBUSd addon - alpinelinux/docker-alpine#135

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

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

4 participants