-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
armv7 QNAP Docker: Restarting loop - Core finish process exit code 256 - Core finish process received signal 11 (exit code 139 and exit code 135) #86589
Comments
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 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? 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. 2022.6.7 works well. |
@boyarale, have you tried linuxserver.io's image? Please test and report back. |
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. |
Error log
|
apk --print-arch' gives armv7, but /lib/libc.musl-armv7.so.1 is link to /lib/ld-musl-armhf.so.1 |
#75142 (comment) |
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 |
May be you are right and they use different wheels for example for cryptography.
Debugging of official image give me error in ld-musl-armhf.so.1 while importing (for exmaple) numpy or cryptography
I think we could start from this point.... For example when simple importing of numpy inside of container will be without segmentation fault.
|
QNAP armv7l bash-5.1# cat /proc/cpuinfo |
@Gerigot @Wetzel402
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. Could you check this problem with versions? |
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
Also additional information abut cpu from here ARMonQEMUforDebianUbuntu.md And addidtiona information ARM v6 and v7 target musl |
some interesting article |
Hi @Wetzel402 I also wrote to QNAP support, but they are stubborn and say that 32K is good and they are not interested in third-party containers. Commands to build Alpine inside container
Once the build process is complete, the customized ISO image in the output/ directory. As I understand it, PAGE SIZE is set through the definition of PAGE_SHIFT in the configuration files.. Where PAGE_SHIFЕ = 12 by default 2^12 = 4K (4096). For 32K must be 15, 2^15=32768 |
I wish for those of us who don't need the larger page size they would offer an alternate kernel. |
totally agree with you! |
hi @Wetzel402 interesting moment why 3.17 Alpine Linux work under 32k and 4K Page size but 3.18 with 4 K Page Size only. |
I recently picked up an x86 based 8 bay QNAP NAS and will be migrating this weekend. I can keep my old unit for now to continue troubleshooting this problem. If I run |
Will be better if this will be armv7 based NAS with 4K page size. I will try ask about this my friends because they have TS-131K with page size 4K and worked Home Assistant with Alpine 3.18 |
Hi @Wetzel402 Alpine Linux 3.18 for TS-131K with 4K page size
Alpine Linux 3.17 from TS-231P with 32K page size
|
Additional info from the musl team...
|
Hello together, Building from the docker file by @Wetzel402 leads to starting image but it will throw some errors and the mobile app isn't working.
After this I tried to build it against the last Version of 2023 and figured out that it can't get build because of the outdated rustc needed for orison. I tried an orjson wheel from piwheels and it was build successfully but now when starting the container I got following error and it won't start:
Do you have any clue how to get those dependencies satisfied? I tried to install those dependencies at the end of the docker file:
Edit: |
What version of Alpine ? |
Docker image: Zcat:
|
Try create simple minimal container of Alpine Linux 3.17 5Mb size from Docker hub. dont forget mount /config to config volume.
Wait until home assistant build needed dependencies for first start (it could take some time) |
In my experience any version >2023.10.3 will fail to build on Alpine 3.17 due to dependency issues. Until we can get Alpine 3.18+ running on QNAP with 32k page size we are dead in the water. Feel free to help over on the Gitlab issue to resolve the problem. |
Is running Alpine 3.18+ on QNAP with 32k page size reached to dead end or is there still some hope left? |
I no longer have the strength. I'm tired of fighting. Of course you need to write to the Alpine developers about supporting containers for ARMs with a page size of 32k |
Building 3.18-stable packages under Apline 3.17
And i get fully working musl, glib and busybox QNAP with 32k page size
In same way you could build and install other packages from 3.18-stable source localy. Also for experiments i propose use static apk and with key --no-self-upgrade And if something wrong for example after command You always could rollback with command |
Hi, thanks. Had an hour to kill, gived it os hot building 3.18-stable packages under Apline 3.17 |
Hi @Mactomik For example
If You want we could try to work together with anydesk |
Hi @magicse I am kind of monkey repeating steps described here with not that clear undeststanding linux packet building and dependency issues with the aim of getting more up to date HA (I have currently 2023.10.3) working on my 431-xeu 32k system page size. Can you comment now (with the new ability to build 3.18 packages) is my goal of getting more up to date HA running any closer than before and if yes what would be the next steps? I thoght of taking Wetzel402 docker file packages installed on alpine 3.17, buld them from 3.18 and see if this get me anywhere. Does this make any sense? Noted that HA requires python 3.12 and alpine 3.18 has python 3.11 package so the latest HA would be out of reach for me even with alpine 3.18 built packages? |
hi @Mactomik If you want to compile the entire packages repository (build all packages) then you can use the following command.... taking into account that the user is magic.
also python 3.12 you could build by yourself. Somewhere above in this post I posted commands for compiling Python. Also i try experiment in emulation on x86 like this
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
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
The text was updated successfully, but these errors were encountered: