Repository navigation
Description
π Reproduction steps
- Run a self-hosted Appwrite instance on 1.9.6 using the separate worker topology (one container per queue).
- Upgrade to 2.0.0 using the standard upgrade command:
docker run -it --rm
--volume /var/run/docker.sock:/var/run/docker.sock
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw
--entrypoint="upgrade"
appwrite/appwrite:latest - Upgrade completes successfully, all containers report healthy,
docker compose psshows appwrite-worker-builds, exc1 (openruntimes/executor), and orchestrator all running. - Trigger a deployment for any existing function (in this case, redeploying an existing Node.js function).
- Deployment stays in "waiting" indefinitely and never transitions to "building" or "ready".
π Expected behavior
The function deployment should build and transition to "ready" as it did prior to the 2.0.0 upgrade.
π Actual Behavior
The deployment never leaves "waiting". Logs from the orchestrator container show the job being created and dispatched, but the sidecar responsible for fetching the deployment artifact fails immediately:
{"time":"2026-09-07T23:01:06.47738694Z","level":"INFO","msg":"Job created","service":"orchestrator","backend":"docker","jobId":"myproject-abc123def456-build","image":"openruntimes/node:v5-22"}
{"time":"2026-09-07T23:01:06.477530629Z","level":"INFO","msg":"HTTP request","service":"orchestrator","backend":"docker","method":"POST","path":"/v1/jobs","status":202,"duration":1029525356}
{"time":"2026-09-07T23:01:06.644174774Z","level":"INFO","msg":"HTTP request","service":"orchestrator","backend":"docker","method":"POST","path":"/internal/jobs/myproject-abc123def456-build/artifact","status":202,"duration":192995}
{"time":"2026-09-07T23:01:07.070865228Z","level":"ERROR","msg":"Sidecar exited before inputs completed","service":"orchestrator","backend":"docker","sidecarID":"007e6811add61263ab9ed3f74622d5133ed8e47fe123e166a9737f8ed6dd0b45","reason":"sidecar exited before inputs completed: {"time":"2026-09-07T23:01:06.646756165Z","level":"ERROR","msg":"Sidecar failed","error":"pre-job artifact processing failed: failed to download file: Get \"https://appwrite/v1/functions/myFunction/deployments/abc123def456/download\\\": dial tcp 172.22.0.22:443: connect: connection refused","mode":"combined"}"}
orchestrator | {"time":"2026-09-07T23:01:07.891518378Z","level":"WARN","msg":"Delivery failed","service":"orchestrator","backend":"docker","component":"dispatcher","destination":"appwrite","type":"orchestrator.job.exit","error":"HTTP 500"}
The job-sidecar is attempting to download the build artifact over HTTPS on the internal Docker network hostname appwrite, but the appwrite container only exposes port 80 internally (TLS is terminated externally at Traefik). This connection is refused every time, since nothing listens on port 443 at that internal address.
Root cause appears to be _APP_OPTIONS_FORCE_HTTPS, which was set to "enabled" (the documented default). This variable is documented as deprecated since 1.7.0 and intended to affect external API redirects/HSTS headers, but it appears to also be inherited when the new orchestrator/sidecar pipeline (introduced in 2.0.0) constructs the internal artifact-download URL for the worker-builds β orchestrator β sidecar flow.
WORKAROUND: Setting _APP_OPTIONS_FORCE_HTTPS="disabled" in .env and recreating containers (docker compose up -d) resolves the issue immediately β deployments build and complete normally afterward.
This is likely to affect any self-hosted instance upgrading to 2.0.0 with the documented default of FORCE_HTTPS=enabled, regardless of worker topology (separate or combined), since the failure is in artifact-fetch logic rather than anything topology-specific.
π² Appwrite version
Different version (specify in environment)
π» Operating system
Linux
π§± Your Environment
Self-hosted version 2.0.0,
Docker Compose,
separate worker topology (one container per queue),
upgraded from 1.9.6. MariaDB backend. openruntimes/executor:0.29.0,
orchestrator:1.9.2 (ghcr.io/open-runtimes/orchestrator/orchestrator).
π Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
π’ Have you read the Code of Conduct?
- I have read the Code of Conduct
Activity
animesh68 commentedon Sep 8, 2026
Thanks for the detailed root-cause writeup β this matches what I'd expect from
_APP_OPTIONS_FORCE_HTTPSbleeding into the internal artifact-download URL construction in the orchestrator/sidecar pipeline. I'd like to pick this up: fix the internal artifact URL to always usehttp://(or a dedicated internal-endpoint setting) regardless of_APP_OPTIONS_FORCE_HTTPS, so it stops depending on the external TLS-termination flag. Could someone assign this to me?fix(compute): use http for internal jobs endpoint fallback