From 9589feb2969e4692c4905210af015f6d72e63ed6 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 23 Apr 2026 15:05:47 +0200 Subject: [PATCH] fix(infra): mana-web COPY + research URL + Umami version pin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three edge-level fixes applied live to the Mac Mini today, now committed so the canonical state matches: 1. apps/mana/apps/web/Dockerfile: add COPY for @mana/shared-crypto (added recently as a workspace dep but the Dockerfile missed it, so pnpm install failed with ERR_PNPM_WORKSPACE_PKG_NOT_FOUND on every rebuild — same class as the shared-types / shared-ai / shared-rss fixes earlier today). 2. docker-compose.macmini.yml (mana-web service): set PUBLIC_MANA_RESEARCH_URL + PUBLIC_MANA_RESEARCH_URL_CLIENT. Without this pair the SSR-injected window.__PUBLIC_MANA_RESEARCH_URL__ was empty and research fetches 404'd against the current origin. 3. docker-compose.macmini.yml (umami service): pin image to postgresql-v2.18.0. The rolling `postgresql-latest` tag jumped to Umami 3.1.0 (Next.js 16) which crashed the container on every POST /api/send — browser page loaders hung up to 10s on the failing tracker request. v2.18.0 is the last known-stable v2; DB schema is still v2-compatible so the downgrade is clean. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/mana/apps/web/Dockerfile | 1 + docker-compose.macmini.yml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/mana/apps/web/Dockerfile b/apps/mana/apps/web/Dockerfile index 256fd37ac..9e1d061eb 100644 --- a/apps/mana/apps/web/Dockerfile +++ b/apps/mana/apps/web/Dockerfile @@ -18,6 +18,7 @@ COPY packages/local-llm ./packages/local-llm COPY packages/local-stt ./packages/local-stt COPY packages/shared-llm ./packages/shared-llm COPY packages/shared-ai ./packages/shared-ai +COPY packages/shared-crypto ./packages/shared-crypto RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \ pnpm install --no-frozen-lockfile --ignore-scripts diff --git a/docker-compose.macmini.yml b/docker-compose.macmini.yml index 308f04cac..c39c4d0c5 100644 --- a/docker-compose.macmini.yml +++ b/docker-compose.macmini.yml @@ -935,6 +935,13 @@ services: PUBLIC_MANA_LLM_URL_CLIENT: https://llm.mana.how PUBLIC_MANA_EVENTS_URL: http://mana-events:3065 PUBLIC_MANA_EVENTS_URL_CLIENT: https://events.mana.how + # mana-research — async web-research provider orchestration. + # Browser hits /research/* endpoints directly; SSR uses the + # internal docker-network URL. Without this pair, the SSR- + # injected window.__PUBLIC_MANA_RESEARCH_URL__ is empty string + # and research fetches fall back to the current origin (404). + PUBLIC_MANA_RESEARCH_URL: http://mana-research:3068 + PUBLIC_MANA_RESEARCH_URL_CLIENT: https://research.mana.how # mana-ai background Mission Runner. Browser calls the audit # endpoint (/api/v1/me/ai-audit) to render the Workbench # "Datenzugriff" tab. SSR doesn't hit this service directly. @@ -1247,7 +1254,14 @@ services: start_period: 10s umami: - image: ghcr.io/umami-software/umami:postgresql-latest + # Pinned away from postgresql-latest on 2026-04-23. The rolling + # tag jumped to Umami 3.1.0 (Next.js 16) and started crashing the + # container on every POST /api/send — page loaders hung on the + # failing tracker request. v2.18.0 is the last known-stable v2. + # Rolling back to v2 was safe here because the schema is shared + # across 2.x. If you bump to v3 again, verify the DB migration + # path and test /api/send with a real POST before committing. + image: ghcr.io/umami-software/umami:postgresql-v2.18.0 container_name: mana-mon-umami restart: always mem_limit: 256m