Skip to content

Extend Mac Support to all backends #8225

@rodrigoalviani

Description

@rodrigoalviani

LocalAI version:
v3.10.1 (dmg)

Environment, CPU architecture, OS, and Version:
Darwin Kernel Version 25.2.0, Apple M1 Pro, Tahoe 26.2

Describe the bug
The error: 'Error installing backend "ANY BACKEND": not a valid backend: run file not found' occurs for every backend I attempt to install through the web interface. The models are being installed normally.

To Reproduce
Try to install any backend

Expected behavior
Successfully instalation

Logs
[10:14:11] STDOUT: Jan 26 10:14:11 INFO core/startup process completed!
[10:14:11] STDOUT: Jan 26 10:14:11 INFO LocalAI is started and running address="127.0.0.1:9001"
[10:14:15] STDOUT: Jan 26 10:14:15 INFO HTTP request method="POST" path="/api/backends/install/localai@metal-stablediffusion-ggml" status=200
[10:14:15] STDOUT: Jan 26 10:14:15 WARN installing backend backend="localai@metal-stablediffusion-ggml"
[10:14:15] STDOUT: Jan 26 10:14:15 INFO Using metal capability (arm64 on mac) env="LOCALAI_FORCE_META_BACKEND_CAPABILITY"
[10:14:15] STDOUT: Jan 26 10:14:15 INFO HTTP request method="GET" path="/api/backends/job/e9ced6f2-fab8-11f0-ad82-8a045046c4bf" status=200
[10:14:15] STDOUT: Jan 26 10:14:15 INFO Using metal capability (arm64 on mac) env="LOCALAI_FORCE_META_BACKEND_CAPABILITY"
[10:14:15] STDOUT: Jan 26 10:14:15 Run file not found runFile="/Users/xpto/.localai/backends/metal-stablediffusion-ggml/run.sh"
[10:14:15] STDOUT: Jan 26 10:14:15 error installing backend error=not a valid backend: run file not found "/Users/xpto/.localai/backends/metal-stablediffusion-ggml/run.sh" backend="localai@metal-stablediffusion-ggml"

Additional context
I also tried changing the server ports, but that didn’t solve the issue either

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions