Skip to content

fix: 6 installer/runtime bugs (P0 privacy-shield crash, P0 phase-13 false failure, P1-P3)#749

Merged
Lightheartdevs merged 7 commits intomainfrom
fix/installer-bugs-743-748
Apr 3, 2026
Merged

fix: 6 installer/runtime bugs (P0 privacy-shield crash, P0 phase-13 false failure, P1-P3)#749
Lightheartdevs merged 7 commits intomainfrom
fix/installer-bugs-743-748

Conversation

@Lightheartdevs
Copy link
Copy Markdown
Collaborator

Summary

Fixes 6 bugs found during install testing on .143, .199, and .213 builds.

P0 — Every install hits these

P1 — Bad UX

P2-P3 — Cosmetic/timing

Files changed

  • dream-server/extensions/services/privacy-shield/proxy.py — manual auth check
  • dream-server/install-core.sh — set +e around Phase 13
  • dream-server/installers/phases/08-images.sh — conditional time estimate
  • dream-server/installers/phases/11-services.sh — ComfyUI build warning
  • dream-server/installers/phases/12-health.sh — embeddings health check
  • dream-server/dream-preflight.sh — backend-gated GPU warning

Test plan

  • Privacy Shield: curl http://localhost:8085/health returns 200 without auth
  • Phase 13: install completes with warnings, not errors, even if a service is slow
  • NVIDIA+ComfyUI: shows "~25-40 min" warning
  • Embeddings: Phase 12 waits for embeddings before proceeding
  • Pull failure: message says "will attempt again during service startup"
  • AMD preflight: no NVIDIA runtime warning
  • bash -n passes on all modified shell scripts
  • python -m py_compile passes on proxy.py

Closes #743, closes #744, closes #745, closes #746, closes #747, closes #748

Lightheartdevs and others added 6 commits April 2, 2026 21:16
…uth check

Fixes #743. The Security() dependency with auto_error=False has version-
dependent behavior across FastAPI releases, causing a TypeError crash-loop
on /health and /stats endpoints. Replace with direct request.headers
parsing — works on all FastAPI versions, keeps secrets.compare_digest
for timing safety. Docker healthcheck gets 200 without auth.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #744. Phase 13 is informational (URLs, shortcuts, preflight
validation). Under set -euo pipefail, any stray non-zero exit code
(e.g., a crashing privacy-shield health probe, missing systemctl)
triggers the cleanup_on_error trap and prints "[ERROR] Installation
failed during phase: 13-summary" even though everything is running.

Wrap Phase 13 in set +e so summary-phase failures become warnings,
not installation aborts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #745. NVIDIA ComfyUI compiles from source (~25-40 min) while AMD
pulls a pre-built image (instant). The installer showed "~5-10 minutes"
for all backends. Now shows the longer estimate for NVIDIA+ComfyUI and
prints a clear warning before the build starts in Phase 11.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #746. Embeddings (TEI) was missing from Phase 12's health check
list. On first run, the model load takes 1-2 minutes, causing a brief
[BAD] status that self-resolves. Adding it to Phase 12 with 30 attempts
ensures the installer waits for embeddings before proceeding to summary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ng hint

Fixes #747. The old message "will retry on next start" was vague. Now
says "will attempt again during service startup" with a hint to check
network and disk space. The retry logic itself works correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #748. The NVIDIA Docker runtime warning fired on AMD Strix Halo
systems because the default backend fallback was "nvidia" when no GPU
was detected via sysfs. Changed default to "cpu", added explicit
elif/else branches so NVIDIA warnings only show for NVIDIA backends,
and added /dev/dri positive check for AMD. CPU mode gets a clean pass.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

Sensitive Files Detected

Trigger: Security-sensitive files detected: dream-server/installers/

Files flagged:

dream-server/installers/phases/08-images.sh
dream-server/installers/phases/11-services.sh
dream-server/installers/phases/12-health.sh

Extra human review is recommended for this PR.


Claude Code Review | Sensitive File Detection | ~$1.50

Fixes Ruff F401 lint error introduced by the manual auth refactor.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

Sensitive Files Detected

Trigger: Security-sensitive files detected: dream-server/installers/

Files flagged:

dream-server/installers/phases/08-images.sh
dream-server/installers/phases/11-services.sh
dream-server/installers/phases/12-health.sh

Extra human review is recommended for this PR.


Claude Code Review | Sensitive File Detection | ~$1.50

@Lightheartdevs Lightheartdevs merged commit d5bb2ab into main Apr 3, 2026
20 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment