hassio-addons icon indicating copy to clipboard operation
hassio-addons copied to clipboard

Cannot install

Open fernandex00 opened this issue 6 years ago • 17 comments

With hassOS the addon can not install i get this error ERROR (SyncWorker_13) [hassio.docker.addon] Can't build 64f57845/aarch64-addon-magic_mirror:0.23.3: The command '/bin/sh -c git clone --depth 1 -b master https://github.com/MichMich/MagicMirror.git . && npm install --unsafe-perm' returned a non-zero code: 1

fernandex00 avatar Sep 04 '18 12:09 fernandex00

May have been a change in the base image. will have to do a update and look.

Sent from Outlookhttp://aka.ms/weboutlook


From: fernandex00 [email protected] Sent: Tuesday, September 4, 2018 5:41 AM To: sytone/hassio-addons Cc: Subscribed Subject: [sytone/hassio-addons] Cannot install (#1)

With hassOS the addon can not install i get this error ERROR (SyncWorker_13) [hassio.docker.addon] Can't build 64f57845/aarch64-addon-magic_mirror:0.23.3: The command '/bin/sh -c git clone --depth 1 -b master https://github.com/MichMich/MagicMirror.git . && npm install --unsafe-perm' returned a non-zero code: 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsytone%2Fhassio-addons%2Fissues%2F1&data=02%7C01%7C%7C406cc745b1904e84845f08d61263ce30%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636716617193640388&sdata=GfXswiV1Rze3N3dePxluENhOubveDi1dxYFudfxmHoA%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABVak6TWzgXO6VasfOzfZxOOx2gkh063ks5uXnTkgaJpZM4WY57K&data=02%7C01%7C%7C406cc745b1904e84845f08d61263ce30%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636716617193640388&sdata=3bT6X6TFdK25D6ZwWzGpon%2F0SeJkCzNgXtDBqLXhf1A%3D&reserved=0.

sytone avatar Sep 05 '18 20:09 sytone

thanks @sytone hope you can update the addon, to be able to install it ,is very good

fernandex00 avatar Sep 05 '18 22:09 fernandex00

I went though and updated HA, uninstalled and reinstalled and it all worked fine. Do you have any other error logs?

sytone avatar Sep 13 '18 17:09 sytone

i return to hassio with resin os and works , the problem was when i was on hassOS

fernandex00 avatar Sep 15 '18 00:09 fernandex00

Any update on this?

erlendsellie avatar Oct 15 '18 20:10 erlendsellie

Hassio on HassOS works as long as it's 32bit. Startup is extremely slow though, as it runs "cloning MODULE" at each startup. No modules found under /modules.

erlendsellie avatar Oct 18 '18 17:10 erlendsellie

Happened to me too, on a 64-bit hass.io. Same error message in the logs. Seems to be the issue MichMich/MagicMirror#1462. Apparently MagicMirror depends on a version of electron without arm64 builds. There is an ugly workaround (force arch to armv7l during npm install) mentioned in the linked issue, but hopefully upstream will fix this soon.

Attaching to the container while it was building, I grabbed this npm output:

npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.

> [email protected] install /opt/magic_mirror/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0

> [email protected] install /opt/magic_mirror/node_modules/spectron/node_modules/electron-chromedriver
> node ./download-chromedriver.js

/opt/magic_mirror/node_modules/spectron/node_modules/electron-chromedriver/download-chromedriver.js:16
  if (error != null) throw error
                     ^

Error: Failed to find Electron v1.7.0 for linux-arm64 at https://github.com/electron/electron/releases/download/v1.7.0/chromedriver-v1.7.0-linux-arm64.zip
    at Request.<anonymous> (/opt/magic_mirror/node_modules/nugget/index.js:169:61)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at Request.onRequestResponse (/opt/magic_mirror/node_modules/request/request.js:1068:10)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:543:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)
    at TLSSocket.socketOnData (_http_client.js:440:20)
    at emitOne (events.js:116:13)
npm WARN [email protected] requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./download-chromedriver.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-11-23T22_57_02_688Z-debug.log

gkreitz avatar Nov 23 '18 23:11 gkreitz

but can not install log: 19-08-12 13:38:18 INFO (MainThread) [hassio.store.git] Clone add-on https://github.com/sytone/hassio-addons repository 19-08-12 13:38:23 WARNING (MainThread) [hassio.store.data] Can’t read /data/addons/git/64f57845/magic_mirror/config.json: required key not provided @ data[‘arch’]. Got None 19-08-12 13:38:23 INFO (MainThread) [hassio.store] Load add-ons from store: 59 all - 0 new - 0 remove

please help me system : ubuntu 18.04 Home Assistant 0.97.2

vipk31 avatar Aug 12 '19 14:08 vipk31

I've made a copy of this repository and hopefully fixed the above error. Please go here: https://github.com/bouwew/hassio-addons-1 and try it.

bouwew avatar Aug 12 '19 16:08 bouwew

Hello I tried to install it on my N2+ but I gor this error message:

The command '/bin/ash -o pipefail -c apk add --no-cache git nodejs nodejs-npm curl wget unzip && npm set unsafe-perm true && npm i npm@latest -g' returned a non-zero code: 1

Can you help

roessi avatar Sep 06 '21 15:09 roessi

@roessi do you get this with my version (see my previous post above)?

bouwew avatar Sep 13 '21 13:09 bouwew

@roessi do you get this with my version (see my previous post above)?

Hi, yes I added your repository to my Add-on Store.

Hass.IO Magic Mirror add-on repository Sytone [email protected] https://github.com/sytone/hassio-addons

Your Link above does not work. https://github.com/bouwew/hassio-addons-1 took me to https://github.com/bouwew/sytone-hassio-addons

roessi avatar Sep 14 '21 06:09 roessi

Correct, I've changed the name of the repository, but the new link should work, others are using it successfully. I've also changed the info in the repository showing myself as the active maintainer. Please remove and re-add my repository https://github.com/bouwew/sytone-hassio-addons and try again.

bouwew avatar Sep 14 '21 07:09 bouwew

Hi, so I tried this:

  1. remove the old MM Repository
  2. restart the Host
  3. add the repository https://github.com/bouwew/sytone-hassio-addons

Hass.IO Magic Mirror add-on repository - originally by Sytone @bouwew https://github.com/bouwew/sytone-hassio-addons

  1. restart the Host
  2. push the install button

And got the same error message

The command '/bin/ash -o pipefail -c apk add --no-cache git nodejs nodejs-npm curl wget unzip && npm set unsafe-perm true && npm i npm@latest -g' returned a non-zero code: 1

I'm using: core-2021.9.6 supervisor-2021.09.0 Home Assistant OS 6.3

roessi avatar Sep 14 '21 09:09 roessi

Can you please check if there is more detailed error-info Configuration --> Logs --> LOAD FULL HOME ASSISTANT LOG?

bouwew avatar Sep 14 '21 09:09 bouwew

Supervisor LOG:

21-09-14 11:24:50 INFO (SyncWorker_1) [supervisor.docker.addon] Starting build for 394ad856/aarch64-addon-magic_mirror:0.23.3 21-09-14 11:24:54 ERROR (SyncWorker_1) [supervisor.docker.addon] Can't build 394ad856/aarch64-addon-magic_mirror:0.23.3: The command '/bin/ash -o pipefail -c apk add --no-cache git nodejs nodejs-npm curl wget unzip && npm set unsafe-perm true && npm i npm@latest -g' returned a non-zero code: 1 21-09-14 11:24:54 ERROR (SyncWorker_1) [supervisor.docker.addon] Build log: Step 1/16 : ARG BUILD_FROM Step 2/16 : FROM $BUILD_FROM ---> fc4c367ab17d Step 3/16 : ENV LANG C.UTF-8 ---> Using cache ---> c0ba78da5729 Step 4/16 : RUN apk add --no-cache git nodejs nodejs-npm curl wget unzip && npm set unsafe-perm true && npm i npm@latest -g ---> Running in 319610b00229 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz ERROR: unable to select packages:

nodejs-npm (no such package): required by: world[nodejs-npm] Removing intermediate container 319610b00229

roessi avatar Sep 14 '21 09:09 roessi

I'm getting the same error when I try to the installation. I'm not an expert on this, maybe you can post your question in this topic: https://community.home-assistant.io/t/magic-mirror-addon-for-home-assistant/59650

bouwew avatar Sep 14 '21 09:09 bouwew