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

Cannot install #1

Open
fernandex00 opened this issue Sep 4, 2018 · 17 comments
Open

Cannot install #1

fernandex00 opened this issue Sep 4, 2018 · 17 comments
Assignees
Labels
question Further information is requested

Comments

@fernandex00
Copy link

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

@sytone
Copy link
Owner

sytone commented Sep 5, 2018 via email

@fernandex00
Copy link
Author

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

@sytone
Copy link
Owner

sytone commented Sep 13, 2018

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

@sytone sytone self-assigned this Sep 13, 2018
@sytone sytone added the question Further information is requested label Sep 13, 2018
@fernandex00
Copy link
Author

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

@erlendsellie
Copy link

Any update on this?

@erlendsellie
Copy link

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.

@gkreitz
Copy link
Contributor

gkreitz commented Nov 23, 2018

Happened to me too, on a 64-bit hass.io. Same error message in the logs. Seems to be the issue MagicMirrorOrg/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

@vipk31
Copy link

vipk31 commented Aug 12, 2019

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

@bouwew
Copy link

bouwew commented Aug 12, 2019

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.

@roessi
Copy link

roessi commented Sep 6, 2021

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

@bouwew
Copy link

bouwew commented Sep 13, 2021

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

@roessi
Copy link

roessi commented Sep 14, 2021

@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

@bouwew
Copy link

bouwew commented Sep 14, 2021

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.

@roessi
Copy link

roessi commented Sep 14, 2021

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

@bouwew
Copy link

bouwew commented Sep 14, 2021

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

@roessi
Copy link

roessi commented Sep 14, 2021

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

@bouwew
Copy link

bouwew commented Sep 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants