Skip to content

Download of backend crashes on Mac OS #8016

@poplk

Description

@poplk

LocalAI version:

v3.9.0, installed on my mac with #6268 workaround

Environment, CPU architecture, OS, and Version:

Darwin MACAPOSTOLYM1.local 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:32:47 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T8103 arm64

Describe the bug

when trying to install a backend via the UI (or when the backend is tried to be downloaded automaticly I think it does the same) I get this error displayed in the UI : "Error installing backend "metal-whisper": not a valid backend: run file not found "/Users/myuser/.localai/backends/metal-whisper/run.sh""

If I look in /Users/myuser/.localai/backends/, I can see that metal-whisper has been created, but it's completly empty

To Reproduce
Install on mac, try to download a model / a backend

Expected behavior
things working like normal

Logs
In fact it seems that it's linked to the launcher app on the mac launching on 8080 by default. I can access on 127.0.0.1:8080, but then dowloading fails. If instead of launching throught the app I launch the bin with --address=":8080", it tells me that the port is already in use. So I tried --address=":8081", it launches and now the backend are downloading properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions