Skip to content

fix: stop requiring CKAN_DATAPUSHER_URL in entrypoint - #93

Merged
ChasNelson1990 merged 1 commit into
masterfrom
fix/remove-datapusher-entrypoint-check
Aug 18, 2026
Merged

fix: stop requiring CKAN_DATAPUSHER_URL in entrypoint#93
ChasNelson1990 merged 1 commit into
masterfrom
fix/remove-datapusher-entrypoint-check

Conversation

@ChasNelson1990

Copy link
Copy Markdown
Member

Summary

ckan-entrypoint.sh has hard-aborted startup without CKAN_DATAPUSHER_URL since 2021. fjelltopp-ansible stopped setting that env var on 2026-07-10 (fix: remove datapusher, fjelltopp/fjelltopp-ansible#79) since datapusher is disabled in all envs — but nothing here was updated to match, so the entrypoint's requirement became stale.

This stayed dormant because neither dms-dev nor dms-prod had been redeployed since 2026-07-10. It surfaced today as an immediate crash loop (ERROR: no CKAN_DATAPUSHER_URL specified in docker-compose.yml) while rolling out an unrelated fix (fjelltopp/fjelltopp-ansible#85) — the first deploy to touch either environment since the var was removed.

Change

Removes the CKAN_DATAPUSHER_URL abort check. Datapusher is already gone from the deployment env everywhere, so the check is deleted rather than reworked.

Test plan

  • Merge → CI builds a new dms-staging:<sha> image
  • Point dms_dev's ckan_image_tag at that sha in dms-infrastructure, redeploy, confirm the pod starts cleanly
  • Once validated in dev, cut a release tag so dms:<tag> picks up the fix for prod

fjelltopp-ansible removed CKAN_DATAPUSHER_URL from the ckan Deployment
env (fix: remove datapusher, #79) back on 2026-07-10, but this
entrypoint still hard-aborted without it. Since neither dev nor prod
had been redeployed since, the incompatibility stayed dormant until
the next rollout hit it — surfaced as a crash loop deploying an
unrelated fix (fjelltopp/fjelltopp-ansible#85).

Datapusher itself was already disabled in all envs, so the check is
simply removed rather than replaced.
@ChasNelson1990
ChasNelson1990 requested a lite review from Copilot August 18, 2026 15:49
@ChasNelson1990 ChasNelson1990 self-assigned this Aug 18, 2026
@ChasNelson1990 ChasNelson1990 added the bug Something isn't working label Aug 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the CKAN container entrypoint to stop hard-failing startup when CKAN_DATAPUSHER_URL is not set, aligning runtime expectations with deployments where datapusher has been removed/disabled.

Changes:

  • Removes the startup abort that required CKAN_DATAPUSHER_URL to be set.
  • Updates the inline comment to reflect that datapusher is optional in current environments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ChasNelson1990
ChasNelson1990 merged commit eab6683 into master Aug 18, 2026
1 check passed
@ChasNelson1990
ChasNelson1990 deleted the fix/remove-datapusher-entrypoint-check branch August 18, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants