How to apply CKAN patch releases before older patches lose support
If your portal team needs to keep CKAN current without taking on a full version upgrade, the supported path is simple: stay on the latest patch of your minor line and apply each new patch as it ships. CKAN's release policy supports the latest patch of the current minor version and the previous minor version for security and bug fixes, and an outdated patch loses support as soon as a newer one is out. A portal still running an older patch of its line is therefore already outside support, even if nothing has broken. On the release of CKAN 2.12.0 on August 26, 2026, the maintenance releases 2.11.6 and 2.10.11 shipped the same day, which shows how the patch line moves in parallel across supported minors.
Patch releases are the low-risk part of that routine because the policy says they do not break backwards compatibility and exclude schema changes and new features. That is what makes them safe to apply on a regular schedule. It is not a guarantee that nothing changes. Read the changelog and release notes for each patch, confirm that your installed extensions still list support for the patch's minor line, and test the update in a staging copy that mirrors your production configuration, plugins and search index before touching production. Treat a move to the next minor version as a separate project with its own planning, because minor releases may include backwards-incompatible changes.
Make the routine a standing task with named owners. Record the version and patch number of every environment, including staging and any test instance, and check the CKAN releases page on a set cadence. When a patch lands, confirm whether your minor line is still supported and schedule the update. Ask any vendor or partner quoting this work to state how they will track new patches, how they will test extensions against them and what they will do when a patch lands mid-project. Confirm these details with your own team and environment before relying on them.
What a CKAN patch release can and cannot change
This table compares what a patch release may change with what a minor release may change, and what each means for a running portal. Read each row as a question to answer before you schedule an upgrade. The main takeaway is that a patch is expected to apply cleanly, but extensions and your own customizations still need checking on every patch.
| Change type | Impact on a running portal | Action needed |
|---|---|---|
| Backwards-compatible bug fixes | Expected to apply without changing how existing features behave | Read the release notes, then apply in staging before production |
| Security fixes | Closes vulnerabilities in the current and previous minor lines | Prioritize; confirm your running patch is still supported |
| Database schema changes | Excluded from patch releases according to the release policy | If a patch appears to need a migration, stop and check the release notes |
| New features | Excluded from patch releases, so existing behavior should not gain new options | Do not expect new features from a patch; plan them for a minor release |
| Backwards-incompatible changes | Possible only in minor releases, so they can affect configuration, templates or extensions | Plan a separate minor upgrade project rather than a routine patch |
| Parallel patch lines (2.12.0, 2.11.6, 2.10.11) | All three shipped on August 26, 2026, so 2.11 and 2.10 patches continue alongside the new minor | Know your minor line and move to its latest patch; older patches lose support once a newer one ships |
| Extension compatibility | Extensions are separate projects and are not covered by CKAN's patch guarantees | Check each extension's supported CKAN versions on every patch, not only on minor upgrades |
Why the minor line you run matters more than the patch number
The version number that decides your support position is the minor line, not the patch. CKAN targets about two minor releases a year, and the CKAN tech team supports the latest patch of the current minor version plus the previous minor version for security and bug fixes. A portal on any patch of a minor line that has fallen out of that window is outside active support, and the newest patch of that line is no longer the answer. Before you plan any patch work, confirm which minor version you run, which minor versions are currently supported, and which patch is the latest for each, using the official CKAN releases policy. Record those three facts in your change request so the scope is clear to approvers.
Patching cannot fix an unsupported minor line. Patch releases do not carry backwards-incompatible changes, new features or schema changes, so they keep you current within your minor line but cannot move you onto a line the project has stopped supporting. A portal two minor releases behind needs a minor upgrade first, and minor releases may include backwards-incompatible changes that affect your extensions, templates and configuration. Treat that move as separate work with its own compatibility audit, test environment and rollback plan, and use the sibling upgrade guides for the specific breaking changes between your current line and the target. Do not attempt to bring an older line current by stacking patch installs on it.
The practical check is to compare your running minor version against the supported list at the start of each planning cycle, not when a security advisory arrives. If you are on a supported minor line, your routine is patch application. If you are on a line that is about to lose support, schedule the minor upgrade while the previous line is still supported, so you have time for extension checks and testing. Ask your team or your partner to show the dated support status for each environment, including staging and any development copies, since these often drift onto older lines unnoticed.
What to prepare before applying a CKAN patch
A patch release is small by design, but it still changes running code on a live portal. These six items give you a known starting point, a way back, and a place to rehearse the change before production sees it.
Installed version and extension inventory
Record the exact CKAN version, every installed extension, and the version each one is pinned to, usually in the requirements.txt or setup.py of each extension. Note which extensions come from a fork or a local branch. The platform or development lead usually owns this list. Without it, you cannot tell whether a patch changed behavior or an extension did, and you cannot confirm that the extensions still support the patched version.
Database and file storage backups
Take a PostgreSQL dump of the main CKAN database and the DataStore database, and archive the file storage directory used for uploads. Confirm the backup can be restored onto a separate host, not just that the job reported success. The operations or database administrator usually owns this. A patch rarely touches data, but a failed patch is recovered from these copies, so restore testing matters more than the schedule.
Staging environment that mirrors production
Run the patch first on a copy of production with the same extensions, configuration, Solr and Redis versions, and a recent database restore. Compare pages, the API, search results, and background jobs before and after. The platform team usually owns the environment, and the portal owner signs off on the results. Differences in extensions or data volume are the usual reason a staging pass does not predict production.
Solr and Redis versions
Record the Solr and Redis versions in use and whether they run from packages, Docker images, or a managed service. CKAN publishes per-version guidance for Solr and Redis images, so confirm that the running versions still match the target patch's documentation. Check the index schema file that ships with your CKAN version. The infrastructure engineer usually owns these components, and changes to them should be planned separately from the CKAN patch.
Custom templates and configuration files
List every overridden template, custom public and asset file, and each configuration file, including ckan.ini and any environment-based settings. Compare these against the target patch's default templates and configuration examples. The portal developer usually owns this list. Template overrides are the most common place a patch shows up as a broken page, so knowing exactly which files you replaced tells you where to look first.
Release notes for the target patch
Read the release notes for each patch between your version and the target, and note any fixes that touch your extensions, templates, or the areas your portal uses heavily. Check the policy that patches exclude schema changes and new features, and confirm this for the specific release before scheduling. The portal lead or release owner usually owns this review, and the notes decide whether the change can follow the routine or needs a longer test.
CKAN releasesHow to apply a CKAN patch across dev, staging and production
This sequence moves a CKAN patch through development, staging and production in a fixed order, with a rollback point and named checks at each stage. The result is a patched portal whose search, DataStore, logins and background jobs have been verified and whose change record is complete.
Read the patch release notes first
Before touching any environment, the platform owner reads the release notes for the target patch on the CKAN releases page and the release policy. Confirm that the patch is within the supported line for your minor version, and note any changes to configuration, dependencies, templates or database migrations. Patch releases are documented as excluding schema changes and new features, so an unexpected migration or new required setting is a signal to stop and check with the maintainers or your partner before continuing. Record the current and target version numbers in the change ticket. This step is done when the ticket lists the version pair, the files or settings the notes mention, and a named approver for each environment.
Mark a rollback point in the test environment
The engineer responsible for the test environment captures a rollback point before any change. For a source install, this means a copy of the virtual environment or lock file, the CKAN configuration file, and a record of the installed commit or package versions. For a container deployment, it means recording the current image tag and the values file or manifest that defines it. Keep a note of the Solr and Redis versions as well, since those are not changed by a CKAN patch but must match what you saw working. This step is done when the rollback inputs are stored outside the server being patched and someone other than the author has confirmed they can be found.
Apply the patch to the test environment
The platform engineer updates the test instance to the target patch, using the same procedure that production will use: update the CKAN package or image tag, install any changed requirements, run the documented database migration command if the notes list one, and restart the web application and background workers. Use a copy of production-like data where possible so that search and DataStore behavior reflects real content. This step is done when the application starts cleanly, the version reported by the site matches the target patch, and the logs contain no new errors at startup.
Run extension and smoke checks in test
Before anyone signs off, the team runs the checks that are most likely to catch a regression. Load the front page, a dataset page, a resource page and the dataset edit form. Test one login, one logout and one API call that uses an API token. Confirm that each installed extension still loads by checking the plugin list and the logs, and run any automated tests your extensions provide. Where an extension has a published version table, confirm the installed version still appears as supported for the patched CKAN release. This step is done when every check is recorded as pass or fail with the observed result, and any failure has an owner.
Verify search, DataStore and logins after the test patch
The team checks the three areas where patch-level problems usually surface. For search, run a keyword query, a faceted filter and a search on a newly created dataset, then confirm that the search index responds and that background indexing jobs complete. For the DataStore, open a resource that is loaded in the DataStore, run a Data API query with a filter, and confirm that the read-only user can still read the table. For logins, sign in with a standard user account and a sysadmin account, and confirm that SSO sign-in works if you use it. Also check that background workers are processing queued jobs such as uploads and harvests. This step is done when all three areas pass in test and the worker queue drains as expected.
Take a backup immediately before production
Immediately before the production change window opens, take a fresh backup of the PostgreSQL databases (the main CKAN database and the DataStore database), the file storage used for uploads, and the configuration files. Confirm that the backup completed without errors and that you can list its contents or restore a sample table in a scratch location. Record the backup time, location and checksum or identifier in the change ticket. A backup taken days earlier is not a substitute, because data created in between would be lost on rollback. This step is done when the backup is verified and the ticket shows the time it was taken.
Apply the patch to production and run post-upgrade checks
The platform engineer applies the same steps used in test to production, in the same order, and restarts the web application and background workers. Once the service is back, repeat the smoke checks, the search, DataStore and login checks, and the worker queue check. Watch the application and worker logs for at least the first period of normal traffic, and compare error rates with the period before the change. If a check fails and the cause is not quickly identified, use the rollback point recorded earlier and restore from the verified backup if data changed. This step is done when all checks pass in production or the documented rollback has been completed and verified.
Record the result and close the change
The change owner records the outcome in the change ticket: the version applied, the time of the change, the rollback point used, the backup identifier, each check with its pass or fail result, and any follow-up items such as extension updates the notes mentioned. The record is shared with the people who approve changes and kept with the environment documentation so that the next patch starts from known facts. Note the date of the next patch review, so that the portal stays on a supported patch. This step is done when the ticket is closed with the full record attached and the environment documentation shows the new version.
How the patch routine differs by deployment method
A source install means your team pulls the CKAN code into a virtual environment and manages the runtime around it. A patch release updates the CKAN package itself, but the surrounding stack is yours to keep compatible. The CKAN install guide lists the baseline: Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx recommended for production. A patch does not change those minimums, but your host may have drifted from them.
- Dependency check: Confirm the Python, PostgreSQL, Solr and Redis versions on the host match the install guide before you install the patch.
- Pinned requirements: Install the patched release with the same requirements file your environment was built from, so transitive packages do not move unexpectedly.
- Extension reinstall: Reinstall or reconfirm each installed extension against the patched CKAN version, using the extension's own supported version table.
- Service restart: Restart the uWSGI workers and reload Nginx after the code and database steps are complete, then confirm the web and background worker processes both came back.
- Rollback copy: Keep the previous virtual environment or a tagged copy of the code so a failed restart can be reversed quickly.
Before you start, ask your team who owns each dependency version on the host, because a patch that looks small can still fail against an outdated system package.
In a container deployment, the patch is a new image, not an in-place change. The CKAN image must be rebuilt from the patched release so that the code, its Python packages and extensions are baked together. The install guide notes that Solr and Redis can run from Docker images tagged per CKAN version, so the supporting images must also match the release line you are targeting.
- Rebuild the CKAN image: Build a new image from the patched CKAN version and your extension layers, rather than editing a running container.
- Match supporting images: Check that the Solr and Redis image tags are the ones tagged for your target CKAN version, and pin them explicitly.
- Extension layers: Rebuild extension layers in the same build so each extension is installed against the patched CKAN, and record the resulting image digest.
- Rolling replacement: Roll the web and worker containers to the new image in a controlled order, and keep the previous image tag available for reversal.
- Configuration and secrets: Confirm environment variables and mounted configuration are unchanged across the new image, since they are supplied from outside it.
Confirm with your platform team how image tags are promoted between environments, because a rebuilt image that was never tested in staging is the most common reason a container patch surprises operators.
A packaged install takes CKAN from an operating system or vendor package repository. The routine depends on that package source, so the first step is to establish where the package comes from, which channel it follows, and whether its version is pinned. Without pinning, a routine system update can move CKAN to a release your extensions have not been tested against.
- Confirm the source: Identify the repository, the package name and the maintainer of the build your organization uses, and record them in the change plan.
- Pin the version: Lock the CKAN package to the current patch so that routine updates do not change it without a review.
- Check the patch is available: Confirm the packaging source has published the CKAN patch you intend to apply. Packagers may lag behind upstream releases, so verify rather than assume.
- Review packaging changes: Read any packaging notes that accompany the update, since defaults and file locations can differ from the upstream source install.
- Test before production: Apply the package update in a staging copy first, including extension checks and a worker restart.
Before you apply anything, ask your packaging source or internal platform owner for the exact package version they will deliver and how long they will keep the older patch available.
How a patch moves through environments and rollback points
The path starts with reading the release notes for the target patch, then applying it to a test copy of the portal and checking installed extensions. A decision gate decides whether production proceeds. Before any production change, take a backup, because rollback restores from that backup rather than reversing the patch. Post-checks after the patch confirm the portal, search index and DataStore still behave as expected.
Patch path from release notes to production, with the rollback branch from the pre-patch backup.
What makes applying a CKAN patch take longer
This table lists the factors that stretch a CKAN patch from a routine restart into a multi-step project. Read each row as a question to answer about your own portal before scheduling the work. The main takeaway is that custom code, the number of copies of the portal, and the absence of a tested rollback drive most of the effort, while the patch itself is usually the smallest part.
| Driver | Why it adds effort | How to reduce it |
|---|---|---|
| Custom extensions and pinned versions | Each pinned extension must still load and pass its tests on the patched release, and some pins lag behind the core version. | Keep an inventory of extensions with their pinned versions and repository support notes, and test each one on the patch before production. |
| Custom templates and theme overrides | Overrides copied from core templates can silently miss changes, so pages may render incorrectly after the patch even when the app starts. | Limit overrides to what is needed, record which core templates they copy, and check key pages after each patch. |
| Size of the DataStore and search index | Large datasets make database backups, index rebuilds and verification runs longer, which lengthens the maintenance window. | Measure current sizes before scheduling, take backups ahead of the window, and confirm whether a reindex is needed after the patch. |
| Number of environments that need the patch | Development, staging and production each need the same patch applied and checked, and drift between them makes results hard to compare. | Keep environments built from the same configuration, apply patches in the same order, and promote changes through them one at a time. |
| Number of separate hosts or containers | Each web, worker and scheduler instance must restart on the same release, and mixed versions can cause errors during the rollout. | Use a documented restart order, confirm every instance runs the same version afterward, and script repetitive steps. |
| Tested rollback | Without a rehearsed rollback, a failed patch can turn into an extended outage while the team works out how to restore the previous state. | Rehearse restoring the code, configuration and database from a backup in a non-production environment before the production window. |
What applying CKAN patches costs and what it needs from your team
What does a CKAN patch routine cost?
No public price applies, and DeployOpen does not publish one, so the cost comes from the written scope. The main components are the work of applying each patch in a staging copy, the backup and restore check before production, checks on installed extensions, and the retest after the change. Set-up work such as building the staging environment and writing the runbook is one-time. Applying each new patch is recurring, and its size depends on how many environments, extensions and custom templates the portal runs. Ask for the cost of each release cycle separately from the one-time set-up.
How long does applying a CKAN patch take?
The duration depends on the portal's size, the number of environments and how many extensions need checking, so ask for it in the written scope rather than relying on a general figure. Patch releases are the smallest kind of CKAN change because they do not include schema changes or new features, which keeps the review narrow. Time still goes to confirming the release notes, rehearsing the update on a copy of production data and running smoke tests. Ask the provider to state the duration per environment and to name the steps that sit on your team's calendar.
What does a patch need from our own staff?
Your staff need to supply access and decisions, not hours of hands-on upgrade work. Typical needs include an owner who approves the change window, someone who knows which extensions and custom templates are installed, access to the staging and production servers, and a business contact who can confirm that key datasets and pages work after the update. Expect your team to review the test results and sign off. Confirm in writing who holds each of these roles, because delays usually come from unassigned approvals rather than from the technical work.
Can we apply CKAN patches ourselves?
Yes, many teams apply patch releases in house, and the CKAN release policy describes patch releases as not breaking backwards compatibility. The routine is the same whether an internal team or a partner runs it: read the release notes, back up the database and file storage, test in a copy, apply the update, then verify. The risk sits in extensions, because a patch can still expose an extension that depends on behavior your team has not tested. Consider a partner when no one has capacity to run the routine on schedule, or when extensions are numerous or custom.
Do CKAN patch releases ever require a database migration?
The CKAN release policy states that patch releases exclude schema changes, so a patch should not require a database migration. That is the reason patches are the lowest-risk routine. Do not rely on this alone, though. Confirm each release's notes before applying it, since an extension or a local change can add its own migration step, and keep a tested database backup before every update. If a release does include a migration, treat the work as a minor upgrade and plan it accordingly.
What is the difference between a CKAN patch and a minor upgrade?
A patch changes only the last number in a version, such as moving between two releases within the same minor line, and it does not include schema changes or new features. A minor upgrade moves to the next middle number and may include backwards-incompatible changes, which means extensions, templates, configuration and Python or Solr requirements can all change. The cost and planning differ accordingly, so ask a provider to price patches and minor upgrades as separate items in the written scope.
What should a written scope for patch work include?
A written scope should name the portal and environments covered, the CKAN versions in and out of scope, and the extensions and custom templates to be checked. It should also list the backup and restore check, the staging rehearsal, the production window, the smoke tests and the retest, along with who approves each step. Ask whether the price covers one release or a standing routine, what happens when a security patch arrives out of schedule, and how findings from extension checks are reported. Confirm that the scope states what your team must supply.
How DeployOpen scopes, applies and supports CKAN patches
DeployOpen plans, applies and documents CKAN patch releases inside the client's own infrastructure, from the first version inventory to the handover of a repeatable routine. Engagements are fixed-scope, with the scope agreed in writing before any environment is touched.
How we scope
- Inventory every CKAN environment, its installed version and each extension version in use
- Agree in writing which environments, patch levels and extensions the engagement covers
- Confirm the maintenance window, backup and rollback expectations with your operations team
How we build
- Apply the patch first in a staging copy that mirrors production configuration and extensions
- Run the smoke tests, search checks and DataStore queries your portal depends on before sign-off
- Record each patch step, configuration diff and rollback point in a runbook for your team
How we hand over
- Deliver a patch runbook with a routine for each environment, including who approves each release
- Walk your engineers through the procedure and leave the checklist they will run next time
- Document the extension compatibility notes that a later minor upgrade will need to address
How we support
- Offer ongoing patch application and testing as a retainer, scoped in writing against your environments
- Watch new CKAN patch releases and flag those that affect your installed extensions
- Retest after each applied patch and confirm the portal is on the latest supported patch

