[GH-ISSUE #143] [Issue]: Missing OpenSSL (libssl3) - Docker #41

Closed
opened 2026-10-20 17:24:24 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @Talref on GitHub (Apr 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/143

Summary

The Docker image is missing OpenSSL 3 runtime libraries (libssl.so.3, libcrypto.so.3), causing the llama sidecar to fail at startup.

Expected behavior

The sidecar (llama-server) should start successfully when the container is launched.

Actual behavior

The sidecar exits immediately with:

error while loading shared libraries: libssl.so.3: cannot open shared object file

Exit code: 127

Steps to reproduce

  1. Run the container using the provided Docker image
  2. Wait for the sidecar to initialize
  3. Observe failure in logs

Additional details:

  • Base image: Debian 12 (bookworm)

  • libssl3 is not installed in the container

  • Running ldd llama-server shows:

    libssl.so.3 => not found
    libcrypto.so.3 => not found
    

Workaround:
Installing libssl3 inside the container resolves this specific error.

Environment

  • Install: straight compose file (no repo cloned)
  • OS + version: Arch (headless)
Originally created by @Talref on GitHub (Apr 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/143 ## Summary The Docker image is missing OpenSSL 3 runtime libraries (`libssl.so.3`, `libcrypto.so.3`), causing the llama sidecar to fail at startup. ## Expected behavior The sidecar (`llama-server`) should start successfully when the container is launched. ## Actual behavior The sidecar exits immediately with: ``` error while loading shared libraries: libssl.so.3: cannot open shared object file ``` Exit code: 127 ## Steps to reproduce 1. Run the container using the provided Docker image 2. Wait for the sidecar to initialize 3. Observe failure in logs Additional details: * Base image: Debian 12 (bookworm) * `libssl3` is not installed in the container * Running `ldd llama-server` shows: ``` libssl.so.3 => not found libcrypto.so.3 => not found ``` Workaround: Installing `libssl3` inside the container resolves this specific error. ## Environment - Install: straight compose file (no repo cloned) - OS + version: Arch (headless)
bsakaguchi 2026-10-20 17:24:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Talref commented on GitHub (Apr 20, 2026):

Additional finding:

The image is also missing libgomp1, which is required by the ggml CPU backend.

After installing only libssl3, the sidecar still fails during model loading with:

make_cpu_buft_list: no CPU backend found

Running ldd on the CPU backend shows:

libgomp.so.1 => not found

Installing both dependencies resolves the issue completely:

apt-get install -y libssl3 libgomp1

After this, the sidecar starts and loads the model correctly, e.g.:

/app/data/sidecar-runtime/b8852-linux-x64-cpu/llama-b8852/llama-server \
  -m /app/data/models/gemma-4-E2B-it-Q8_0.gguf \
  --host 127.0.0.1 \
  --ctx-size 8192 \
  -ngl 0

Conclusion:

The container image is missing required runtime dependencies (libssl3, libgomp1) needed by the bundled llama sidecar.

<!-- gh-comment-id:4280719067 --> @Talref commented on GitHub (Apr 20, 2026): ## Additional finding: The image is also missing `libgomp1`, which is required by the ggml CPU backend. After installing only `libssl3`, the sidecar still fails during model loading with: ``` make_cpu_buft_list: no CPU backend found ``` Running `ldd` on the CPU backend shows: ``` libgomp.so.1 => not found ``` Installing both dependencies resolves the issue completely: ``` apt-get install -y libssl3 libgomp1 ``` After this, the sidecar starts and loads the model correctly, e.g.: ``` /app/data/sidecar-runtime/b8852-linux-x64-cpu/llama-b8852/llama-server \ -m /app/data/models/gemma-4-E2B-it-Q8_0.gguf \ --host 127.0.0.1 \ --ctx-size 8192 \ -ngl 0 ``` ## Conclusion: The container image is missing required runtime dependencies (`libssl3`, `libgomp1`) needed by the bundled llama sidecar.
Author
Owner

@Talref commented on GitHub (Apr 20, 2026):

After resolving the missing runtime dependencies, there is still an issue with how the sidecar startup is orchestrated.

The startup logic always includes a GPU-first attempt:

const plans = [{ gpuLayers: 999, label: "max GPU offload" }];

if (this.usesGpuRuntime(runtime)) {
  plans.push({ gpuLayers: 0, label: "CPU fallback" });
}

This means that gpuLayers: 999 is always attempted, regardless of runtime, and CPU fallback (gpuLayers: 0) is only added conditionally.
In the distributed Docker image the runtime is CPU-only (*-linux-x64-cpu), no GPU backend libraries are present.

Despite that the sidecar is still launched with -ngl 999, this flag alone is not the problem though, since llama can fall back to CPU usage automatically (tested in the container), but the startup arguments also include -sm none. From testing, this flag appears incompatible with CPU-only execution in this context, when combined with -ngl values, it fails to load llama.cpp.

I've managed to run llama building an image locally, but even if it's loaded and the port is busy I can't curl it properly. I'll make more tests when I have more time and update the issue. I won't be able to do a PR though, but I'll try to suggest a fix.

<!-- gh-comment-id:4282427826 --> @Talref commented on GitHub (Apr 20, 2026): After resolving the missing runtime dependencies, there is still an issue with how the sidecar startup is orchestrated. The startup logic always includes a GPU-first attempt: ``` const plans = [{ gpuLayers: 999, label: "max GPU offload" }]; if (this.usesGpuRuntime(runtime)) { plans.push({ gpuLayers: 0, label: "CPU fallback" }); } ``` This means that `gpuLayers: 999` is always attempted, regardless of runtime, and `CPU fallback (gpuLayers: 0)` is only added conditionally. In the distributed Docker image the runtime is CPU-only (*-linux-x64-cpu), no GPU backend libraries are present. Despite that the sidecar is still launched with `-ngl 999`, this flag alone is not the problem though, since llama can fall back to CPU usage automatically (tested in the container), but the startup arguments also include `-sm none`. From testing, this flag appears incompatible with CPU-only execution in this context, when combined with -ngl values, it fails to load llama.cpp. I've managed to run llama building an image locally, but even if it's loaded and the port is busy I can't curl it properly. I'll make more tests when I have more time and update the issue. I won't be able to do a PR though, but I'll try to suggest a fix.
Author
Owner

@ghost commented on GitHub (Apr 20, 2026):

Taking a look right now! Ty for the report

<!-- gh-comment-id:4282639019 --> @ghost commented on GitHub (Apr 20, 2026): Taking a look right now! Ty for the report
Author
Owner

@ghost commented on GitHub (Apr 20, 2026):

I believe this should already be fixed in the latest push to main (not 1.5.2 but an upcoming release)

<!-- gh-comment-id:4282682551 --> @ghost commented on GitHub (Apr 20, 2026): I believe this should already be fixed in the latest push to main (not 1.5.2 but an upcoming release)
Author
Owner

@SpicyMarinara commented on GitHub (Apr 20, 2026):

Yes, this is already addressed.

<!-- gh-comment-id:4283735254 --> @SpicyMarinara commented on GitHub (Apr 20, 2026): Yes, this is already addressed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#41
No description provided.