mirror of
https://github.com/ownpilot/OwnPilot.git
synced 2026-04-25 07:15:51 +03:00
[PR #5] [CLOSED] fix: Docker startup, demo mode, and dev environment errors #8
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OwnPilot#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ownpilot/OwnPilot/pull/5
Author: @UX1907
Created: 2/24/2026
Status: ❌ Closed
Base:
main← Head:fix/docker-startup-and-dev-errors📝 Commits (1)
aab736dfix: Docker startup, demo mode, and dev environment errors📊 Changes
8 files changed (+64 additions, -42 deletions)
View changed files
📝
Dockerfile(+2 -2)📝
docker-compose.yml(+1 -1)📝
packages/cli/src/commands/start.ts(+26 -0)📝
packages/core/src/workspace/storage.ts(+5 -2)📝
packages/gateway/src/index.ts(+3 -0)📝
packages/gateway/src/routes/agent-service.ts(+2 -15)📝
packages/gateway/src/routes/database.ts(+24 -21)📝
packages/ui/src/api/endpoints/settings.ts(+1 -1)📄 Description
Summary
Fixes multiple issues preventing OwnPilot from working after a fresh install, both in Docker and from-source development modes.
localhostto IPv6::1but server binds IPv40.0.0.0. Changed to127.0.0.1.ServiceRegistry not initialized— Docker CMD used CLIstartcommand which skips full service registration (23 services). Changed entrypoint topackages/gateway/dist/server.js. Also added ServiceRegistry init to CLIstartas fallback.isDemoMode()only checked a hardcoded list of 11 providers (openai, anthropic, etc.). Providers like MiniMax were ignored. Changed toconfigured.size > 0.EACCES: permission denied, mkdir '/data'—IsolatedStoragedefaulted to/data/workspaces(a Docker-only path). Changed to platform-specific XDG/AppData directories.ADMIN_KEYrequired in dev mode — Database write operations blocked by admin key guard even for local dev UI. Skip guard whenNODE_ENV=development./settings/providersbut gateway route is/providers.Closes #4
Test plan
docker compose --profile postgres up -d --build— both containers healthyhttp://localhost:8080— dashboard loads without errorspnpm dev— no ServiceRegistry or EACCES errors🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.