CoolKit-Technologies / ha-addon

Apache License 2.0
261 stars 119 forks source link

Error installing version 1.2.2 #38

Closed mjeronimoa closed 2 years ago

mjeronimoa commented 2 years ago

When trying to update or fresh install version 1.2.2, I'm getting the following error: The command '/bin/sh -c yarn --production' returned a non-zero code: 1

I'm running Home Assistant SO in a raspberry pi 3

Moncortec commented 2 years ago

Me too, same error

Im use Raspberry Pi 4, previous version works perfect.

mjeronimoa commented 2 years ago

I have tried to clone the repository and go back in the history to version 1.2.1, but it is still failing with the same error message.

Matt7C2 commented 2 years ago

I've got the same error on Mi Raspberry PI 4, eWeLink Smart Home 1.2.2 Home Assistant 2021.10.2

scadman1 commented 2 years ago

I've got exactly the same issue on PI 4, eWeLink Smart Home 1.2.2 Home Assistant Core-2021.10.4 Host OS 6.5

aamarques commented 2 years ago

Same here HW: RPI 4 eWeLink Smart Home 1.2.2 Home Assistant Core-2021.10.4 Supervisor: 2021.10.0 Host OS 6.5

giros79 commented 2 years ago

me too same error

nattgud commented 2 years ago

+1 to this one. First use as well. Not a good experience so far.

orbital253 commented 2 years ago

EDIT: fixed in 1.2.3

It looks like latest Home Assistant Supervisor is missing python and build-essential packages that are needed for the Dockerfile. So i made a new Dockerfile that adds python and build-essential.

# ARG BUILD_FROM
# FROM $BUILD_FROM
FROM node:14-slim
RUN apt-get update || : && apt-get install python -y
RUN apt-get -y install build-essential
RUN mkdir -p /workspace/node_modules
COPY ["./dist", "./package.json", "/workspace/"]
WORKDIR /workspace
RUN yarn --production
COPY ["./node_modules", "/workspace/node_modules/"]
EXPOSE 3000
CMD npm start

Until this is fixed you can temporarily use a fork i made to patch this issue

https://github.com/orbital253/ha-addon

to Developers: A big thanks for the awesome work you do here. Please implement This small patch in your repository

Matt7C2 commented 2 years ago

thk your fork works correctly

farcasclaudiu commented 2 years ago

+1

isbkch commented 2 years ago

Same error on RPI4

aamarques commented 2 years ago

Thanks @orbital253 ! It’s working now! How the (official) passes in tests ? 🧐🤨

niezw commented 2 years ago

It looks like latest Home Assistant Supervisor is missing python and build-essential packages that are needed for the Dockerfile. So i made a new Dockerfile that adds python and build-essential.

# ARG BUILD_FROM
# FROM $BUILD_FROM
FROM node:14-slim
RUN apt-get update || : && apt-get install python -y
RUN apt-get -y install build-essential
RUN mkdir -p /workspace/node_modules
COPY ["./dist", "./package.json", "/workspace/"]
WORKDIR /workspace
RUN yarn --production
COPY ["./node_modules", "/workspace/node_modules/"]
EXPOSE 3000
CMD npm start

Until this is fixed you can temporarily use a fork i made to patch this issue

https://github.com/orbital253/ha-addon

  • Installation takes 3 minutes on a Raspberry 4

to Developers: A big thanks for the awesome work you do here. Please implement This small patch in your repository

Thank you for providing us with ideas to solve the problem, and we will fix it as soon as possible.

zold commented 2 years ago

Same error on OPI zero, but on another HA run on Debain 11 x64 it fine.

niezw commented 2 years ago

try to update v1.2.3

orbital253 commented 2 years ago

Issued fixed for me. There is no need to use https://github.com/orbital253/ha-addon anymore