Repository navigation
fix(compute): use http for internal jobs endpoint fallback - #13601
Merged
ArnabChatterjee20k merged 4 commits intoSep 10, 2026
Merged
ArnabChatterjee20k merged 4 commits into
ArnabChatterjee20k merged 4 commits into
Conversation
Function/site deployments stayed stuck in "waiting" after upgrading a self-hosted instance because the build orchestrator built the internal artifact download + callback URLs with https:// whenever _APP_OPTIONS_FORCE_HTTPS was enabled (the default). Internal Docker traffic is served over plain HTTP on port 80 — TLS terminates at the public proxy, not on the internal network — so the sidecar's download hit :443 and got "connection refused". Derive the _APP_JOBS_ENDPOINT fallback scheme as http regardless of the public FORCE_HTTPS setting, matching the documented http://appwrite default. Deployments that set _APP_JOBS_ENDPOINT explicitly are unaffected. Fixes appwrite#13519 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01K1MtjirbwSLmUEYERnTFK2
Contributor
|
Addressing review: the fallback must target the internal `appwrite` service, not the public _APP_DOMAIN host. With _APP_OPTIONS_FORCE_HTTPS enabled, an http:// URL against the public host is rejected by the force-https middleware for the non-GET completion callback, leaving the deployment stuck in waiting. Use the documented http://appwrite default. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01K1MtjirbwSLmUEYERnTFK2
abnegate
reviewed
Sep 10, 2026
Per review, revert the fallback host to the platform hostname; only the
scheme was wrong. The fallback now uses http://{apiHostname} instead of
deriving the scheme from _APP_OPTIONS_FORCE_HTTPS, which produced an
https:// URL the sidecar could not reach on the internal network.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K1MtjirbwSLmUEYERnTFK2
abnegate
approved these changes
Sep 10, 2026
2 of 4 tasks
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Function and site deployments stayed stuck in waiting after upgrading a self-hosted instance to 2.0. The build orchestrator built the internal artifact download and callback URLs with
https://whenever_APP_OPTIONS_FORCE_HTTPSwas enabled (the default), e.g.:Internal Docker traffic is served over plain HTTP on port 80 — TLS terminates at the public proxy, not on the internal network — so the sidecar's request hit
:443and was refused.Fix
In
src/Appwrite/Deployment/Deployments.php, the_APP_JOBS_ENDPOINTfallback no longer derives its scheme from_APP_OPTIONS_FORCE_HTTPS; it always useshttp, matching the documentedhttp://appwritedefault inapp/config/variables.php.Deployments that set
_APP_JOBS_ENDPOINTexplicitly are unaffected.Why upgrades were hit
Instances upgrading from 1.9.x typically don't have
_APP_JOBS_ENDPOINTin their existing compose/env, so this code-level fallback is what runs.Fixes #13519
🤖 Generated with Claude Code
https://claude.ai/code/session_01K1MtjirbwSLmUEYERnTFK2