openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

cant install on docker

Open gitmeatarru opened this issue 5 months ago • 5 comments

hello

cant install on vps over docker its stacks on this line (time continue ticks ) and finally closed

Image

how to install this? i cant setup it on vps

Implementation Plan

Triage Assessment

  • User reports Docker installation stalls and eventually closes. The attached screenshot shows a docker compose log that times out.
  • No reproduction steps, environment details, or configuration provided. No maintainer response yet.
  • Potential causes: missing environment variables (SECRET_KEY < 32 chars, DATABASE_URI, etc.), port conflicts, or Apple Silicon emulation issue with the openhuman-core Rust crate (see CLAUDE.md: "openhuman-core does not build under Docker on Apple Silicon").

Proposed Scope

  • In-scope: determine the exact failure cause, add documentation to help users self-diagnose.
  • Non-goal: comprehensive Docker onboarding tutorial.

Implementation Steps (for Reporter or Maintainer)

  1. Reporter to provide — exact docker compose up command, output of the last ~20 lines before timeout, docker compose version, host OS/arch, and .env contents (redacted).
  2. Diagnose — match the stall point against known failure modes: (a) if Apple Silicon (arm64), the openhuman-core whisper NEON compile error applies — workaround is OPENHUMAN_CORE_IMAGE=linux/amd64 or native build; (b) if missing SECRET_KEY, the backend will crash-loop with a config error (check logs); (c) if port collision, remap via .env.
  3. Fix — update DOCKER.md or README with a troubleshooting section covering the three known failure modes: Apple Silicon, missing config, port collisions.
  4. Progress logs — add periodic "still waiting for X (elapsed Ys)" log lines to docker healthcheck scripts so future stall reports are self-diagnosing.

Verification

  • Reproducer (from reporter) passes with the documented workaround.
  • Fresh clone + cp .env.example .env + docker compose up succeeds on both amd64 and arm64 (with Apple Silicon workaround noted).

gitmeatarru avatar Jun 21 '26 08:06 gitmeatarru

Thanks for the report. To help us reproduce and fix this, could you share the following?

1. System specs

  • VPS provider and plan (RAM, CPU, OS/distro, architecture)
  • Docker version (docker --version) and compose version (docker compose version)
  • Full docker compose command you ran

2. The log output

  • The full terminal output from the point of stall (the line that kept ticking before it closed)
  • Output of docker stats or free -h taken while the build was stalled — this helps rule out OOM

3. Is the issue still happening?

  • Are you still blocked on this, or did you find a workaround?

In the meantime: if you are on a VPS with less than 4 GB RAM, the Rust compilation step is very likely hitting an OOM kill (the kernel silently terminates the build without a clear error). The fastest path is to pull the pre-built image rather than building from source:

docker pull ghcr.io/tinyhumansai/openhuman-core:latest

This skips the cargo build entirely. If that resolves it, let us know and we will update the docs to make this the recommended path for low-RAM VPS setups.

YellowSnnowmann avatar Sep 04 '26 08:09 YellowSnnowmann

Still open after ~3 months with no reporter response — recommend closing as not-reproducible, with the workaround documented first

No further information has arrived since my request for specs and logs on this thread, so the original report still cannot be diagnosed: no VPS specs, no Docker version, no log output, no .env. The attached screenshot shows a stall but not where.

The OOM hypothesis still looks most likely and is now easier to act on. docker-compose.yml builds from source by default:

services:
  openhuman-core:
    build:
      context: .
      dockerfile: Dockerfile
    image: openhuman-core:local

so docker compose up on a VPS runs a full cargo build of the Rust core. On a small instance the kernel OOM-killer terminates that silently — which presents exactly as described: a line that keeps ticking, then the process closing with no error.

Correcting something from my earlier comment: I said to pull a pre-built image, and the escape hatch is in fact already documented — docker-compose.yml:14-15:

The image is built from the repo Dockerfile. To pin a published image instead of building, replace build: with image: ghcr.io/.../openhuman-core:<tag>.

and ghcr.io/tinyhumansai/openhuman-core does exist as a published container package. So the workaround is real and supported; it is just written with an elided path in a comment rather than as a documented alternative path, which is easy to miss.

Two small follow-ups worth splitting out, independent of this report

Both come from the triage plan and neither needs the reporter:

  1. A troubleshooting section for Docker installs. There is no DOCKER.md, and README.md carries no Docker troubleshooting. The three known failure modes — low-RAM OOM during the Rust build, missing required config (BACKEND_URL, OPENHUMAN_CORE_TOKEN), and port collisions on ${OPENHUMAN_CORE_PORT:-7788} — are all diagnosable in advance and would have let this reporter self-serve. Spelling out the pre-built-image path with its full tag belongs there too.
  2. A minimum-RAM note plus progress logging. A stated RAM floor for building from source would pre-empt the whole class of report, and periodic "still building, elapsed Ns" output would make a future stall self-describing rather than a screenshot of a spinner.

Recommendation

Close as not-reproducible. Three months without the information needed to diagnose it, and the most probable cause has a documented workaround. Closing does not lose anything: if the reporter returns with logs it can be reopened immediately, and the two follow-ups above are more useful as their own issues since they are actionable now and this one is not.

@gitmeatarru — if you are still blocked, the fastest path is to skip the source build entirely by replacing the build: block in docker-compose.yml with image: ghcr.io/tinyhumansai/openhuman-core:latest. If you would rather build, free -h during the stall and the last ~20 lines of output would confirm or rule out the OOM theory in one go.

YellowSnnowmann avatar Sep 11 '26 09:09 YellowSnnowmann

Triage: needs opinion — “cant install on docker” needs a maintainer decision on product scope/priority or fresh reproduction evidence before its status can be settled. Please advise whether to pursue, narrow, or close it.

senamakel avatar Oct 09 '26 17:10 senamakel

Following up on this one. From the screenshot, the install was still in the cargo build step (over 5 minutes) when it stopped. That's the Rust core compiling from source, which needs a lot of memory and usually gets killed silently on small VPS plans.

The easier path now is to skip the build and use the published image. It's documented in the cloud deploy guide:

docker pull ghcr.io/tinyhumansai/openhuman-core:latest

or replace the build: block in docker-compose.yml with image: ghcr.io/tinyhumansai/openhuman-core:latest. The image is amd64; for an arm64 VPS the guide covers the release tarball.

If you still have trouble, please share your VPS RAM/CPU/architecture, docker --version, and the last ~20 lines of output (plus free -h taken during the stall). If we don't hear back we'll close this, and it can be reopened any time.

M3gA-Mind avatar Oct 19 '26 06:10 M3gA-Mind

Following up once more. If you still want to run OpenHuman on your VPS, the quickest path is to skip the source build and use the published image (ghcr.io/tinyhumansai/openhuman-core), as described in the cloud deploy guide (docs/gitbooks/en/features/cloud-deploy.md). The default docker-compose.yml compiles the Rust core from source, which needs a lot of memory and tends to get killed on small VPS plans.

If it still fails with the published image, please share your VPS RAM and CPU architecture, docker compose version, and the last ~20 lines of output. If we don't hear back in a couple of weeks, we'll close this, and you're welcome to reopen it anytime.

M3gA-Mind avatar Nov 16 '26 16:11 M3gA-Mind