Checking CKAN extension compatibility before an upgrade

Extensions are the most common reason a CKAN upgrade stalls. This page explains how to audit each one against the target release, test it safely and decide what to replace.

On this page

Checking CKAN extension compatibility before an upgrade starts the upgrade plan

The extension audit decides which upgrade path is open to you and how much work it will take. A portal running an older CKAN release with several extensions cannot plan a move to a newer minor release until it knows which of those extensions support the target version, because a single unsupported plugin can block the whole move. Minor releases can include backwards-incompatible changes, while CKAN patch releases do not break backwards compatibility and exclude schema changes and new features, according to the CKAN releases policy. That difference is why the audit must be run against each minor release you are considering, not only against the next patch of your current line.

CKAN targets about two minor releases a year, and the tech team supports the latest patch of the current minor version and the previous minor version. Outdated patch releases lose support once a newer patch ships. The 2.12.0 release arrived on August 26, 2026, together with maintenance releases 2.11.6 and 2.10.11 on the same day. A portal on 2.10 or 2.11 therefore has a short window in which both its current line and its target line are receiving fixes, and the audit should record which of your extensions still have an active release for each candidate version. Confirm the current support window directly in the release policy and the GitHub releases page before you fix a date.

Treat the audit as the gate for the upgrade plan rather than a checklist to finish later. For each extension, record the installed version, the CKAN versions its repository declares support for, whether it has a release for your target, and whether its maintainers are still active. Run the candidate versions in a separate environment built from a copy of your configuration and database, so that any extension that fails to load or misbehaves is found before production is touched. If an extension stopped at an older release, the plan has to choose between a newer fork or replacement, a custom rewrite, or dropping the feature. Only when every extension has a route to the target does the upgrade sequence, including Python, Solr and database steps, become reliable to schedule.

Which extension findings block an upgrade and what to do about each

This table pairs each common extension finding from an audit with its effect on a CKAN upgrade and the action to take. Read each row against the target CKAN version, and treat any finding that touches a shared template or helper as a blocker until a test environment proves otherwise. The main takeaway is that a support table entry alone does not settle compatibility, so confirm with the maintainer and test before you commit.

FindingImpact on the upgradeAction needed
Repository lists no support for the target CKAN versionThe extension may load on the target but has no declared test coverage, so failures would appear only in your environment.Confirm with the maintainer whether the target is supported. If not, pin a newer release or replace the extension.
Extension supports only the older minor versionInstalling it on the target can fail at startup or break plugin hooks that changed between minor releases.Check whether a newer release targets the new version. If none exists, fork and patch it or replace it.
Pinned to a version that predates the target Python requirementThe target requires a newer Python than the pinned release was built for, so the install or import may fail.Pin a release that declares support for the target Python, or confirm compatibility with the maintainer before testing.
Overrides templates or helpers that changed in the targetTemplate blocks or helper functions the extension replaces may have moved or been removed, causing rendering errors on existing pages.Compare overridden files against the target release notes, then patch the extension or replace the override in a test environment.
Duplicates functionality now in core or an official extensionTwo plugins may register the same routes, actions or schema fields, and plugin order can change which one takes effect.Drop the extension if core or the official extension covers the need, and migrate its data and settings first.
Unmaintained with no release for the targetNo maintainer will fix defects found during the upgrade, so any breakage stays with your team.Fork and patch only if you will own the fixes, or replace the extension with a maintained alternative.

What to inventory before testing any extension

An extension audit is only as good as the inventory behind it. Before anyone checks a version table, record what the live portal runs, what it loads, what it owns, and what it would lose if the upgrade went wrong.

Installed extensions and exact versions

List every extension package in the running environment with its exact installed version, taken from the deployed virtualenv or container image rather than from memory or the requirements file alone. Note where each one was pinned and whether it came from PyPI, a Git tag or a fork. Forks and unpinned Git branches are the most common reason a compatibility check passes on paper and fails in production.

Enabled plugins and load order

Record the ckan.plugins line from the CKAN configuration file, in its exact order, along with any environment-specific overrides. Plugin order affects which template and action takes precedence, so a reordered list can change behavior even when every package still installs. Keep this list as the reference for the test environment.

Portal-owned extension code and templates

Identify the custom extensions, templates, static assets and helper functions your team wrote or modified. These are not covered by any upstream version table, so each one needs its own review against the target release. Include patches applied directly to CKAN core or to third-party packages, since they are lost silently when the base package is replaced.

Current CKAN and Python versions

Confirm the exact CKAN version and the Python interpreter version the portal runs today, along with the PostgreSQL, Solr and Redis versions behind it. Check the target against the baseline in the CKAN install from source docs: Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 or Solr 8, and Redis. An extension that needs a newer Python than the target allows is a blocker that no testing will fix.

Install from source docs

Backups of database, files and search index

Take and verify backups of the main PostgreSQL database, the DataStore database, the uploaded file storage and the Solr index configuration before any change. Confirm that a restore has been tested on a copy, not only that the backup job reports success. Record the backup time and location so a rollback has a known starting point.

Separate test environment from the same configuration

Build a non-production environment from the same CKAN configuration, extension versions and plugin order, with a copy of production data or a representative sample. Testing against a different extension set or an empty database hides the failures that matter. Ask whether the environment can be rebuilt from scripts so the test result stays reproducible.

How to read a repository's supported version table

Official extensions are maintained under the CKAN organization and usually document their supported CKAN versions in the repository readme, in a compatibility section, or in the CI configuration that runs tests against each CKAN version. Start with the readme, then check the CI matrix, because the matrix shows which versions the maintainers actually run tests against. The ckanext-dcat repository states support for CKAN 2.10 and 2.11. That is a stated range, so a move to 2.12 needs confirmation in the repository before any work is scheduled. Do not assume that a newer release tag implies newer CKAN support.

  • Readme compatibility statement: Look for the CKAN versions named in the introduction or installation section, and note the exact wording.
  • CI test matrix: Check the workflow files for the CKAN versions the project tests against. A version in the matrix is stronger evidence than a version named only in prose.
  • Release notes: Read the notes for the release that dropped an older CKAN version, since removal is often announced there.
  • Record for the audit: Extension name, release tag, stated CKAN versions, matrix versions, and the date you checked.

Before the upgrade plan is approved, confirm the target CKAN version appears in the repository itself, not in a summary elsewhere.

Why extension testing belongs in a separate environment

Every extension should be exercised on the target CKAN version in a separate environment that mirrors production configuration, not on the live portal and not on a developer's laptop. The mirror has to include the pieces an extension actually touches: the DataStore database with its write and read-only users, XLoader if your portal uses it, Solr at the version your target release expects, and Redis. An extension can load cleanly on its own and still fail once it shares a configured stack with the rest of your plugins, so a bare CKAN instance with the extension enabled proves very little. Copy the production ckan.ini, plugin list and environment variables as closely as your security rules allow, and record every difference you cannot remove.

Test by behavior, not by whether the process starts. Confirm that CKAN boots with the full plugin list, then walk through dataset and organization create, edit and delete forms, including any custom schema fields the extension adds. Run each configured harvester against a source you control, check that DCAT endpoints return the profile you publish, and confirm that SAML login still maps users to organizations and roles if ckanext-saml2auth is in use. Trigger background jobs, since failures there often stay silent until a nightly run, and call the API routes your integrations depend on with the token types your users actually hold.

Ask each extension maintainer, or the repository's documented support table, which CKAN versions the current release supports before you start testing, and write down the answer. Ask your team to keep the test results with the version and commit tested, so the production change can be traced to evidence. Any extension with no answer for your target version becomes a replacement or fork decision, not a testing task. The effort for this work depends on how many extensions you run and how much custom configuration each one carries, so confirm both before you agree a schedule.

Sequence for auditing and replacing extensions

This sequence turns an unknown set of installed CKAN extensions into a per-extension decision, tested on the target version before any production change. It ends with a documented keep, patch, replace or drop call for each extension and a rollback point that stays in place until acceptance passes.

  1. Freeze the extension inventory

    Record every installed CKAN extension with its exact version or commit, its source repository, the plugin names listed in the ckan.plugins setting, and any local patches or forks. Include extensions that are installed but disabled, and extensions loaded only in background workers, since they still need a decision. Lock the source environment so the inventory matches what runs in production. The step is done when the inventory is stored in version control and someone other than the author can match each entry to a running deployment.

  2. Check each repository's supported version table

    For each extension, open its repository and read the README, compatibility table or release notes to find which CKAN versions it declares support for, and confirm the target CKAN version is listed. Record the extension's latest release, its last commit date, and any open issues about the target version. Where a repository publishes no table, treat the extension as unverified and ask its maintainer or your vendor to confirm compatibility in writing. The output is a table with one row per extension marked supported, unclear or unsupported for the target.

  3. Build a separate target test environment

    Create a non-production environment on the target CKAN version with the same Python, PostgreSQL, Solr and Redis versions the target release requires, and a copy of the production configuration with secrets replaced. Keep it isolated from production services, email and any harvest or push jobs that could write to external catalogs. Confirm the source environment still runs and that its database and file storage backups are verified before the build starts. The step is complete when the test environment starts with no extensions enabled and the core site loads.

  4. Enable extensions one at a time and record startup errors

    Add extensions to the target ckan.plugins list one at a time, in the order your upgrade notes specify, restarting the application and workers after each change. Capture the startup log, any import or plugin-loading errors, and failed database migrations for each step. If an extension fails, record the traceback and the CKAN version it targets, then remove it and move on so one failure does not hide others. The output is an ordered log showing which extension was added at which point and whether it started cleanly.

  5. Run functional checks for each enabled extension

    Exercise the features each extension provides, not only the home page. Examples include dataset create, edit and delete with custom schema fields, harvesting or DCAT endpoints, SSO login with a test identity provider, DataStore uploads, and background jobs that the extension queues. Run the same checks on the source environment for comparison where behavior is unclear. Store results per extension with a pass or fail, the steps used, and screenshots or API responses for failures. Do not accept a clean startup as proof that an extension works.

  6. Decide keep, patch, replace or drop per extension

    For each extension, record one decision with a reason: keep it because it supports the target and passed checks, patch it because a fix is small and maintained, replace it with a supported alternative or core feature, or drop it because the function is no longer needed. Patches should be recorded as a fork or local change with an owner and a path to upstreaming or removal. Replacements require their own functional checks before the decision is final. The output is a signed-off decision register that the upgrade plan references.

  7. Set and hold the rollback point until acceptance

    Keep the source environment, its configuration and a verified backup of the database and file storage in place until the target environment passes the agreed acceptance tests with the final extension set. Record the backup identifiers, the restore procedure, and who can authorize a rollback. Do not decommission the source or delete the old extension versions until acceptance is signed off. Confirm the restore procedure has been tested on a copy, not only written down, before the production cutover begins.

Decisions when an extension stopped at an older release

An extension that has not kept pace with the target CKAN version leaves you with a small set of choices, and each one moves maintenance work to a different party. Compare the options by who will own the code after the upgrade and which tests must run again before the portal goes live.

Wait for a maintainer release

Ask the extension maintainers whether a release for the target CKAN version is planned, and check the repository's supported version table and open issues for compatibility work. Waiting costs little in engineering time, but the upgrade date then depends on someone else's schedule. Hold the upgrade in a staging environment only while the release is credible, and confirm that the release is tagged for your target version before you schedule the cutover. Retest the full portal after the new release lands, because a version bump can change plugin behavior even when the install succeeds.

Pin a fork that works on the target

A community or vendor fork can carry the extension onto the target version while the upstream project is inactive. Your team, or the partner doing the work, owns every patch to that fork from then on, including security fixes and CKAN changes in later releases. Before you pin it, read the commit history and license, and confirm who will review changes. Retest every feature the extension provides, plus any templates or config keys it overrides, after each change to the fork.

Rewrite the behavior as a custom extension

When you need only part of what the extension does, a small custom extension in your own codebase can replace that behavior on the target version. You take on the full maintenance cost, including CKAN API changes in each later minor release. The scope of the rewrite is the main cost driver, so list the exact actions, templates and configuration keys the portal depends on. Test each of them against the target version, and keep the custom code under version control with its own test suite.

Switch to an official or maintained alternative

Some functions have an actively maintained replacement, and switching can remove a dependency that will keep blocking upgrades. Check each candidate's supported CKAN versions in its repository before you commit, and do not assume a replacement covers the same data formats, permissions or config. Migrate stored data and settings in a separate environment, then compare search results, harvests and API output against the old extension. Retest user-facing workflows, since the replacement may change forms and URLs.

Remove the feature

If few users depend on a feature, removing it can be the cheapest route to a supported upgrade. Remove it only after you document who uses it, what data it stores, and how that data will be kept or exported. The cost is mostly communication and data handling rather than code, and it recurs only if the removed feature is later needed. Retest the pages and API calls that referenced the feature so that no broken link or empty form reaches the public.

Hold the upgrade

Holding keeps the current CKAN version running while you resolve the blocking extension, but the current version has a limited support window. Review the CKAN release policy to see whether your current minor line still receives security and bug fixes, because staying on an unsupported line adds risk each month. Set a decision date, document the security exposure, and confirm the hold with the portal owner. When you resume, retest the full upgrade path, since patches applied in the meantime may change the target.

CKAN release policy

What makes extension compatibility work longer

This table lists the factors that expand or shrink the work of checking installed CKAN extensions against a target version, with what to check for each. Read each row as a question to answer for your portal before estimating effort with a partner or your own team. The main takeaway is that the count of extensions matters less than how many of them are unmaintained, deeply overridden or tied to login and data loading.

DriverEffect on effortWhat to check
Number of installed extensionsEach extension needs its own version table lookup, install test and plugin-ordering review, so effort grows with the listInventory every entry in the plugins setting and every extension in the deployment image or virtualenv
Third-party extensions without a maintainerNo one may publish a release for the target version, so the work shifts to forking, patching or replacingLook for recent commits, open issues and a declared CKAN version range in each repository
Depth of template and helper overridesOverridden templates and snippets must be re-read against the new core, and changed snippets can break silentlyCount templates in custom directories that extend core files, and list helpers that replace core functions
Custom Python code touching changed core APIsCalls to removed or renamed helpers, tables or action functions need code changes and new testsSearch custom code against the target release notes for removed helpers, actions and database tables
DataStore and loader dependenciesLoader and DataStore permission steps change how resources are uploaded and queried, so tests must cover real filesConfirm the loader extension version supported for the target release and test a sample upload and query
Authentication extensions tied to login flowsLogin, session and token behavior changes can lock out users, so these need the most careful testingTest SSO or SAML sign-in, logout, API tokens and sysadmin mapping in the staging environment
Environments that must match productionEach extra environment repeats the install, data copy and smoke tests, so effort rises with every added copyList development, staging, and any disaster recovery copies that must run identical extension versions

How the audit decides between keep, patch and replace

The audit starts with a full inventory of installed extensions, each pinned to its current version and source. For every extension it checks the supported CKAN version table in that extension's repository against the target release. If the target is listed, the extension goes to testing in a separate environment. If it is not listed, the team looks for a maintainer release that supports the target; a release that exists leads to a patch test, and no release leads to a decision to replace or drop the extension. Every path ends with a retest in the separate environment before the production window.

Decision path each installed extension follows before the production window.

Questions buyers ask about extension compatibility work

What drives the cost and effort of a CKAN extension audit?

The main driver is how many extensions the portal runs and how far each one has drifted from the target CKAN version. A short list of extensions that are actively maintained and documented for the target release takes far less time than a long list with custom code, local patches or no recent commits. Other drivers are the number of custom extensions your team wrote, how many templates and forms override core pages, and whether test data and a staging copy of the portal already exist. Cost has two parts: the people doing the inventory and review, and the test environment they need. Ask any quote to list each extension, the source it was checked against, and whether the audit ends with a written compatibility table or includes fixes.

Can our own team run an extension compatibility audit without outside help?

Yes, if you have someone who can read Python packaging metadata, has access to each extension's repository, and can stand up a separate CKAN instance that mirrors production. The work is mostly methodical: list every installed plugin, find the version support table in each repository, check the target CKAN release, and record gaps. It becomes harder when extensions are custom, when the team has no one who has run a CKAN upgrade before, or when the audit has to be repeated for each target release. Many teams do the inventory internally and bring in a partner for the test environment and the replacement decisions. Either way, keep the audit written down so the next upgrade starts from it.

What does the portal owner need to provide for the audit?

Expect to provide three things. The first is an inventory: the production ckan.plugins setting, the installed Python packages with their versions, any local extension directories, and the list of custom templates. The second is access: read access to the production configuration and code, the extension repositories or forks in use, and a copy of recent logs that show plugin errors. The third is an environment: a non-production CKAN instance on the current version, with a database copy that is representative of production, and a place to install the target release and its dependencies. Without a staging environment, the audit can only be a paper review, which will miss runtime errors that show up only when plugins load together.

How long does an extension compatibility audit take?

Duration depends mainly on the number of extensions and their state. Extensions that publish a current support table for the target release can be confirmed quickly, while extensions that stopped at an older release need investigation, testing, and a decision about replacing or forking them. A portal with a handful of well-maintained extensions and no custom code is a very different project from one with a dozen extensions, several local patches and custom themes. No duration is stated here because no researched figure exists for this work. Ask for a timeline in the quote that is tied to the extension list, and ask which items are assumed to be resolved in the audit and which are carried into the build phase.

Is forking an abandoned CKAN extension a safe long-term choice?

A fork can keep a portal running, but it moves maintenance onto your team or your partner. Every CKAN minor release can include backwards-incompatible changes, while patch releases are designed not to break compatibility, so a fork has to be rechecked at each minor upgrade. Before choosing a fork, confirm who will apply security fixes, how the fork tracks upstream changes, whether it still passes tests against the target release, and who owns the code if the original author stops responding. Compare that ongoing cost with replacing the extension with a maintained one or with core functionality. A fork is usually a bridge, and the audit should record a planned exit date for it.

What should a quote for this work include?

A useful quote lists every extension in scope and the state it was assessed in, along with the CKAN versions it was checked against. It should name the test environment, state who provides it and who maintains it, and describe the deliverables: a compatibility table, a list of defects found in testing, and a recommendation for each extension (keep, patch, fork or replace). It should separate one-time work, such as the audit and any fixes, from recurring costs, such as maintaining a fork or running retests when new patch releases arrive. Ask how exceptions are handled when an extension turns out to be broken, and whether scope changes are priced before they are done. Each item should be fixed in writing before work starts.

Do extension audits need to cover security and compliance settings?

Yes. An extension can pass a plugin load test and still weaken the portal, for example by changing how users sign in, how API tokens are handled, or what private datasets expose. Review each extension's authentication and permission hooks, and check that single sign-on extensions, such as ckanext-saml2auth, are supported on the target version before relying on them. Record any change to access control in the audit so the compliance owner can review it. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications; independent auditors and certification bodies do that.

How DeployOpen works on this

DeployOpen approaches the extension audit as a fixed-scope piece of work agreed in writing before it starts. We inventory what the portal runs, check each extension against the target CKAN version, and test the result in a separate environment before any production change.

How we scope

  • Written scope lists every installed extension, its pinned version and the target CKAN release.
  • Scope states which custom extensions and templates need source review, since no public support table covers them.
  • Scope names the deliverables, the test environment used and the decision owner for replacement choices.

How we build

  • We record each extension's supported CKAN versions from its repository documentation and release notes.
  • We build a staging copy of the portal on the target version and install the candidate extension set there.
  • We run smoke tests on dataset, organization, DataStore and login paths and log every failure against its extension.

How we hand over

  • You receive a compatibility matrix with the source, version and test result for each extension.
  • You receive a replacement or upgrade list with the effort each item needs and the reasons for each choice.
  • You receive a rerun checklist so your team can repeat the audit before the next minor or patch release.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the audit is delivered.
  • Confirm with us whether a retainer should cover re-auditing extensions when new CKAN patch releases ship.
  • Confirm with us how staging results will be shared with your change board before production work is scheduled.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.