When a CKAN migration or portal upgrade becomes outside work
A CKAN migration becomes outside work when the target is clear and the scope can be written down: a defined destination release, a defined set of datasets and metadata, and a defined list of custom extensions to carry across. If your open data team holds a spreadsheet, a commercial catalog, or an end-of-support CKAN 2.x portal with custom code, the short answer is that the data mapping is often best kept in-house, while the extension compatibility, infrastructure and cutover work is where a partner adds the most. Most engagements are fixed-scope, so the boundary between the two should be agreed in writing before work starts.
The usual triggers are end of support for your running minor version, a move to new hosting or a new infrastructure standard, a consolidation of several catalogs into one portal, and a new requirement to publish DCAT-based metadata. Check the CKAN releases policy to confirm which minor versions currently receive fixes, since patch releases lose support once a newer patch is out. Minor releases may include backwards-incompatible changes, so a portal several minors behind usually needs a staged path rather than a single jump, and the stages should be confirmed against the release notes for each step.
Internal teams often keep the data work, because they know what the datasets mean, who publishes them and which fields matter for their users. The work they tend to hand off is the extension and infrastructure side: checking whether each custom extension still loads on the target release, adapting the ckanext-dcat or SSO configuration where used, moving DataStore and search services, and rehearsing the cutover. Ask any partner to show how they will test extensions against the target version and what they will hand over, including documentation your team can run after the engagement ends.
What a CKAN migration includes and what you receive at the end
A CKAN migration moves datasets, metadata, users and custom code from a source catalog or an older CKAN 2.x portal into a supported target. The cards below follow the work in order, from inventory to handover, and name the deliverable each stage produces. The full scope, deliverables and timeline are agreed in writing before work starts.
Source inventory and metadata mapping
The work starts by listing every dataset, resource, organization, user role, tag, group and custom field in the source, whether it is a spreadsheet, another catalog or an older CKAN site. Each source field is then mapped to a target field in the CKAN metadata schema, with rules for controlled vocabularies, date formats and missing values. Check how the mapping handles datasets that do not fit the target schema, because those decisions drive most later rework. Deliverable: a field mapping document signed off by the data owner.
DCAT extensionExtension and theme assessment
Every installed CKAN extension, custom plugin and theme override is reviewed against the target CKAN version. The assessment records which extensions are maintained, which need code changes, and which can be dropped because the target release covers the same feature. Pay attention to Python and Solr dependencies, since they often change along with the CKAN version. Deliverable: an extension compatibility report with a keep, change or remove decision for each item.
Data transformation and import
Migration scripts convert source records into CKAN packages through the API and load file resources. Where a resource is a CSV or spreadsheet that should be queryable, the import loads it into the DataStore, which uses a separate PostgreSQL database with a read-only user, and XLoader handles the file loading. Confirm how large files, failed loads and encoding errors will be reported and rerun. Deliverable: a migration script set and a validation report comparing record counts and sample values before and after import.
DataStore docsTarget environment build
The target portal is built on the chosen CKAN release, with PostgreSQL, Solr and Redis, plus uWSGI and Nginx for production. The build is configured in the client's own infrastructure, so hosting, backups and access control follow the client's policies. Confirm the Python and Solr versions required by the target release before provisioning, because the installation requirements differ between releases. Deliverable: a deployed staging environment and a configuration record for each component.
Install from sourceCutover and redirects
Cutover is a planned switch from the old portal or catalog to the new one. It includes a final data sync, a freeze window for publishers, DNS or proxy changes, and redirects that map old dataset and resource URLs to their new addresses so that links and API consumers keep working. Agree the rollback point in advance. Deliverable: a cutover runbook, a redirect map and a post-cutover check list.
Handover and operating documentation
Handover moves the portal to the client's team or support provider. The client receives the updated runbook covering backups, patching, Solr reindexing, user and sysadmin management, and extension updates, along with the migration scripts and the test results. Ask whether the handover includes training for the team that will run the portal and who owns the first patch cycle after go-live. Deliverable: an updated runbook and a handover session record.
What drives the cost and duration of a CKAN migration
This table lists the factors that move effort in a CKAN migration, why each one changes the work, and one way to keep it under control. Read it before requesting a quote, because the same portal can vary widely in effort depending on these inputs.
| Driver | Why it moves effort | How to reduce it |
|---|---|---|
| Number of datasets and resources | Every dataset and resource must be mapped, transformed, validated and checked after load, so effort grows with record count and file count. | Confirm which datasets are live, retired or duplicated, and migrate only the active set first. |
| Metadata quality and schema differences | Old catalogs often use different field names, codelists and required fields, so mapping and cleanup work scales with inconsistency. | Profile a sample of records early and agree a target schema, such as a DCAT profile, before mapping starts. |
| DataStore tables to reload | Structured resources must be loaded again into the DataStore and reindexed, and large or malformed files need repeated loading runs. | Inventory which resources need DataStore loading and decide which files can stay as links. |
| Custom extensions and version dependencies | Extensions tied to an old CKAN release or Python version may need porting, rewriting or retirement before the upgrade can complete. | List every extension with its source, version and owner, and check each against the target CKAN release. |
| Number of publishers and organizations | Each organization needs its own mapping, membership, roles and sign-off, and publisher questions multiply during testing. | Group publishers by shared metadata patterns and assign one contact per organization for review. |
| Authentication changes such as SAML2 | Moving users to a new identity provider changes account matching, role assignment and sysadmin control, which needs testing with real accounts. | Decide early whether accounts are migrated, re-linked or created at first login, and test with a pilot group. |
| Number of environments and cutover windows | Each environment needs its own build, configuration and test pass, and every cutover adds rehearsal and rollback planning. | Rehearse the migration on a staging copy and agree one cutover window with a documented rollback path. |
| Redirects and integrations | Harvesters, APIs and external links that point to old URLs must be identified and repointed or redirected. | Collect a list of consumers of the old API and URLs and confirm each owner before cutover. |
How a legacy portal moves to a supported CKAN release
The path starts with a source inventory of datasets, resources, extensions and custom code, then maps metadata to the target schema. The key decision comes next: each extension is ported, replaced or retired, and that choice sets the build work. The staging build on the target release, with PostgreSQL, Solr and Redis, is loaded and its DataStore reloaded, then checked against the inventory before cutover with redirects. A post-cutover support window closes the path. Confirm each extension's compatibility with the target release before the build starts.
Migration path from a legacy CKAN portal to a supported release, with the extension decision that sets the branch.
How a CKAN migration runs from inventory to cutover
The sequence turns an old catalog or legacy CKAN 2.x portal into a supported target with reconciled data, a rehearsed cutover and a handover your team can run. Each phase closes with a named output that you can sign off before the next phase starts.
Run discovery and inventory
Start by listing what the source actually holds: datasets, resources, organizations, users, harvest sources, custom extensions, templates, and any spreadsheets or other catalogs feeding the portal. For a legacy CKAN 2.x portal, record the exact version and patch level, the Python, PostgreSQL and Solr versions in use, and whether a DataStore exists. DeployOpen runs this with your data owners and platform team. The output is a signed inventory that states what is in scope, what is excluded, and which records are the system of record. Done means every source has an owner and a count.
Map metadata and assess extensions
Build a field-level mapping sheet from each source schema to the target CKAN schema, including required fields, controlled vocabularies, date and licence formats, and any DCAT profile you publish against, such as DCAT-AP via the ckanext-dcat extension. In parallel, review every custom extension and theme for compatibility with the target CKAN minor release, noting which can be upgraded, replaced by a maintained extension, or retired. The output is a signed mapping sheet and an extension decision register. Done means every source field has a target or an explicit drop decision.
Build the target and staging environment
Provision the target on the infrastructure you have approved, with PostgreSQL, Solr and Redis configured to the versions the chosen CKAN release requires, and the DataStore database kept separate with its write and read-only users. Install the target CKAN release from source or from your approved packaging, then deploy the mapped extensions and theme. Confirm the release against the CKAN release policy first, because only the latest two minor versions receive fixes. The output is a staging environment and a build record listing every component version. Done means a smoke test passes on an empty catalog.
Run trial migrations with reconciliation
Load the source data into staging through scripted extraction and transformation, and repeat the run until the output is stable. Compare record counts, field completeness, organization and user assignments, resource links, and DataStore row counts between source and target. Where files are loaded into the DataStore, confirm the loader in use (XLoader is the supported option, DataPusher is legacy). Keep a log of each trial. The output is a reconciliation report that lists every difference and whether it was fixed, accepted or deferred. Done means the open differences are approved by the data owner.
Rehearse cutover and go-live
Write a cutover runbook with the freeze point, final extract, load order, DNS or proxy switch, search index rebuild, harvester reconfiguration, and rollback steps. Rehearse it end to end on a copy of production at least once, timing each step and recording failures. Agree who approves go-live and who can invoke rollback. The output is a rehearsed cutover runbook with the rehearsal log attached. Done means the rehearsal finished inside the window agreed in the written scope, and the rollback path was tested.
Go live and monitor the cutover
Freeze the source, run the final load, verify it against the reconciliation checks, switch traffic, and confirm search, the DataStore API, harvesters and user logins work. Keep the source read-only for a defined period so rollback stays possible. Record the time of each step and any deviation from the runbook. The output is a go-live record with post-cutover checks signed by the platform owner. Done means the checks pass and the source is retired from publishing.
Hand over and close hypercare
During the agreed hypercare period, DeployOpen works through incidents, publisher questions and first patch cycles with your team in the loop, then transfers operations. The handover pack includes the runbooks, configuration and secrets locations, upgrade notes, the extension register and the reconciliation history. Ask in the written scope what hypercare covers, how long it lasts, and whether an ongoing support retainer follows. The output is a signed handover pack. Done means your team has run one routine patch or restore without assistance.
How the migration path changes by starting point
A spreadsheet or CSV export is the simplest starting point because there is no existing platform behavior to preserve. What moves is the row-level metadata: titles, descriptions, publishers, licenses, dates, tags and resource links. What gets rebuilt is nearly everything around it, including the metadata schema, the mapping from columns to CKAN fields, the import scripts, the organization structure and the publisher workflow. The main risk is data quality, not tooling. Inconsistent license values, duplicated titles, broken links and free-text publisher names will all reach the portal unless they are cleaned first.
- Schema mapping: Map each column to a CKAN dataset field or a custom extra, and decide early which fields are mandatory.
- Controlled vocabularies: Normalize licenses, categories and publisher names before import, since variants create duplicate facets.
- Resource links: Check every URL and decide whether files are uploaded, linked or loaded into the DataStore through XLoader.
- Ownership: Assign each dataset to an organization and a named maintainer so that the import does not create orphaned records.
- Re-import rules: Agree on a stable identifier so that later corrections update existing datasets instead of creating copies.
Confirm with your team whether the spreadsheet is the authoritative source after go-live, because a one-time import and an ongoing feed need different tooling and different owners.
An external catalog is a source system with its own metadata model, such as another data portal or a catalog that exposes DCAT RDF. Where the source publishes DCAT, the ckanext-dcat extension can provide an RDF harvester and DCAT-AP schemas, so much of the metadata can be mapped rather than retyped. What moves is the dataset metadata and, depending on the source, resource links. What gets rebuilt includes the profile mapping, harvest jobs, and any fields the target schema needs but the source does not supply. The risk concentrates in semantic mismatch: two catalogs can both say "modified" while meaning different things.
- Version fit: Confirm which DCAT-AP version the source emits and which version the target CKAN release supports. Support for ckanext-dcat depends on the CKAN version, so verify compatibility for your target release before committing to this path.
- Field mapping: Document how source properties map to CKAN fields, including publisher, license, temporal and spatial values.
- Harvest behavior: Test how updates, deletions and identifier changes are handled between runs.
- Source access: Confirm the source's rate limits, authentication and whether it is stable enough for a scheduled harvest.
- Ownership of records: Decide whether harvested datasets are read-only copies or can be edited locally, since that choice affects every later update.
Before you rely on the harvester, ask the source owner whether their DCAT output is complete and whether they will keep it stable through your migration window.
A legacy CKAN 2.x portal moves the most, and it carries the most risk because the old site's behavior is part of what users depend on. What moves is the database contents, uploaded files, DataStore tables, users, organizations, and API tokens where the migration plan keeps them. What gets rebuilt is often the custom extensions, which may depend on APIs, templates or Python versions that changed between releases. The CKAN release policy distinguishes patch releases, which do not break backwards compatibility, from minor releases, which may include backwards-incompatible changes, so every version step needs its own compatibility review.
- Version path: Plan the upgrade one minor release at a time and confirm which supported release is the target, since only the latest two minor versions receive fixes.
- Extension review: Inventory each custom extension, check its compatibility with the target release, and decide whether to port, replace or retire it.
- Infrastructure change: Account for Python, PostgreSQL, Solr and Redis version requirements, and whether the new hosting differs from the old.
- DataStore and uploads: Move DataStore databases and file storage together, then confirm the read-only user and permissions were recreated correctly.
- Rollback: Keep a tested restore point of the old system and its database until the new portal has been verified.
Ask for a written compatibility matrix covering each extension and the target release before agreeing on scope.
Why extension compatibility decides the upgrade path
Custom extensions, not the core release, usually set the pace of a CKAN upgrade. CKAN's release policy separates two kinds of release. Patch releases do not break backwards compatibility and contain no schema changes or new features, so moving within a minor version is normally low risk. Minor releases, such as the step from 2.10 to 2.11, may include backwards-incompatible changes, including changes to the plugin interfaces that extensions depend on. Only the latest patch of the current minor version and the latest patch of the previous minor version receive security and bug fixes, and an older patch loses support once a newer one is out. A portal that is several minor versions behind may therefore need to move through intermediate releases in order, testing each step, rather than jumping directly to the newest release.
Start by inventorying every extension, theme and custom plugin the portal loads, including the version each one is pinned to and whether it is maintained upstream. For each one, confirm which CKAN versions it declares support for. The ckanext-dcat and ckanext-saml2auth projects, for example, publish their supported CKAN versions in their repositories, and a third-party extension that stops at an older minor release will block the upgrade until it is resolved. Also record Python, PostgreSQL and Solr requirements for each target release, since a newer CKAN may require a newer Python or Solr than the extensions or the host operating system support today. Confirm these values against the release notes for the exact target version before planning the sequence.
For each blocking extension, decide between three outcomes: port the code to the new plugin interfaces, replace it with a maintained extension that covers the same function, or retire the feature and move its users to a standard CKAN capability. Use evidence to choose. Collect the extension's automated test coverage, the list of plugin interface and template changes between the current and target versions, the Python and Solr versions it needs, and how many publishers or workflows depend on it. An extension with thin tests, no upstream activity and deep template overrides is usually a porting cost that is hard to estimate, so it is a candidate for replacement or retirement. Record each decision in writing, since it determines the scope and the test plan for the upgrade.
What goes wrong in CKAN migrations and how to prevent it
CKAN migrations usually fail at the seams between old and new: metadata that did not map, data that stopped loading, links that no longer resolve, and extensions that were never tested on the target release. Each risk below has a prevention step that can be checked before cutover, so the team can judge whether the migration is ready to switch over.
Metadata lost in field mapping
Legacy catalogs and spreadsheets rarely map one to one onto the CKAN schema. Custom fields, multi-value tags, licence labels and publisher codes can be dropped or flattened without any error message. Before loading, build a field mapping table that names the source field, the target CKAN field or extra, and the rule for each value. After loading, compare record counts and sample field values per publisher against the source. Ask the partner to show the reconciliation output, not just a success message.
DataStore resources fail to reload
Resources moved into the DataStore can fail to load on the new instance, or load while the read-only user loses its grants. Dataset pages then look healthy while the Data API and SQL queries return errors or stale rows. Check that the write and read-only database users exist on the target, that permissions were re-applied after restore, and that each migrated resource loads through XLoader with a row count matching the source. DataPusher is legacy, so confirm the loader path before the migration starts.
DataStore docsBroken links after URL changes
A new hostname, path or CKAN version can break resource URLs, dataset links, bookmarks and API calls made by harvesters and downstream applications. Consumers often find out only when their jobs fail. Build a redirect map from every old dataset, group and organization URL to its new address, and list the API endpoints external consumers call. Test a sample of each type from outside the network before cutover, and tell known consumers the date their integrations must point to the new endpoints.
Extensions that fail on the target release
Custom and third-party extensions are the most common reason a CKAN upgrade stalls. An extension written for an older minor version can fail to load, or load and then misbehave, when the target release changes its interfaces. Minor releases may include backwards-incompatible changes, so inventory every extension, its version pin and its maintenance status first. Run each one on a staging copy of the target release and record which plugins load, which templates render and which actions still run.
Release policySearch index not rebuilt
After migration, the Solr index can still reflect old data, so search results, facets and counts disagree with what the dataset pages show. Users then report datasets as missing or duplicated. Plan a full index rebuild on the target instance after all datasets are loaded, and check facet totals and a set of known search terms against the database. Confirm the Solr version the target release expects before rebuilding, because the index must match the installed search stack.
Cutover without a rollback path
A migration that switches DNS and retires the legacy portal in one step leaves no way back when a defect appears after launch. Keep the legacy instance readable and its database backup restorable until the new portal has run through a staging soak period and a live period agreed in advance. Write the rollback steps down, name who decides to roll back and by what criteria, and rehearse the restore on a copy. A rollback that has never been run is an assumption, not a control.
Which migration work teams keep in-house and which they outsource
This table lists each migration row, who usually holds it, and the skills it needs, so you can split the work between your team and a partner. Most teams keep the data and publisher rows and weigh the infrastructure and extension rows against their own Linux, database and Python experience. Use it to decide where you need outside help, then confirm the split against your own skills and staffing.
| Migration row | Usually held by | Skills it needs |
|---|---|---|
| Source inventory | Internal data or catalog owner, with partner support | Data stewardship, knowledge of the current catalog and its custom fields |
| Metadata mapping | Shared: internal data stewards and a CKAN-experienced engineer | Data stewardship, DCAT or local schema knowledge, Python for transformation scripts |
| Publisher communication | Internal, usually the portal owner and data publishers | Stakeholder management, data stewardship, clear onboarding material |
| Extension porting | Often outsourced, or built by an internal Python developer | Python and CKAN plugin development, testing against the target minor release |
| Infrastructure build (PostgreSQL, Solr, Redis, web server) | Internal platform team or partner, depending on staffing | Linux and database administration, search operations, web server configuration |
| Data load and validation | Shared: engineers run the load, stewards check the results | Python, data stewardship, PostgreSQL and Solr query skills |
| Cutover | Shared, with the internal team owning the go or no-go decision | Linux administration, DNS and redirect planning, rollback procedures |
| Post-go-live support | Internal team, or a retainer if staffing is thin | Patch discipline, Solr and Python maintenance, incident response |
What the client must provide before a CKAN migration starts
The day-one inputs decide whether a migration can be scoped at all. The client should provide read access to the source portal, or an agreed export in a documented format, and a copy of the current database and file storage. Without the database dump and the uploaded resource files, the team can only move metadata and cannot confirm that DataStore tables and attachments survive the move. Alongside that, the client must supply the list of installed extensions with exact versions and any local code, because a legacy CKAN 2.x portal often depends on custom plugins that have to be ported, replaced or retired before the target release runs. Ask for the metadata schema in use, including any scheming definitions, controlled vocabularies and mappings to DCAT if publishers rely on it. Confirm the current CKAN version and patch level with the platform owner, since the upgrade path depends on it. Also confirm the source version against the CKAN releases policy to see whether it is still supported.
Hosting access is the second prerequisite. The target environment must sit in the client's own cloud account, data center or air-gapped network, and the client must grant the team administrative access to provision PostgreSQL, Solr, Redis and the web tier there. Confirm early which Python, PostgreSQL and Solr versions the client's standard images allow, because the install prerequisites in the install from source guide set minimum versions that older images may not meet.
The client must also name owners who can make data quality decisions, such as which datasets to retire, which to merge, and which records with broken links or missing licenses are fixed or excluded. Those decisions drive most of the cleanup effort, so they should be recorded before the first test load. Finally, agree a cutover window with publishers, and identify the approvals that gate go-live: sign-off from the data owner, the security or compliance function, and the business owner of the portal. Each approval should be written down with a named approver before work starts.
Questions buyers ask about CKAN migration cost, time and effort
What drives the cost of a CKAN migration?
The biggest cost driver is how much work sits between the old portal and the target release. Cost usually follows four things: the number of datasets and resources to move, how much metadata needs mapping or cleaning, how many custom extensions and themes must be ported or replaced, and how much of the DataStore and search index must be rebuilt. Infrastructure work for PostgreSQL, Solr, Redis and the web server adds to this. In a written quote, ask for each of these as a separate line item, state which environments (test, staging, production) are included, and confirm who pays for cloud or data center resources during parallel running.
How long does a CKAN migration take, and why does it depend on extensions?
Duration depends mostly on the extensions. A portal that runs only core CKAN features moves faster than one with custom schemas, harvesters, authentication plugins or theme code, because each extension must be checked against the target version and often rewritten or retested. CKAN minor releases may include backwards-incompatible changes, so every extension that touches changed APIs needs its own test pass. Ask the vendor for a timeline built from an extension inventory, and confirm which milestones (inventory, trial migration, user acceptance, cutover) carry their own sign-off.
Can our internal team migrate the portal alone?
A team with strong Linux, PostgreSQL and Python skills can often run the migration, but the work is more than installing a newer version. It requires a trial migration against a copy of production data, extension compatibility checks, Solr and Redis configuration, and a rollback plan. Teams often underestimate the time needed to test, and migrations usually compete with day-to-day portal operations for the same people. Assess your team's skills in each area, the time they can give, and whether they have run a CKAN production upgrade before.
What does the client need to provide for a CKAN migration?
The client provides access and decisions, and the work moves faster when these are ready at the start:
- Access to the current production server, database backups, and the source code of every custom extension and theme
- A list of publishers, organizations, users and their roles, plus which accounts are active
- Metadata standards the portal must follow and any schema changes approved by data owners
- Hosting accounts, network access and change windows for the test and production environments
- A named decision maker for acceptance testing and cutover
Ask the provider to confirm each item in writing so gaps surface during scoping rather than during cutover.
Can a legacy CKAN 2.x portal jump straight to the latest release?
Not always. CKAN targets about two minor releases a year and supports only the latest patch of the current minor version and the previous minor version, so an older 2.x portal may need intermediate upgrades before it reaches a supported release. Minor releases can include backwards-incompatible changes, and extensions must be compatible with each step. Confirm the current support window on the CKAN release policy page, then ask the provider for an upgrade path that lists each intermediate version, its extension checks and its test gates.
How is DataStore data handled during a migration?
DataStore data lives in a separate PostgreSQL database with a write user and a read-only user, so it needs its own migration plan. The team must confirm that resource files, DataStore tables and their indexes move together, and that uploads and linked files are reloaded through XLoader, the officially supported loader, since DataPusher is legacy. Large tables can take significant time to reload, so ask how long a full reload is expected to take in your environment, and whether the read-only user and permissions are recreated and tested after cutover.
What happens after go-live, and what should the quote cover?
After go-live, the portal still needs patch intake, extension checks on each release, backup testing, and user support. These costs recur and are separate from the one-time migration. A written quote should state the warranty or stabilization period after cutover, the handover documents, the training provided, and whether ongoing support is a separate retainer. Ask for the retainer terms, response expectations and the upgrade schedule in writing, and confirm what happens to any issue found after the stabilization period ends.
How DeployOpen scopes, delivers and hands over a CKAN migration
DeployOpen plans and carries out CKAN migrations and portal upgrades inside the client's own infrastructure, from inventory of the existing catalog through to a tested target release. Each engagement is scoped in writing before work starts, and the client receives the documentation and runbooks needed to operate the result.
How we scope
- Inventory the current CKAN version, installed extensions, custom code and dataset counts before agreeing any work.
- Map source metadata fields and any DCAT or spreadsheet inputs to the target schema in a written mapping document.
- Agree in writing which datasets, resources, users, organizations and DataStore tables move, and which are retired.
How we build
- Stand up a staging copy of the portal on the target CKAN release and its PostgreSQL, Solr and Redis dependencies.
- Port or update custom extensions to the target minor version, then test each one against the migrated data.
- Run migration scripts repeatedly on staging, reconcile record counts and metadata against the source, and log every exception.
How we hand over
- Deliver a cutover runbook with rollback steps, backup checkpoints and the order of database, search index and configuration changes.
- Provide reconciliation reports showing source and target counts, rejected records and how each exception was resolved.
- Document the final configuration, extension versions and access model so the client's own team can operate the portal.
How we support
- Support after go-live is available as a retainer covering patch releases, extension compatibility and fixes.
- Scope any follow-on minor version upgrade as a separate written engagement, since minor releases may contain backwards-incompatible changes.
- Confirm with DeployOpen during scoping which support hours, response expectations and testing cadence the retainer includes.

