CKAN 2.11 to 2.12 upgrade

A planned path from CKAN 2.11 to 2.12 covering the breaking changes, extension and template fixes, backups, testing and rollback. Scope depends on your customizations and data size.

On this page

Why a CKAN 2.11 to 2.12 upgrade needs a written plan

A portal team running CKAN 2.11 has to move to CKAN 2.12 to stay on a supported line, and the move should start with a written plan rather than a package bump. CKAN 2.12.0 was released on August 26, 2026, and the CKAN release policy states that minor releases may include backwards-incompatible changes. That is the core reason this upgrade cannot be treated as routine. The breaking changes in 2.12 touch the Python runtime, the database, extension templates and the DataStore permissions, so the plan has to name each of them and assign an owner before anyone changes a production server.

Treat the upgrade as a tested migration, not a dependency update. The written plan should list every installed extension and custom template, confirm the Python version on each host, and identify which database steps apply to your portal. It should also set out a staging environment that mirrors production, a rollback point, and the checks that show the portal works after the move. Confirm each of these against the 2.12 release notes and the CKAN upgrade documentation in the CKAN releases policy rather than relying on memory of earlier releases.

The 2.11 line does not stop when 2.12 ships. Maintenance releases 2.11.6 and 2.10.11 were published on the same day as 2.12.0, and the release policy says the latest patch of the current minor version and the previous minor version receive security and bug fixes. Patch releases do not break backwards compatibility, so the team can keep 2.11 patched while the 2.12 move is planned and tested. Set a date for the cut-over, keep applying 2.11 patches until then, and confirm with your security team how long an unpatched 2.11 instance is acceptable.

What changes in CKAN 2.12 and what each change means for your portal

This table lists the main breaking changes when moving from CKAN 2.11 to 2.12, with the impact on a running portal and the action to take before cutover. Read each row as a pre-upgrade check: identify which changes touch your extensions, templates, data and runtime, then plan the work for those. Exact release-note wording and any changes not listed here must be confirmed against the 2.12 changelog.

ChangeImpact on your portalAction needed
Python 3.10 or newerHosts still on older Python cannot run CKAN 2.12 from source, so the base image or virtualenv must be rebuilt first.Confirm the Python version on every web and worker host, and rebuild the virtualenv before testing.
Revision table removalPortals that still hold revision data may lose access to that history after the table is dropped.Confirm the activity plugin holds your history and migrate any remaining revision data before upgrading.
Required CSRF snippet in extension formsCustom templates and extension forms without the CSRF snippet may fail on submit.Add the CSRF snippet to each form and remove any use of the ignore_extensions option.
Case-insensitive email uniquenessTwo accounts whose emails differ only by letter case may conflict during or after the upgrade.Query the user table for duplicate emails ignoring case and resolve them before cutover.
Removed tables and helpersExtensions or custom code calling removed database tables or template helpers will raise errors.Search extensions and templates for removed names listed in the changelog and replace or update them.
DataStore permission stepDataStore users may need permissions set again, or DataStore queries may fail for read-only access.Run the documented DataStore permission command in a test environment and verify read and write users.
Extension version supportExtensions that have not released for 2.12 may stop loading or behave unpredictably.Check each extension's supported version table and test it on a staging copy before production.

How to prepare a CKAN portal before touching 2.12

Preparation for a CKAN 2.12 upgrade runs as four tracks that can proceed in parallel but must all close before the upgrade starts. Each one produces an artifact you can hand to the team doing the upgrade and roll back from if something goes wrong. Skipping any of them tends to surface as a failed upgrade rather than a clean rollback.

Full database and file storage backup

Take a complete PostgreSQL dump of the CKAN database and a separate copy of the DataStore database, then back up the uploaded file storage directory or bucket. Restore the backup into a scratch environment and confirm that datasets, resources and users load before you rely on it. A backup you have not restored is not a backup for this upgrade, since several 2.12 changes run database migrations that cannot be undone by reinstalling packages. Record the exact CKAN and extension versions alongside each backup.

DataStore docs

Inventory of installed extensions

List every installed extension with its version, source repository and the CKAN versions its supported table names. Check each one against the 2.12 target, including XLoader, ckanext-dcat and ckanext-saml2auth where they are used. Any extension that stopped at an older release becomes a blocker to resolve or replace before the upgrade plan is final. Ask the owner of each custom extension who will fix it if it breaks.

ckanext-dcat repository

Custom templates and forms

Build a list of every custom template, snippet override and extension form that submits data to CKAN. Mark the ones that render a form without the CSRF snippet, since CKAN 2.12 requires that snippet and removes the ignore_extensions option. Also flag templates that reference helpers or tables removed in 2.12. This list tells the developers how much template work the upgrade carries, which is usually the largest unknown in the project.

Test environment with production data

Build a separate environment on the same CKAN, Python, PostgreSQL, Solr and Redis versions as production, then load a recent copy of the production database, file storage and DataStore tables. Rebuild the Solr index in that environment so search behaves as it will after the upgrade. Run the upgrade and your smoke tests there first, and keep this environment after the upgrade for patch testing. Confirm with your hosting team how long a full restore takes, since that sets the outage window for production.

The supported upgrade path from 2.11 to 2.12

Teams on CKAN 2.11 should treat the latest 2.11 patch as the first step, not the destination. CKAN targets about two minor releases a year and supports the latest patch of the current minor version plus the previous minor version, so 2.11 stays in support while 2.12 is current. Outdated patch releases lose support once a newer patch ships, which means a portal running an older 2.11 patch is exposed even before it attempts the minor move. Confirm your running patch version against the CKAN releases page and apply the newest 2.11 release in a staging environment first.

Before any code changes, check the platform prerequisites that the 2.12 target inherits from the source install requirements. CKAN requires Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis. Record the exact interpreter version used by the virtual environment, the PostgreSQL server version, and the Solr major version and CKAN schema in use. If Solr is still on version 8, decide whether to move to Solr 9 in the same window or as a separate step, and confirm the matching schema for your CKAN version in the project documentation. Do not assume a host image still matches these requirements because it ran 2.11 successfully.

The reason the 2.11 patch comes first is the difference in what each release type may change. Patch releases do not break backwards compatibility and exclude schema changes and new features, so applying them is a low-risk routine that can be repeated across environments. Minor releases such as 2.12 may include backwards-incompatible changes and can alter database schema, so the migration plan, backup and rollback steps belong to the minor move. Ask your vendor or internal team to confirm which schema migrations 2.12 requires on your installed extensions, and plan a restorable database backup before running them.

Upgrade sequence with checks and rollback points

This sequence moves a CKAN portal from 2.11 to 2.12 in an order that keeps a tested rollback point at every stage. Each step names the work, the check that confirms it finished, and what to restore if it fails. Run the full sequence in staging first, and do not promote to production until the final test pass is signed off.

  1. Freeze changes and take full backups

    The portal owner freezes content and configuration changes, then takes a complete backup of the main PostgreSQL database, the DataStore database, uploaded files and storage, and the configuration files, including the SECRET_KEY value and the Solr and Redis settings. The platform team restores that backup into a scratch environment and confirms the portal starts and shows the dataset count recorded before the freeze. That tested restore is the rollback point for every later step, so no step begins until it passes.

  2. Apply the latest 2.11 patch first

    The platform team upgrades the running 2.11 installation to the latest 2.11 patch release before changing the minor version. CKAN patch releases do not break backwards compatibility and exclude schema changes, so this step should not change portal behavior. Check that the web interface, the API and background jobs work after the patch in staging. Rollback is reinstalling the previous patch version from the step one backup, and staging should confirm that path works before production is touched.

  3. Audit extensions and fix forms

    The extension owner checks every installed extension against the versions that declare support for CKAN 2.12, and the templates owner searches custom templates and extension forms for places where the CSRF snippet is now required. Confirm that any revision data is already held in activities, and review the removed tables and helpers listed in the 2.12 release notes against your own code. Done means a pinned set of 2.12 compatible extension versions and form submissions that pass in a development environment. Rollback is keeping the 2.11 versions pinned in version control.

  4. Upgrade Python and dependencies in staging

    The platform team builds a new virtual environment on Python 3.10 or newer, with PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, then installs CKAN 2.12 and the pinned extension versions into it. The 2.11 environment stays untouched so the existing service remains runnable. Check that the install completes, the configuration file loads without errors, and the web process starts with no import failures. Rollback is repointing the service to the untouched 2.11 environment.

  5. Run database migrations and the DataStore permission step

    The database owner first searches user accounts for email addresses that differ only in letter case, because 2.12 enforces case-insensitive email uniqueness and the migration may stop on duplicates. Next, run the database upgrade and the DataStore permission step described in the 2.12 documentation, then confirm the read-only DataStore user can still run queries. Check the migration output for errors and rerun the duplicate-email query, which should return no rows. Rollback is restoring the databases from the step one backup, since schema changes should not be reversed by hand.

  6. Rebuild the search index

    The search owner rebuilds the Solr index with the schema shipped in CKAN 2.12, on a Solr version that the install documentation lists as supported, and keeps the previous index available until the new one is verified. Compare dataset and resource counts with the figures recorded in step one, then run test searches for known datasets, facets and organizations. The step is complete when results match the pre-upgrade baseline. Rollback is pointing the portal back at the retained 2.11 index and schema, which is possible only if that copy was kept.

  7. Test and promote to production

    The test lead runs a written test list in staging: sign in through SSO or local accounts, create and edit datasets, upload resources, confirm XLoader jobs complete, query the DataStore through the Data API, use an API token, and exercise each extension feature. The same list runs on a production copy, then production is switched during a maintenance window agreed with stakeholders. Sign-off from the portal owner and the security team closes the step. Rollback is restoring the step one backup and reverting the service to 2.11 if a critical check fails after promotion.

Each phase of the CKAN 2.12 upgrade gates the next, with rollback always open until promotion

The upgrade starts with a full backup of the portal before any change is made, then moves through a 2.11 patch and a staging upgrade that covers Python, PostgreSQL, Solr and extensions. The DataStore permission step runs before the test gate, and only a passing gate leads to promotion. A failed gate returns the portal to the restored backup, so the team should confirm that the backup restores cleanly before starting.

Phases and decision points for moving a CKAN portal from 2.11 to 2.12, with rollback to the backup.

How to test a CKAN 2.12 upgrade and roll it back safely

Run the test plan against a staging copy of production, using the same Python 3.10 or newer, PostgreSQL, Solr and Redis versions you will run in production, before any production change. Start with login and account flows, because the 2.12 email rule changes how duplicate accounts are caught. Register a user, log in, reset a password, and try to register an address that differs from an existing one only in capitalization. Then confirm that custom forms in your theme and extensions submit successfully with the CSRF token rendered, and that a POST without the token is rejected. Record each result with the extension or template involved, so every failure maps to an owner. Treat any extension form that has not been updated for 2.12 as a blocker.

Next, test the data and background work, which tends to fail quietly. Load a CSV resource through XLoader, then query it through the DataStore Data API with a filtered search, a paginated request and a SQL query run as the read-only user. This confirms the read-only role still holds its grants after the database changes. Run a harvest job against a source catalog and confirm the ckanext-dcat RDF harvester completes, after checking the extension's supported CKAN versions, because its published support covers 2.10 and 2.11 and you need to confirm 2.12 before relying on it. Verify that background jobs queued through Redis run to completion and that no entries stay stuck in the queue. After rebuilding the search index, compare result counts and ordering for a fixed set of searches against your pre-upgrade baseline, then open a sample of datasets from each result set.

Set the rollback point before the first upgrade command. Take a PostgreSQL backup of the main CKAN database and a separate backup of the DataStore database at the same moment, and verify them with a test restore on another host. Copy the file storage directory holding uploaded resources, along with any other configured storage location, and archive the CKAN configuration, the extension versions and the Python environment or container image. A restore needs all of these from the same point in time, because the database, file storage and DataStore must agree, and the Solr index can be rebuilt from the database afterward. Minor releases may include backwards-incompatible changes, so a rollback to 2.11 means restoring the full set together (CKAN release policy). Rehearse the restore on staging and record how long it takes in your own environment, since that time sets the rollback window you must plan for.

What makes a CKAN 2.12 upgrade longer or shorter

This table compares the main drivers of effort in a CKAN 2.11 to 2.12 upgrade and explains how each one lengthens or shortens the work. Read each row against your own portal to see which drivers apply and where your estimate will need the most testing. The main takeaway is that extension count, form customization and revision data history usually decide the schedule more than the core upgrade steps do.

DriverEffect on effortWhat to check before quoting
Custom extensionsMore extensions, and older ones, lengthen testing and replacement workCount each extension and confirm its supported CKAN version in its repository
Custom templates and formsForms without the CSRF snippet need fixes before the portal works on 2.12List every custom form and template, including those in extensions
Revision dataPortals still holding revision tables need migration to activities firstCheck whether the activity plugin already holds your dataset history
DataStore size and loaderLarge tables and legacy DataPusher jobs lengthen reload and verificationConfirm which loader runs today and how many resources use the DataStore
Solr version and index sizeA Solr move alongside the upgrade adds index rebuild time and a second test cycleNote the current Solr version and whether a rebuild is planned
Deployment automationScripted builds shorten repeat runs across environments, while hand-edited servers add manual checksAsk whether environments are built from code or configured by hand
Number of environmentsEach environment needs its own test pass, so more environments extend the scheduleConfirm how many environments must be upgraded and tested in order

Questions teams ask before a CKAN 2.12 upgrade

What drives the cost of a CKAN 2.12 upgrade?

The cost is driven by how much of your portal has to change, not by the version number alone. The main inputs are the number of installed extensions and how many of them need a newer release or code changes, whether you run custom templates or extension forms that need CSRF updates, how much data sits in the DataStore and search index that must be rebuilt, and how many environments (development, test, staging, production) must be brought forward. Each of these is a separate line item in a quote. Expect a one-time cost for the upgrade itself and a recurring cost for patch maintenance afterward. Ask any provider to price the audit, the upgrade build, testing and cutover as separate items so you can see which parts your own team could absorb.

How long does a CKAN 2.12 upgrade take?

Duration depends on the size of the change list and the number of environments, and no fixed timeline applies to every portal. The longest phases are usually extension compatibility work, testing on a copy of production data, and reindexing search. Before you agree a timeline, confirm the count of installed extensions, whether each has a release that supports CKAN 2.12, how large your DataStore tables are, and whether you have a maintenance window for cutover. CKAN's own release policy says the latest patch of the current minor version and the previous minor version receive fixes, so plan the move with that support window in mind rather than waiting for an emergency.

What does a CKAN 2.12 upgrade need from our staff?

You need people who know the portal's business use, the platform's configuration and the infrastructure it runs on. In practice that means a named owner who can make decisions about which datasets, schemas and users matter, a developer who knows the custom code and extensions, and someone who can grant access to the staging and production hosts and their databases. Plan time for them to review test results and sign off on the cutover. Ask the provider which decisions they will need you to make in writing and how many review rounds the scope includes.

Can our internal team upgrade CKAN to 2.12 without a partner?

Yes, a capable internal team can perform the upgrade if it has Python, PostgreSQL, Solr and CKAN operations experience and time to test properly. The skills most often missing are extension compatibility checks, a realistic staging environment and a tested rollback. Before deciding, audit your installed extensions against their supported version tables, check whether your portal still holds revision data that must be preserved, and confirm that you can restore a backup. If any of those are unclear, a partner can run the audit and build while your team keeps ownership of the decisions.

What should a fixed-scope quote for a CKAN 2.12 upgrade include?

A fixed-scope quote should name each deliverable and the conditions under which it is complete. DeployOpen works to scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope. Ask that the quote list the environments in scope, the inventory of extensions and custom code reviewed, the specific changes expected (Python 3.10 runtime, removed revision table handling, CSRF updates in extension forms, case-insensitive email checks, removed tables and helpers, and the DataStore permission step), the testing evidence delivered, the cutover and rollback steps, and what is excluded such as extension rewrites or Solr upgrades. It should also state what the client must provide and how changes to scope are priced.

Which CKAN 2.12 changes should we check before we ask for a quote?

Gather the facts a provider needs to scope the work accurately. Check your Python version, since CKAN 2.12 installs from source require Python 3.10 or newer. Confirm your PostgreSQL version against the install documentation, and whether your Solr is version 8 or 9. Review whether any custom templates or extension forms lack the CSRF snippet, and whether your portal uses the ignore_extensions option that CKAN 2.12 removed. Confirm whether the revision data that 2.12 removes has been migrated to activities. Finally, verify the DataStore permission setup, including the separate write and read-only users. Your provider should confirm each item against the official CKAN documentation for your target version before pricing.

What is the difference between a CKAN minor upgrade and a patch update?

A patch release fixes bugs and security issues within the same minor version and does not break backwards compatibility, while a minor release such as 2.12 can include backwards-incompatible changes that require planned work. CKAN's release policy says patch releases exclude schema changes and new features, so they are generally lighter to apply. Keep patch updates current on your existing version so that the eventual move to 2.12 starts from a supported baseline. Confirm the exact patch level your portal runs before requesting a quote, because an outdated patch can add work to the upgrade.

How DeployOpen scopes a CKAN 2.12 upgrade

DeployOpen scopes a CKAN 2.12 upgrade in writing before any work starts. DeployOpen plans, implements and supports self-hosted CKAN inside your own infrastructure, whether that is your cloud accounts, your data centers or an air-gapped network, so the portal, its database, its Solr index and its file storage stay under your control throughout. Most engagements are fixed-scope. The agreed document names the components in scope (the CKAN core upgrade, the Python 3.10 runtime, the Solr index, the DataStore, each extension and each custom template), the deliverables and the timeline. A quote follows from that written scope, so the scope is where cost is decided, not after the work has started.

The scoping conversation depends on inputs that only your team can provide. The most important is an extension inventory: every installed extension with its current version, the CKAN version it declares support for in its repository, and whether it is custom, forked or official. Alongside it, ask for the ckan.plugins line from your configuration, a list of custom templates and extension forms that will need CSRF updates, and the current Solr and PostgreSQL versions. You will also need access to a staging environment that mirrors production, with a recent copy of the database and the ckan.site_url and DataStore settings, so the upgrade can be rehearsed before anyone touches production. Confirm with your team who approves go and no-go decisions and who holds the admin credentials for hosting, DNS and identity.

How DeployOpen works on this

DeployOpen plans, implements, tests, documents and supports CKAN upgrades inside your own infrastructure, including cloud accounts, data centers and air-gapped networks. For the move from CKAN 2.11 to 2.12, we start from a written scope that names your extensions, custom templates and DataStore use before any change is made to a production portal.

How we scope

  • Inventory every installed extension, custom template and form against the 2.12 changes before quoting the work.
  • Confirm whether revision data and CSRF-dependent forms exist, since both change the amount of work required.
  • Agree the environments, test data, downtime window and acceptance criteria in writing before the upgrade starts.

How we build

  • Stand up a staging copy of the portal on Python 3.10 or newer, with PostgreSQL, Solr, Redis and your extensions.
  • Fix extension forms for the required CSRF snippet and check the removed tables and helpers your code relies on.
  • Test the DataStore permission step and the case-insensitive email uniqueness rule against realistic user records.

How we hand over

  • Document each change made to configuration, templates, extensions and database steps, with the reason for it.
  • Provide a rollback procedure and a checklist that your own team can rerun for later patch and minor releases.
  • Walk your platform and compliance teams through the evidence of testing so they can review the result.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the portal reaches 2.12.
  • Track CKAN patch releases and extension updates so your portal stays on a supported patch of its minor version.
  • Ask for the retainer scope, response expectations and any SLA terms in writing, since DeployOpen sets these per engagement.

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.