Install on Orangepi3_LTS
Description
I tried to install overleaf in my OrangePi3_LTS. I followed the steps but met some problems.
Steps to Reproduce
- follow the Quick-Start Guide and exec
sudo bin/up.
Observed Behaviour
orangepi@orangepi3-lts:~/overleaf-toolkit$ sudo bin/up
[+] Running 3/4
⠿ Network overleaf_default Created 0.2s 0.5s
⠿ Container mongo Created 0.5s 0.1s
[+] Running 4/5dis ⠿ Network overleaf_default Created 0.2s ⠿ Container mongo Created 0.5sthe detected host pla ⠿ Container redis Created 0.5s
⠿ Container sharelatex Created 0.2s
⠋ sharelatex The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
Attaching to mongo, redis, sharelatex
redis | 1:C 26 Feb 2023 15:38:48.195 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis | 1:C 26 Feb 2023 15:38:48.195 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
redis | 1:C 26 Feb 2023 15:38:48.195 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis | 1:M 26 Feb 2023 15:38:48.201 * Running mode=standalone, port=6379.
redis | 1:M 26 Feb 2023 15:38:48.201 # Server initialized
redis | 1:M 26 Feb 2023 15:38:48.201 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis | 1:M 26 Feb 2023 15:38:48.201 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis | 1:M 26 Feb 2023 15:38:48.206 * DB loaded from disk: 0.000 seconds
redis | 1:M 26 Feb 2023 15:38:48.206 * Ready to accept connections
mongo |
mongo | WARNING: MongoDB 5.0+ requires ARMv8.2-A or higher, and your current system does not appear to implement any of the common features for that!
mongo | see https://jira.mongodb.org/browse/SERVER-55178
mongo | see also https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
mongo | see also https://github.com/docker-library/mongo/issues/485#issuecomment-970864306
mongo |
mongo exited with code 0
mongo |
mongo | WARNING: MongoDB 5.0+ requires ARMv8.2-A or higher, and your current system does not appear to implement any of the common features for that!
mongo | see https://jira.mongodb.org/browse/SERVER-55178
mongo | see also https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
mongo | see also https://github.com/docker-library/mongo/issues/485#issuecomment-970864306
mongo |
dependency failed to start: container for service "mongo" is unhealthy
Technical Info
- CPU: Allinwinner H6 Cortex-A53 ARMv8-a
- Operating System and version (desktop or mobile): Debian GNU/Linux 11 (bullseye)
Analysis
Problems seems caused by Mongo and sharelatex.
-
Mongo:
WARNING: MongoDB 5.0+ requires ARMv8.2-A or higher, and your current system does not appear to implement any of the common features for that! dependency failed to start: container for service "mongo" is unhealthy.
MongoDB 5.0+ doesn't support my device, but Mongo's version is 4.4, I don't know why.
-
sharelatex
sharelatex The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
It does seem that prebuilt MongoDB v5 requires at least ARMv8.2-A (Cortex-A55). This post suggests workarounds of either building your own MongoDB v5 or using a prebuilt MongoDB v4.4.
However, as you say, it should be using MongoDB v4.4 already. Could you run bin/doctor and find the value of MONGO_IMAGE?
For the sharelatex container, it should be possible to build an arm64 image by following these instructions.