ollama-pdf-bot
ollama-pdf-bot copied to clipboard
Platform Mismatch Error for ARM Platform
Issue: Platform Mismatch Error for ARM Platform
Description:
I am encountering an error related to platform mismatch when trying to run the application. The requested image platform is linux/amd64, while the host platform is linux/arm64/v8, and no specific platform is requested. Below is the error message I received:
The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Additionally, the application logs contain the following output:
0.0s
Attaching to app-1, ollama-1
ollama-1 | 2024/12/10 03:23:47 routes.go:1195: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/root/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://*] OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
Steps to Reproduce:
- Attempt to run the app on a machine with
/arm64/v8architecture. - Notice that the platform mismatch occurs, as the requested image is
linux/amd64.
Expected Behavior:
The app should be able to detect and handle platform differences, allowing for successful execution on ARM-based platforms, or provide an option to explicitly set the platform.
Environment:
- Host Platform:
linux/arm64/v8 - Requested Image Platform:
linux/amd64 - Docker Version: Docker version 27.2.0, build 3ab4256
- OS Version: MacOS 15.2