Skip to content

πŸ› Bug Report: Functions stuck in "waiting" after 1.9.6 β†’ 2.0.0 upgrade β€” orchestrator builds internal artifact URL with https instead of httpΒ #13519

Closed

Description

@catalystech

πŸ‘Ÿ Reproduction steps

  1. Run a self-hosted Appwrite instance on 1.9.6 using the separate worker topology (one container per queue).
  2. 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
  3. Upgrade completes successfully, all containers report healthy, docker compose ps shows appwrite-worker-builds, exc1 (openruntimes/executor), and orchestrator all running.
  4. Trigger a deployment for any existing function (in this case, redeploying an existing Node.js function).
  5. 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?

Activity

  1. added theissue type on Sep 8, 2026
  2. added
    product / databases
    product / functions
    product / self-hosted
    product / storage
    product / vcs
    on Sep 8, 2026
  3. animesh68 commented on Sep 8, 2026

    @animesh68

    Thanks for the detailed root-cause writeup β€” this matches what I'd expect from _APP_OPTIONS_FORCE_HTTPS bleeding 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 use http:// (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?

  4. added a commit that references this issue on Sep 10, 2026
    62fc87c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / databasesproduct / functionsproduct / self-hostedproduct / storageproduct / vcs

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions