Warning when starting on Raspberry Pi 4
CheckeredFlag opened this issue · 7 comments
Output of docker inspect plex --format='{{index .Config.Labels.version}}'
:
1.22.0.4163-armhf
Description
When starting the jaymoulin/plex
container, I get the following warning:
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
Steps to reproduce the issue:
- docker pull jaymoulin/plex
Using default tag: latest
latest: Pulling from jaymoulin/plex
e68f2aaec91c: Pull complete
adbe693323bb: Pull complete
23274cdb9dfb: Pull complete
dff502af9cf2: Pull complete
0a9e50e11ba1: Pull complete
Digest: sha256:65ef6f42164113178dfc03ede6e4f436e83b5ed7bcea705d2cb4423a583d865e
Status: Downloaded newer image for jaymoulin/plex:latest
docker.io/jaymoulin/plex:latest
- docker run -d --restart=always --name plex -v /srv/media:/media -v /srv/media:/root/Library --net=host jaymoulin/plex
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
4f5eadd4c4e976ebc296a9640653d27a118343e3119947712589db4f8056aa2e
Describe the results you received:
A warning about the wrong architecture
Describe the results you expected:
No warning
Additional information you deem important (e.g. issue happens only occasionally):
This docker issue is interesting.
I have worked around this by doing:
docker pull --platform=linux/arm/v7
docker run -d --restart=always --name plex -v /srv/media:/media -v /srv/media:/root/Library --net=host --platform=linux/arm/v7 jaymoulin/plex
This has silenced the warning. I wonder if I've been running a 64 bit version when it should really be 32 bit though I can't understand how it would even work at all.
Perhaps this will help my stability issues as Plex has stopped responding and I've needed to reboot the server about once a week.
Jay, do you still not have a RPI4 to test with? If not, I'll buy you one - how much are they over there?
Rpi4 should be an arm64 architecture. It looks like you installed a special revision on your RPI. armhf should be used for RPI3. Maybe you can try installing Raspberry PI OS which should be more adapted (https://www.raspberrypi.org/software/operating-systems/).
The result of this command : uname -m
should give you something like aarch64
. This article may help you achive this : https://medium.com/for-linux-users/how-to-make-your-raspberry-pi-4-faster-with-a-64-bit-kernel-77028c47d653
Maintaining an application (answering questions, fixing bugs, adding new features...) is a hard and time consuming process. If you find this product useful and all the effort I put crafting this, I strongly encourage you to donation to help me being able to continue maintaining this and creating other great things on those platforms .
No, I installed the recommended Raspberry Pi OS which is 32bit so uname -m
yields armv7l
. The 64bit version is still in beta and not yet recommended.
Are you using the beta OS? I was reluctant to use an unrecommended OS with an app as complex as Plex.
As you already know, I do not possess RPI4 so i'm not using the arm64 version on my own. Nevertheless, I was able to test RPI4 when crafting the Dockerfiles. Nothing should have changed since then but the different plex upgrades.
My info:
$> docker inspect mop-rpi_plex_1 --format='{{index .Config.Labels.version}}'
1.22.0.4163-armhf
$> uname -a
Linux plexbox 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux
$> cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 44.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 44.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 44.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 44.80
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Hardware : BCM2835
Revision : a02082
Serial : 00000000c6d98919
Model : Raspberry Pi 3 Model B Rev 1.2
Your issue here relies on the fact docker does not identify the correct image for your architecture, therefore, using an incompatible docker image. Had a similiar issue for RPI zero on jaymoulin/docker-jdownloader#22.
You already fixed it by specificly declare use of armhf instead of arm64. You can check that there is nothing for me to fix with this very file: https://github.com/jaymoulin/docker-plex/blob/master/manifest.yml
Yes, it indeed sounds like it's a docker bug. I'm hoping that the workaround I learned will be helpful to someone else.
BTW, I sent you some funds that may help towards a RPI4...or lots of coffee! :)
Cheers!
Thank you very very much for your support <3 This really helps me working on stuff
This may be related as-well docker/for-linux#1025