Local addon; suddenly build errors since HassOS 4.10 / 0.111

Guys,

I have a custom addon which uses paho-mqtt to connect to mqtt. I get reports from a user which cannot install the addon anymore with the following error:

The command ‘/bin/ash -o pipefail -c pip3 install paho-mqtt’ returned a non-zero code: 127

I tried building the addon on my devsystem and i also get this error. What is changed / going on?

EDIT: this is the beginning of my docker file:

ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG C.UTF-8
RUN apk add --no-cache python3
RUN pip3 install paho-mqtt
RUN pip3 install apscheduler

I found this:

Value 127 is returned by your shell /bin/bash when any given command within your bash script or on bash command line is not found in any of the paths defined by PATH system environment variable.

from https://linuxconfig.org/how-to-fix-bash-127-error-return-code

Did you forgot a “b” from “bash”?

1 Like

I cannot forget; this command is executed during docker build… So if this is a problem it’s the docker build environment. But I don’t have enough knowlegde about this unfortunately…

Hi!
I had same problem with my addon and it seems I solved it!
I added a build.json file and some labels to my Dockerfile. Here is my commit https://github.com/balda/ruuvitag-discovery/commit/198544e93b19740ec389a7825cce9301146173e8.
I hope it helps :slightly_smiling_face: