Closed magicse closed 1 month ago
Every version from 2022.7+ is failed to start on Docker (QNAP).
The same error message is occurred.
[14:44:09] INFO: Home Assistant Core finish process exit code 256 [14:44:09] INFO: Home Assistant Core finish process received signal 11 [14:44:10] INFO: Home Assistant Core finish process exit code 256 [14:44:10] INFO: Home Assistant Core finish process received signal 11 [14:44:11] INFO: Home Assistant Core finish process exit code 256 [14:44:11] INFO: Home Assistant Core finish process received signal 11
It is looping infinitely.
There is no resolution in any discussion only reverting to a lower version 2022.6.
This issue might be resolved finally. If the latest official container still isn't working you can try linuxserver.io's container.
@magicse can you try with a pre-release version? like the new one from today 2023.2.0b9
So that we can ensure that it's related with the problem #75142.
Because the fix was for armv6 and I'm not sure the problem with your device is the same, although it seems similar.
@Gerigot Due to the constant power outage, it's a little difficult for me to do this, but I'll try.
I have the same problem with Qnap TS-431X. Tested versions 2023.3.0.dev20230202, 2023.2.0.dev20230120, 2023.2.0b9 and current "stable".
2022.6.7 works well.
@boyarale, have you tried linuxserver.io's image? Please test and report back.
Because the fix was for armv6 and I'm not sure the problem with your device is the same, although it seems similar.
QNAP TS-231p3 is arm32v7
I've seen other talking about that problem with QNAP and they solved it using the Linuxserver.io image, unfortunately I don't have a QNAP so I can't investing the problem
It may be possible to somehow analyze what has changed during the transition from version 2022.6.7. There should be some explanation for this phenomenon.
I think the problem relays on some libraries that HA uses not on the core itself so it's very difficult investigate without a device. I fixed the problem for "pi zero" because I'm using it on that so I could test if the solution was good.
like the new one from today 2023.2.0b9 My test config
version: '3.8' services: homeassistant: restart: always image: homeassistant/home-assistant:2023.2.0b9 network_mode: host privileged: true environment: - DISABLE_JEMALLOC=true - TZ=Europe/Berlin volumes: - /share/Container/hass-config:/config
Error log
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
[17:41:21] INFO: Home Assistant Core finish process exit code 256
[17:41:21] INFO: Home Assistant Core finish process received signal 11
[17:41:22] INFO: Home Assistant Core finish process exit code 256
[17:41:22] INFO: Home Assistant Core finish process received signal 11
[17:41:23] INFO: Home Assistant Core finish process exit code 256
bash-5.1# python3
Python 3.10.7 (main, Nov 24 2022, 13:02:43) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jwt
Segmentation fault
bash-5.1#
bash-5.1# python3
Python 3.10.7 (main, Nov 24 2022, 13:02:43) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography.hazmat.primitives.asymmetric import ec, padding
Segmentation fault
bash-5.1#
bash-5.1# gdb --args python -c "import sys, numpy; print(numpy.__version__, sys.version)"
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "armv7-alpine-linux-musleabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...
(No debugging symbols found in python)
(gdb) r
Starting program: /usr/local/bin/python -c import\ sys,\ numpy\;\ print\(numpy.__version__,\ sys.version\)
Program received signal SIGSEGV, Segmentation fault.
0x75fb792c in ?? () from /lib/ld-musl-armhf.so.1
apk --print-arch' gives armv7, but /lib/libc.musl-armv7.so.1 is link to /lib/ld-musl-armhf.so.1 it is somewhat strange
https://github.com/home-assistant/core/issues/75142#issuecomment-1200269467 Just for completeness, on 2022.6.7 both imports, numpy and jwt, work without issues:
@Wetzel402
This issue might be resolved finally. If the latest official container still isn't working you can try linuxserver.io's container.
linuxserver.io's container Home Assistant 2023.2.1 work well.
I was hoping that @Gerigot's fix would also correct the issue with QNAP but it appears that isn't the case. More investigation and research is needed...
@Wetzel402 No problem any needed logs and tests for analytics we could make.
@magicse, right now I think comparing the repositories to find differences would be a good start. Why does linuxserver.io's image run when the official does not?
It could be worth trying to build the docker image using the Linuxserver base image with offical HA wheels as well as vice versa.
It is really a strange behavior and unfortunately I don't have an ARMv7 to make some test myself it will be really difficult to find out what's going on
@Wetzel402
Edit: They also use their own wheels. This makes me suspect it is a wheels issue as some have previously suspected...
May be you are right and they use different wheels for example for cryptography. I see by names that they didn't use musllinux for arch armv7l . musllinux used for aarch64 and x86_64 arch. Also aarch64 and x86_64 arch builded for Python 3.6, and armv7l armv8l builded for Python 3.10
[cryptography-39.0.0-cp310-cp310-linux_armv7l.whl](https://wheels.linuxserver.io/alpine-3.16/cryptography-39.0.0-cp310-cp310-linux_armv7l.whl)
[cryptography-39.0.0-cp310-cp310-linux_armv8l.whl](https://wheels.linuxserver.io/alpine-3.16/cryptography-39.0.0-cp310-cp310-linux_armv8l.whl)
[cryptography-39.0.0-cp36-abi3-musllinux_1_1_aarch64.whl](https://wheels.linuxserver.io/alpine-3.16/cryptography-39.0.0-cp36-abi3-musllinux_1_1_aarch64.whl)
[cryptography-39.0.0-cp36-abi3-musllinux_1_1_x86_64.whl](https://wheels.linuxserver.io/alpine-3.16/cryptography-39.0.0-cp36-abi3-musllinux_1_1_x86_64.whl)
Debugging of official image give me error in ld-musl-armhf.so.1 while importing (for exmaple) numpy or cryptography
(gdb) r
bash-5.1# gdb --args python -c "import sys, numpy; print(numpy.__version__, sys.version)"
Starting program: /usr/local/bin/python -c import\ sys,\ numpy\;\ print\(numpy.__version__,\ sys.version\)
Program received signal SIGSEGV, Segmentation fault.
0x75fb792c in ?? () from /lib/ld-musl-armhf.so.1
I think we could start from this point.... For example when simple importing of numpy inside of container will be without segmentation fault.
**bash-5.1# python3
Python 3.10.7 (main, Nov 24 2022, 13:02:43) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Segmentation fault
bash-5.1#**
QNAP armv7l May be problem with armv7l <-- > armv7hf and package architecture (armv7l) does not match system (armhf) also it not armv7hf-musl armv7hf armv7l-musl
bash-5.1# cat /proc/cpuinfo processor : 0 model name : Annapurna Labs Alpine AL314 Quad-core ARM Cortex-A15 CPU @ 1.70GHz Speed : 1.7GHz Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x2 CPU part : 0xc0f CPU revision : 4
@Gerigot @Wetzel402 I have tried build wheels for armv7 on Ubuntu 64 with next command
export ARCH=armv7
sudo docker build --build-arg CPYTHON_ABI=cp310 --build-arg BUILD_FROM=ghcr.io/home-assistant/wheels/${ARCH}/musllinux_1_2/cp310:dev --build-arg BUILD_ARCH=${ARCH} --tag wheel-builder:${ARCH} .
And all time got error about import cmake.
After that I checked Dockerfile and requirements_cp310.txt and files at this link "https://wheels.home-assistant.io/musllinux/" and there is different versions of cmake. In requirements_cp310.txt version of cmake 3.25.2 and at link "https://wheels.home-assistant.io/musllinux/" cmake for armv7 is 3.22.2. After changing version of cmake in file requirements_cp310.txt to 3.22.2 - all builds well.
Could you check this problem with versions?
@magicse,
The cmake version was only changed a couple of weeks ago so I'm not sure that's our problem. Theoretically something changed between the June and July builds of HA and we need to find it.
I think need dig in musllinux becouse i get seg fault during debug from ld-musl-armhf.so.1
gdb --args python -c "import sys, numpy; print(numpy.__version__, sys.version)"
Starting program: /usr/local/bin/python -c import\ sys,\ numpy\;\ print\(numpy.__version__,\ sys.version\)
Program received signal SIGSEGV, Segmentation fault.
0x75fb792c in ?? () from /lib/ld-musl-armhf.so.1
Also additional information abut cpu from here ARMonQEMUforDebianUbuntu.md ARMv7 CPU which Debian calls as armhf (ARM hard float) and Cortex-A8, A9, A15 are all ARMv7. ARMv6 CPU which Debian calls as armel and ARMv5, v6. Raspberry Pi uses ARMv6. In this case, the cpu is arm1176
And addidtiona information ARM v6 and v7 target musl Building a cross compiler targeting musl libc MUSL LIBC for ARMv6 and ARMv7 Building Unable run grpcio wheel on alpine arvm7 run grpcio wheel on alpine arvm7
I rebuilt numpy package inside of homeassistant container
git clone https://github.com/numpy/numpy.git
cd numpy
python setup.py build -j 4 install
And after that it work well without segfault.
bash-5.1# python
Python 3.10.7 (main, Nov 24 2022, 13:02:43) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
💡 pip show numpy
bash-5.1# pip show numpy
Name: numpy
Version: 1.23.2
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email:
License: BSD
Location: /usr/local/lib/python3.10/site-packages
Requires:
Required-by: contourpy, imageio, matplotlib, noaa-coops, pandas, pyairvisual, PyTurboJPEG
💡 python3 -c "import numpy"
bash-5.1# python3 -c "import numpy"
Segmentation fault
bash-5.1#
And after pip install numpy all good
💡 pip install numpy --upgrade --no-cache-dir --force-reinstall --use-deprecated=legacy-resolver
bash-5.1# apk add gcc g++
bash-5.1# pip install numpy --upgrade --no-cache-dir --force-reinstall --use-deprecated=legacy-resolver
Collecting numpy
Downloading numpy-1.24.2.tar.gz (10.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 919.0 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml) ... done
Created wheel for numpy: filename=numpy-1.24.2-cp310-cp310-linux_armv7l.whl size=6837303 sha256=45539a718b34234f92ede59b7f65d6b363f0c0d85cc8d862b70d190527d633ae
Stored in directory: /tmp/pip-ephem-wheel-cache-8pwduyiw/wheels/31/42/8e/88540c3411ed4734c7fd06056942e82136135724593ecec35a
Successfully built numpy
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.23.2
Uninstalling numpy-1.23.2:
Successfully uninstalled numpy-1.23.2
Successfully installed numpy-1.24.2
💡 python3 -c "import numpy"
bash-5.1# python3 -c "import numpy"
bash-5.1#
💡 pip show numpy
bash-5.1# pip show numpy
Name: numpy
Version: 1.24.2
Summary: Fundamental package for array computing in Python
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email:
License: BSD-3-Clause
Location: /usr/local/lib/python3.10/site-packages
Requires:
Required-by: contourpy, imageio, matplotlib, noaa-coops, pandas, pyairvisual, PyTurboJPEG
@Wetzel402 I downloaded Alpina 3.16 official minimal clean docker image (only 5mb in size) https://hub.docker.com/_/alpine And I installed everything in it from scratch myself Python 3.10.10, g++, gcc and homeassistant with pip install homeassistant command.
After installation I ran *hass script and Home Assistant 2023.2.5 started and everything works great. This indicates that the docker image https://hub.docker.com/r/homeassistant/home-assistant which is posted on homeassistant is not built correctly.
List of commands to install Home assistant in to the clear minimal Alpine 3.16 docker image.
apk add bash
bash
bash-5.1# apk add g++ gcc make
bash-5.1# apk add libcap libpcap-dev
bash-5.1# apk add ffmpeg
bash-5.1# apk add python3
bash-5.1# apk add python3-dev libffi-dev libftdi1-dev bzip2-dev openssl-dev
bash-5.1# apk add cargo
bash-5.1# python3 -m ensurepip --upgrade
bash-5.1# pip3 install aiohttp
bash-5.1# pip3 install ffmpeg
bash-5.1# pip3 install libpcap
bash-5.1# pip3 install tzdata
bash-5.1# pip3 install PyNaCl
bash-5.1# pip3 install homeassistant
To start home assistant run hass
@magicse, good work troubleshooting.
@frenck, is this something you could look into?
@Gerigot Also could someone explain to me why I can't update or delete old python in the Home Assistan original container image by standard methods? I wanted made some experiment inside of Home assistant original container but I couldn't.
bash-5.1# python --version
Python 3.10.7
bash-5.1# apk del python3
OK: 119 MiB in 162 packages
bash-5.1# python --version
Python 3.10.7
bash-5.1# apk add python3
(1/1) Installing python3 (3.10.10-r0)
Executing busybox-1.35.0-r17.trigger
OK: 165 MiB in 163 packages
bash-5.1# python --version
Python 3.10.7
????? What's wrong with this container from Home Assistant???
@Wetzel402 @jrieger @larsxschneider @lswysocki @boyarale @Gerigot
Next experiment inside of original Home Assistant docker container to get worked Home Assistant
I removed old python by rm command because apk del python3 can't delete it, I think because of some wrong installation of Python in Home Assistan container.
rm -f /usr/local/bin/python*
rm -f /usr/local/bin/pip*
rm -f /usr/local/bin/pydoc
rm -rf /usr/local/bin/include/python*
rm -f /usr/local/lib/libpython*
rm -rf /usr/local/lib/python*
rm -f /usr/local/share/man/python*
rm -rf /usr/local/lib/pkgconfig
rm -f /usr/local/bin/idle
rm -f /usr/local/bin/easy_install-*
rm -rf /usr/local/include/python*
rm -f /usr/local/share/man/python*
After that I reinstall Python and Home Assistant inside of container.
apk add pyton3
ln -sf /usr/bin/python3 /usr/bin/python && ln -sf /usr/bin/python3 /usr/local/bin/python
python3 -m ensurepip --upgrade
apk add cargo libffi-dev libftdi1-dev python3-dev bzip2-dev openssl-dev
pip3 install ffmpeg
pip3 install libpcap
pip3 install tzdata
pip3 install PyNaCl
cd /usr/src/homeassistant
pip3 install -e .
hass --config /config
And voila Home Assistant works without problems
bash-5.1# hass --config /config
2023-02-21 09:06:13.090 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration rhvoice which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-02-21 09:06:13.124 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
Therefore, questions remain about the Python installed in the original Home Assistant container.
I think that the problem is related to the incorrectly compiled and installed Python in the container. And as a result we get a broken container for armv7 Also I could share built whl's if needed. built wheels
Also pay attention to the names of the created packages after rebuilding. ( in some packages names "linux" instead "musllinux_1_2") -
aiohttp-3.8.1-cp310-cp310-linux_armv7l.whl instead of your repository aiohttp-3.8.3-cp310-cp310-musllinux_1_2_armv7l.whl
or
my build name of home_assistant_bluetooth-1.9.2-cp310-cp310-musllinux_1_2_armv7l.whl the same as your weel name home_assistant_bluetooth-1.9.2-cp310-cp310-musllinux_1_2_armv7l.whl
Hi @Gerigot , could you helpme? I see several reps with dockerfiles. Can you tell me which one do you use to cross-compile a Docker image for your experiments with armv6 ? 1 https://github.com/home-assistant/core 2 https://github.com/home-assistant/docker-base 3 https://github.com/home-assistant/docker
Hi @Gerigot , could you helpme? I see several reps with dockerfiles. Can you tell me which one do you use to cross-compile a Docker image for your experiments with armv6 ? 1 https://github.com/home-assistant/core 2 https://github.com/home-assistant/docker-base 3 https://github.com/home-assistant/docker
Hi I was using the core one, the other projects are, as I understood, some base where the core build is based on.
If you want to try build that image remember to pass this build-arg if you want to try of course you should use the right homeassistant-base image I was using the armhf but for the v7 I think you can try using the ghcr.io/home-assistant/armv7-homeassistant-base:2022.11.0....
--build-arg BUILD_FROM=ghcr.io/home-assistant/armhf-homeassistant-base:2022.11.0 -t homeassistant-home .
I've seen they begun to use a newer version of the homeassistant-base (ghcr.io/home-assistant/armv7-homeassistant-base:2023.02.0) so maybe it can be helpful also trying with that one.
Sorry I was very busy those days and I couldn't see what was analyzed till now. You said that with a new version of python it was working right? What I can see is that in the new version of the homeassistant-base the bumped the python version so try building the core with the new version of the base or better try this version of home assistant on your device homeassistant/armv7-homeassistant:2023.4.0.dev20230223
@Gerigot No, I don't want to download the finished image. I'm currently trying and experimenting with cross-compiling my own image. And I wanted to know which github of the above listed you used.
as I said I used the core one :D no problem I was just curious because I saw that the new version should have the base image with the new python so maybe that will solve the issue without compiling
let me know, "unfortunately" I don't have a device with the problem, so I can't help testing
I have already successfully cross-compiled the image from here https://github.com/home-assistant/docker-base/tree/master/alpine on Ubuntu64 with this command
sudo docker build --build-arg BUILD_FROM=arm32v7/alpine:3.16.4 --build-arg QEMU_CPU=cortex-a15 --build-arg TEMPIO_VERSION=2021.09.0 --build-arg BASHIO_VERSION=0.14.3 --build-arg S6_OVERLAY_VERSION=3.1.4.1 --build-arg BUILD_ARCH=${ARCH} .
and after building the clear Docker image (with changed *init to /bin/bash) started normally on QNAP
You said that with a new version of python it was working right?
Yes you are right with Python 10.10.10 it work well
Ok so you're trying to do all what is done from multiple github actions alone ... And it's a good method, first trying to make it work and then slowly remove some custom builded image using the "offical" one is a good method to narrow down what is going wrong. You already did a great work I suspect that since the base image was the 2022.11.0 and stayed that for long time probably something was not working as expected but it could also be something other
I tried to cross-rebuild the docker image myself with this command
git clone https://github.com/home-assistant/core.git 03.hass-core
cd 03.hass-core
docker buildx build --output type=docker --platform linux/arm/v7 --build-arg BUILD_FROM=ghcr.io/home-assistant/armv7-homeassistant-base:2023.02.0 --build-arg QEMU_CPU=cortex-a15 .
but I get the same problems as the original images 2022.7+ Python crashes with Segmentation fault error even with a simple import of the numpy package and aiohttp too, i think with another packages the same.
bash-5.1# python
Python 3.10.10 (main, Feb 14 2023, 15:33:41) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Segmentation fault
After re-installing Python already in the assembled container through the terminal with the standard apk add python3 command, everything starts working just fine. removing python
rm -f /usr/local/bin/python*
rm -f /usr/local/bin/pip*
rm -f /usr/local/bin/pydoc
rm -rf /usr/local/bin/include/python*
rm -f /usr/local/lib/libpython*
rm -rf /usr/local/lib/python*
rm -f /usr/local/share/man/python*
rm -rf /usr/local/lib/pkgconfig
rm -f /usr/local/bin/idle
rm -f /usr/local/bin/easy_install-*
rm -rf /usr/local/include/python*
rm -f /usr/local/share/man/python*
Instalin pyhon and Home Assistant
apk add pyton3
ln -sf /usr/bin/python3 /usr/bin/python && ln -sf /usr/bin/python3 /usr/local/bin/python
python3 -m ensurepip --upgrade
apk add cargo
apk add libffi-dev python3-dev libftdi1-dev bzip2-dev openssl-dev
pip3 install ffmpeg
pip3 install libpcap
pip3 install tzdata
pip3 install PyNaCl
cd /usr/src/homeassistant
pip3 install -e .
hass --config /config
Hi @pvizeli I'm trying to figure out a problem for our QNAP armv7 devices. please take a look at my research, maybe you can help with something. Most similar to a Python issue that throws a segmentation fault.
@Wetzel402
To eliminate the influence of already created Wheels from repo "https://wheels.home-assistant.io/musllinux/", I changed the Dockerfile. I removed the use of the ready-made Wheels repository "https://wheels.home-assistant.io/musllinux/" from the Dockerfile and I want them to be compiled during the creation of the Docker image.
git clone https://github.com/home-assistant/core.git 03.hass-core
cd 03.hass-core
docker buildx build --output type=docker --platform linux/arm/v7 --build-arg BUILD_FROM=ghcr.io/home-assistant/armv7-homeassistant-base:2023.02.0 --build-arg QEMU_CPU=cortex-a15 .
Changes in Dockerfile
ARG BUILD_FROM
FROM ${BUILD_FROM}
# Synchronize with homeassistant/core.py:async_stop
+# cargo under QEMU building for ARM can consumes 10s of GBs of RAM...
+# Solution: https://users.rust-lang.org/t/cargo-uses-too-much-memory-being-run-in-qemu/76531/2
ENV \
- S6_SERVICES_GRACETIME=220000
+ S6_SERVICES_GRACETIME=220000 \
+ CARGO_NET_GIT_FETCH_WITH_CLI=true
ARG QEMU_CPU
WORKDIR /usr/src
+RUN \
+ apk add --no-cache \
+ cmake \
+ cargo \
+ ffmpeg-dev libxml2-dev libxslt-dev jpeg-dev \
+ libffi-dev \
+ python3-dev \
+ libftdi1-dev \
+ bzip2-dev \
+ openssl-dev \
+ postgresql-dev mysql-client mariadb-connector-c-dev \
+ libpcap \
+ autoconf \
+ automake \
+ build-base \
+ libpcap-dev
## Setup Home Assistant Core dependencies
COPY requirements.txt homeassistant/
COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
RUN \
pip3 install \
--no-cache-dir \
- --no-index \
- --only-binary=:all: \
- --find-links "${WHEELS_LINKS}" \
--use-deprecated=legacy-resolver \
-r homeassistant/requirements.txt
COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
RUN \
if ls homeassistant/home_assistant_frontend*.whl 1> /dev/null 2>&1; then \
pip3 install \
--no-cache-dir \
- --no-index \
homeassistant/home_assistant_frontend-*.whl; \
fi \
&& if ls homeassistant/home_assistant_intents*.whl 1> /dev/null 2>&1; then \
pip3 install \
--no-cache-dir \
- --no-index \
homeassistant/home_assistant_intents-*.whl; \
fi \
&& \
LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" \
MALLOC_CONF="background_thread:true,metadata_thp:auto,dirty_decay_ms:20000,muzzy_decay_ms:20000" \
pip3 install \
--no-cache-dir \
- --no-index \
- --only-binary=:all: \
- --find-links "${WHEELS_LINKS}" \
--use-deprecated=legacy-resolver \
-r homeassistant/requirements_all.txt
## Setup Home Assistant Core
COPY . homeassistant/
RUN \
pip3 install \
--no-cache-dir \
- --no-index \
- --only-binary=:all: \
- --find-links "${WHEELS_LINKS}" \
--use-deprecated=legacy-resolver \
-e ./homeassistant \
&& python3 -m compileall \
homeassistant/homeassistant
# Home Assistant S6-Overlay
COPY rootfs /
WORKDIR /config
Just for information so is probably easier to debug. The core image is built starting FROM the homeassistant/docker image, that is build on top of the python3.10 homeassistant/docker-base image that, in turn, is based on the armv7-base:
https://github.com/home-assistant/docker-base/tree/master/alpine (armv7-base) https://github.com/home-assistant/docker-base/tree/master/python/3.10 (python3.10 -alpine 3.16 docker-base) https://github.com/home-assistant/docker (homeassistant-base) https://github.com/home-assistant/core (core)
you could probably try to check if the problem is really in the wheels or in some misconfigured image from all the layers
Before everything it starts with arm32v7/alpine:3.16
Before everything it starts with arm32v7/alpine:3.16
It work well. The problem is hiding somewhere in Python or built Wheels
Version 2022.7+ currently boot loop on QNAP NAS ts-231p
What version of Home Assistant Core has the issue? 2022.7+
What was the last working version of Home Assistant Core? 2022.6.7
What type of installation are you running? Home Assistant Container
Additional information Running on QNAP NAS (TS-231P).
Processor: Annapurna Labs Alpine AL314 Quad-core ARM Cortex-A15 CPU @ 1.70GH