[Bug]: Raw compose install fails every deploy without a host channel ("Cannot read Openship edge routes")
Existing issue
- [x] I have searched the existing issues and found no duplicate.
#509 is the closest match. It was closed on 2026-09-16 with the note that local compose targets now use the mounted Docker socket and the shared container edge. This report shows a different error on v0.9.6.
Problem description
On a self-hosted docker/docker-compose.yml install with no host channel, every deploy fails at the routing step. The image builds, but no container starts:
Cannot read Openship edge routes: neither Docker nor bare OpenResty inventory is available
I expected the deploy to work. The comment in docker/docker-compose.yml says "ordinary deploys keep working over the socket" when the channel isn't provisioned, and HOST_CHANNEL_UNAFFECTED in packages/core/src/host-channel.ts says the same. The deploy log also says the deploy will skip host-side edge and routing steps, and then it fails on one.
Adding the host channel fixed it. On the same install, with OPENSHIP_HOST_SSH_* and OPENSHIP_HOST_KEY_PATH set and the api container recreated, the same app deployed, redeployed, rolled back and deleted cleanly.
Steps to reproduce
- On a clean Ubuntu 24.04 VM, clone tag
v0.9.6and runcp .env.example .env. - Set the secrets,
OPENSHIP_VERSION=0.9.6,OPENSHIP_BIND_ADDR=<lan ip>andOPENSHIP_PUBLIC_URL=http://<lan ip>:3001. Leave theOPENSHIP_HOST_SSH_*settings unset. - Run
docker compose --env-file .env -f docker/docker-compose.yml up -d. All five containers come up, includingopenship-edge. - Create the first admin and a project on the local server, using a small Node app uploaded as a folder, with
publicEndpoints: []. - Deploy it. I drove this through the MCP tools (
post_projects_folder_session,post_projects_ensure,post_deployments_build_access).
The deploy fails after the image build. A redeploy with reuseBuild: true and a new deploy with routeStrategy: loopback-port failed with the same error.
Environment
- OpenShip version/commit: v0.9.6 (
2e7d98c7), imagesghcr.io/oblien/openship-*:0.9.6 - Deployment method:
docker/docker-compose.yml, rootful Docker - Operating system: Ubuntu 24.04.5, Docker 29.1.3, Compose 2.40.3
- Browser (if applicable): none, API and MCP only
Logs and screenshots
→ Deploy target: server (server 61bf9d16) · runtime: sandboxed (Docker container)
Host operations are unavailable on this deploy target, so this deploy skips them: live host port-occupancy scans and host-side edge/routing steps.
Deployment errorMessage:
Cannot read Openship edge routes: neither Docker nor bare OpenResty inventory is available
The local server reports this from get_system_servers:
"hostChannel": { "ok": false, "channel": "not_configured" }
Additional context
This part comes from reading the source, and I did not trace it at runtime. Port allocation goes through listLoopbackUpstreamPortsStrict and then scanOpenshipEdgeStrict. If that scan gets the unavailable host executor, every command refuses, detectEdgeContainer returns null, dumpResolvedConfig finds nothing, and the scan throws the error above.
I did not run v0.9.10. docker/docker-compose.yml, packages/adapters/src/system/proxy/import/nginx.ts, packages/adapters/src/system/proxy/api.ts and packages/adapters/src/system/executor.ts are byte-identical between v0.9.6 and v0.9.10, so it may still reproduce there.
I installed with raw compose and did not test openship up, which provisions the channel.