Migrate from DKAN to CKAN without breaking your public catalog
The short answer is that moving a DKAN catalog to CKAN means mapping metadata, moving files and planning links, and each of those takes deliberate work before any script runs. DKAN, which runs on Drupal, publishes its catalog as a DCAT-US file at /data.json that conforms to the Project Open Data schema v1.1, and it exposes a metastore API at /api/1/metastore. CKAN keeps its own dataset, resource and extras model, so every DKAN field has to land in a CKAN field, a custom extra or a documented decision to drop it. Read the DKAN harvest documentation to see how DKAN describes its catalog export before you draft the mapping.
The scope comes down to two measurable questions: how much of the catalog needs field mapping, and how many files and tabular resources must move. A catalog that uses only standard Project Open Data fields is a far smaller mapping job than one with custom fields, several publishing organizations or dataset types that vary. Export /data.json and pull the metastore records for every dataset type you publish, then count the distinct field patterns. Next, separate resources that are uploaded files from resources that are remote links, because uploaded files must be copied into CKAN storage while links need to be checked and kept. Tabular resources add a further step, since they may also need loading into the CKAN DataStore.
Keep the public catalog working through the cut-over by treating old DKAN addresses as part of the scope from day one. Dataset landing pages, resource download links and any outside tool that reads /data.json will fail silently if nobody plans for them, and public users rarely report broken links quickly. Ask your implementation partner for the field-by-field mapping in writing before any data moves, and confirm which external consumers depend on the Project Open Data structure, since some may need a compatible export after the move. Agree on who signs off each mapping decision, because the publishers who know the metadata are rarely the people who run the portal.
Which DKAN features map cleanly to CKAN and which do not
This table compares DKAN features with their closest CKAN equivalents and the work each one needs. Read the Action column first: Direct rows copy across, Value transform rows need conversion, Custom schema rows need a field CKAN does not provide by default, Owner decision rows need a choice from the data owner before import, and Rebuild rows have to be redone in CKAN. The main takeaway is that catalog metadata moves with some decisions, while themes, custom modules and API clients have to be rebuilt in CKAN.
| Source capability | CKAN equivalent | Migration notes | Action |
|---|---|---|---|
| Title and description | Dataset title and notes | Copy both after removing Drupal markup from descriptions before loading. | Direct |
| Modified date (Project Open Data required field) | Dataset metadata_modified | CKAN sets metadata_modified on import, so keep the source date in a custom field. | Custom schema |
| Identifier (Project Open Data required field) | Dataset name (URL slug) plus a custom identifier field | Slugs must be unique and lowercase. Keep the DKAN identifier so harvested records and old links can be matched. | Value transform |
| Publisher and contact point (Project Open Data required fields) | Organization and maintainer fields | Publisher usually maps to the owning organization. Confirm which person each contact point names before filling maintainer fields. | Owner decision |
| Access level (Project Open Data required field) | Private flag or a custom field | CKAN has no standard access level field. Decide how public, restricted and non-public values map to private datasets or a custom field. | Owner decision |
| DKAN organizations | CKAN organizations | Map each DKAN organization to one CKAN organization. Agree the list and owners before import, since every dataset needs an owning organization. | Owner decision |
| Distributions | Resources | Download files to your storage and point resource URLs there. Normalize format and media type values to the strings your CKAN portal uses. | Value transform |
| Drupal roles and accounts | CKAN users, sysadmins and organization roles | Plan for password resets and recreate accounts in CKAN. Assign organization roles again after import, based on current access reviews. | Owner decision |
| Drupal themes and custom modules | CKAN themes and extensions | Drupal themes must be rebuilt. Custom module behavior needs a CKAN extension or a documented decision to drop it. | Rebuild |
| DKAN metastore API at /api/1/metastore | CKAN Action API, such as package_show and package_search | Endpoints and response shapes differ, so update scripts and consumers. Confirm each client's needs before cut-over. | Rebuild |
Documented export and import paths from DKAN to CKAN
These are the documented building blocks for moving DKAN datasets and resources into CKAN. Your team must confirm whether a DKAN-specific importer exists for the target CKAN version before choosing a path, because that decision changes how much mapping and scripting you own. The cards cover the catalog sources, the scripting client, the DCAT harvester and the DataStore loaders.
Read the DKAN catalog
DKAN publishes a DCAT-US catalog at /data.json, which follows the Project Open Data schema v1.1, and a metastore API at /api/1/metastore. Compare the two sources, because the metastore record may carry fields the catalog file omits. Check which fields are filled for your datasets, including distribution URLs, publisher and modified dates, and whether unpublished records appear. Those gaps set the size of the field mapping work.
Script packages with ckanapi
The ckanapi Python client calls the CKAN action API, so a script can run package_create for each mapped dataset and then upload its resource files. Store the DKAN identifier on every dataset so a rerun updates existing records instead of creating duplicates. Confirm that the target schema accepts every mapped field before the first full run, and decide which CKAN organization each DKAN publisher maps to.
Harvest DCAT RDF with ckanext-dcat
The ckanext-dcat RDF harvester fits only if your DKAN site can emit DCAT RDF, because the harvester reads the RDF the source publishes. Confirm the RDF output and its endpoint in your own DKAN version before you plan around it. The extension is supported on CKAN 2.10 and 2.11, so check your target release against that list first. If the source cannot emit RDF, this path drops out and the scripted path carries the work.
ckanext-dcat repositoryLoad tables with XLoader
XLoader is the officially supported tool for loading uploaded or linked files into the CKAN DataStore, so plan it for tabular DKAN resources. Each loaded table then serves row-level queries, downloads and SQL through the Data API. Check that your resource formats are ones XLoader handles, that the CKAN server can reach the files during the load, and that the DataStore database and its read-only user are configured before the batch run.
CKAN DataStore docsDataPusher is legacy
DataPusher appears in older guides and examples for DataStore loading, and the CKAN documentation now treats it as legacy, so do not build the pipeline around it. If an earlier runbook names DataPusher, replace that step with XLoader and test the change on a copy of one dataset first. Confirm with the documentation for your CKAN version which loader your installation ships with and supports.
How metadata, files and redirects move through the cutover
The diagram starts on the Drupal host, where the DKAN site exports its data.json catalog and metastore records, and where resource files sit in DKAN file storage. These cross into the migration workstation, where cleaning produces candidate CKAN fields that a reviewer approves in the mapping sheet before anything loads. The approved mapping drives the ckanapi load into CKAN datasets and resources. Tabular files take a second hop through XLoader into the DataStore. The old-to-new URL map is installed in a redirect layer on the old host before cutover. Confirm that every old DKAN dataset URL resolves to a new CKAN URL, and that each trust boundary crossing matches your approved transfer path.
Metadata, files and redirect paths across three trust boundaries.
Migration sequence from inventory to DKAN decommission
The sequence moves the catalog in six stages, each with a client input and a checkable output, so the CKAN portal is trusted before DKAN is turned off. Inventory and mapping come first so data owners sign off on the schema before any data moves. Each step names what you provide and what DeployOpen delivers, and parallel running and link checks give the evidence needed to retire DKAN.
Inventory DKAN content and file locations
DeployOpen reads the DKAN catalog through
/data.jsonand the metastore API, then records every dataset, resource, user account and file location in a working inventory. You provide administrator access to DKAN, read access to the database and file store that hold uploaded files, and a named owner for each dataset. DeployOpen delivers the inventory as a spreadsheet and export files, with counts per dataset and resource, a list of resources that point to external URLs, and a list of files with no known owner. The step is done when the data owners confirm in writing that the inventory is complete.Agree field mapping and CKAN schema
DeployOpen maps each Project Open Data field in the DKAN catalog to a field in the target CKAN schema, and flags fields that have no equivalent so the owners decide how to keep them. Where a DCAT profile applies, the team checks whether the ckanext-dcat schemas already cover the fields before adding custom ones. You provide data owners who can answer for their datasets, and decisions on which DKAN fields must survive, such as contact points, license and temporal coverage. DeployOpen delivers a written field mapping, a draft CKAN schema with any custom fields, and a list of open decisions. The step is done when each data owner signs off on the mapping for their datasets.
Run a pilot load on a subset
DeployOpen loads a chosen subset of datasets into a non-production CKAN instance, including several tabular resources that go into the DataStore through XLoader, and checks each result against the inventory. You provide a non-production CKAN environment in your infrastructure, or confirm the one DeployOpen builds for the pilot, and you select pilot datasets that cover different organizations, licenses and file types. DeployOpen delivers a pilot report listing loaded datasets, failed resources, DataStore row counts compared with the source files, and the fixes made to the mapping. The step is done when the data owners pass the pilot and the load can be repeated without manual edits.
Run a parallel period with both portals
DKAN and CKAN both stay live during a parallel period while the full migration runs, and acceptance testers use CKAN alongside the existing portal. DeployOpen runs comparison scripts that count datasets and resources on each side, check every resource link for a successful response, and compare DataStore row counts with the source tables. You provide acceptance testers, a named owner who triages discrepancies, and the length of the parallel period agreed in writing. DeployOpen delivers a comparison report after each run, a list of broken or mismatched items with owners, and a rerun after fixes. The step is done when counts match and each remaining difference is explained and accepted in writing.
Cut over DNS and redirects
The public hostname moves to CKAN, and old DKAN URLs redirect to their matching CKAN dataset pages using the mapping from the inventory. You provide DNS and web server change control, the list of URL patterns that external sites and search engines use, and a rollback plan approved by your change board. Harvesters that read the old catalog address are repointed to the CKAN endpoints, and you confirm each change with its owner. DeployOpen delivers the redirect rules, a test set of old URLs with expected targets, and a cut-over runbook with a rollback step. The step is done when sampled old URLs resolve to the correct CKAN pages and the change is recorded in your change system.
Decommission DKAN after the retention window
After the retention window agreed in writing passes with no open discrepancies, DKAN is taken offline, and its database, files and configuration are archived under your retention policy before anything is deleted. You provide the retention window, the archive location, and approval from the records owner for deletion. DeployOpen delivers a final export of DKAN content and configuration, a checksum record for the archive, and a decommission checklist covering DNS, scheduled jobs, API keys and the Drupal servers. The step is done when the archive passes the integrity check defined in the runbook and the records owner signs off that DKAN is removed.
Keeping old DKAN dataset links working after cutover
Old DKAN dataset and file URLs will keep circulating in bookmarks, citations and harvesters long after cutover, so the migration needs a written map from every old path to its CKAN path before anything is switched off. Build that map from DKAN's catalog at /data.json, which follows the Project Open Data schema v1.1 and gives each dataset an identifier field (see the DKAN harvest guide for how the catalog is published). For each dataset, record that identifier, the DKAN node path or alias it was publicly served from, the CKAN dataset name the migration script created, and the old and new URL for each resource file. Keep the map in version control beside the migration scripts so the same catalog export always produces the same redirect rules, and reviewers can read every change.
Put the redirects in the web server or edge layer in front of CKAN, where they can be reviewed and tested apart from the portal's code. CKAN's install guidance recommends Nginx in front of uWSGI for production, so a common approach is a generated map file that Nginx loads, or equivalent rules in the CDN or load balancer if one already serves the public hostname. Use permanent 301 responses for datasets and files that moved. Decide with the data owners which withdrawn DKAN datasets should return 410 Gone and which should redirect to a search page. Make sure each file redirect keeps the original file name and extension, because citing scripts and tools often depend on them.
Test the map on a staging copy before cutover. Crawl every old URL in the map, plus the URLs that appear most often in the DKAN web server logs, and check each response code, the final redirect target and whether that target returns a successful response to an anonymous visitor. Datasets that are private in CKAN must not resolve publicly through an old link. Then confirm the following in the target deployment rather than assuming them: that ckan.site_url matches the public hostname the redirects point to, that every dataset name in the map exists exactly as written, that resource download addresses respond without a login for public datasets, and which layer actually serves the public hostname after go-live. Re-run the crawl after cutover and file the results with the cutover record.
What drives the cost and duration of a DKAN to CKAN migration
This table lists the factors that most change the effort of a DKAN to CKAN move and what moves each one up or down. Read each row against your own catalog, Drupal host and target CKAN version, and inventory metadata quality and identity needs first, since they are the hardest to estimate. Cost components are paid per scope item, so a quote follows from the written scope that lists these factors as they apply to you.
| Driver | What raises the effort | What lowers the effort |
|---|---|---|
| Datasets and resources | Large catalogs with many resources per dataset, each needing a mapping check and a URL or file decision | A current data.json export with a known count, and resources pruned before the move |
| Metadata quality | Missing titles, inconsistent keywords, broken publisher fields or unvalidated dates in data.json (Project Open Data v1.1) | Validated catalog before export, with a field-level mapping sheet agreed with data owners |
| Files to move | Many or large uploaded files, files in private storage, or files behind access checks | Files at stable URLs that can be copied in bulk, with checksums recorded for each file |
| Tabular resources for the DataStore | Many CSV or spreadsheet resources needing DataStore loading, plus inconsistent headers or encodings | Clean headers and a small set of tables chosen for the DataStore, with XLoader as the loader |
| Custom DKAN fields and Drupal content types | Custom fields, nodes or taxonomy terms that need a CKAN schema field or a decision to drop them | Few custom fields, and a documented decision for each one before the build starts |
| Identity and SSO | SAML2 single sign-on through ckanext-saml2auth, plus role mapping from SAML attributes | Few accounts, or an identity provider already tested against CKAN 2.10 or later |
| Target CKAN version and extensions | Target 2.12.0 with ckanext-dcat, which the repository lists as supported on 2.10 and 2.11 | A target version that every required extension supports, confirmed in writing before scope is signed |
| Drupal host end of life | DKAN running on a Drupal 10 host, which the core release schedule lists as end of life on December 9, 2026 | Current supported Drupal and DKAN versions, or a verified export taken before the host is retired |
| Parallel run | Old and new portals run side by side, with harvest, redirects and sync to maintain | Single cut-over with a frozen export and a short read-only window on the DKAN site |
What usually goes wrong in DKAN to CKAN migrations
Most failures in a DKAN to CKAN move come from a few places: the metadata map, identifiers, files, the DataStore, the Drupal host schedule and the period when both catalogs run. Each card names one failure, what makes it likely in your catalog, and the check to run before the cut-over.
Project Open Data fields without a CKAN home
DKAN publishes its catalog as a DCAT-US data.json file that follows the Project Open Data schema v1.1. Some of those fields, such as accessLevel, publisher hierarchy and DKAN-specific metadata, have no clean CKAN home in a default dataset. Build the field map before any load and label each field as a core field, a custom schema field, an extra or a dropped field. Have the data owner sign off on every dropped field, because the DKAN site may be retired before anyone notices the gap.
DKAN harvest docsIdentifiers and links that break
DKAN dataset identifiers may not match the IDs and URL names CKAN assigns during the load, so links to old DKAN pages can fail. Grant reports, README files, partner systems and search engine results keep pointing at the old addresses. Store the original identifier from data.json as a custom field on each CKAN dataset, then build a redirect table from every old page to its new dataset page. Test a sample of old links against that table the day before the cut-over.
Resource files missing or oversized
Resource entries in data.json point at file URLs that can change when DKAN's file storage or Drupal paths change, and some files may be too large to fetch within the cut-over window. A file that returns an error, a renamed file or a file that a CKAN upload limit rejects shows up as a dataset with a broken download. Crawl every resource URL, record the HTTP status, file size and checksum, and compare the results after the move. Confirm the upload and proxy size limits on the CKAN host before the test load.
Tabular resources that fail DataStore loads
The DataStore serves row-level queries and the Data API only for tables that load cleanly, and loads can fail on encodings, header rows, mixed types in one column or very large files. XLoader is the supported loader, and DataPusher is legacy, so build the test around XLoader. Load a sample of every tabular resource and compare row counts and column names with the source. Log each failure with its cause and plan a second pass for those resources.
CKAN DataStore docsDrupal host timing forces the schedule
Drupal 10 reaches end of life soon, and a major Drupal release is scheduled in the same weeks. If the DKAN host cannot stay on a supported Drupal line, the calendar can pull the cut-over forward before the CKAN side is ready. Ask the DKAN maintainers which Drupal and PHP versions DKAN supports, and check that against your host's plan. Decide early whether a DKAN upgrade is needed before the move, and treat that upgrade as a separate project with its own test.
Drupal release scheduleDrift during the parallel run
While both catalogs run, publishers keep editing DKAN, so CKAN can fall behind with new datasets, changed descriptions and replaced files. Decide which catalog is the source of record for each period, set a freeze or a delta load for changes, and record the exact cut-over moment. Compare dataset counts, resource counts and checksums between the two systems on a fixed schedule, and assign one owner to every discrepancy. Drift that goes unchecked turns the final sync into a second migration.
Questions teams ask before moving from DKAN to CKAN
How much does a DKAN to CKAN migration cost?
Neither platform adds a license fee for the software, so the spend goes to labor, infrastructure and testing. Drupal has no paid edition, and CKAN is open source under the GNU Affero General Public License v3.0. The main cost components are:
- Inventory, field mapping and owner decisions, paid as internal staff time or as scoped design work from a partner
- Export and conversion scripts for the DKAN catalog and its files
- The CKAN environment: servers or containers, PostgreSQL, Solr, Redis and a web server
- Extensions, theme changes, testing and cut-over
- Redirects, training and retirement of the DKAN site
The migration work is one-time. The servers, security patching and CKAN upgrades recur every year. Ask any quote to break costs down by these components, state the assumed dataset, resource and file counts, and list which extensions are included. DeployOpen's engagements are fixed-scope, and a quote follows from the written scope.
How long does a DKAN to CKAN migration take?
No single duration fits every portal, so ask for a schedule built from the written scope. Duration depends on the number of datasets and resources, how consistent the DKAN metadata is across publishers, how many Project Open Data fields need a decision before they map to a CKAN schema, the number and size of resource files, and how many tables need loading into the DataStore. Each owner decision that waits on a person adds calendar time, so name decision owners early. Review cycles and the cut-over window also set the end date. The platform can add pressure too. Drupal 10 reaches end of life on December 9, 2026, so if your DKAN site runs Drupal 10, confirm its upgrade or retirement plan now. Drupal 11 is the current major version.
What must our team provide for a DKAN to CKAN migration?
Your team provides access, decisions and control over the public address. Expect to supply:
- Catalog access: a read-only account or database export for the DKAN site, plus access to the /data.json catalog and the metastore API at /api/1/metastore
- Owner decisions: how Project Open Data fields map to CKAN fields, which organization owns which datasets, and which identifiers stay stable
- File access: the location and credentials for resource files, so they can be copied to the new storage
- DNS and web server control: the ability to point the domain at CKAN and add redirect rules
Name one decision owner per area and one technical contact for cut-over. Unresolved mapping questions stall the build, so confirm who can sign off each choice before work starts.
Can our internal team run a DKAN to CKAN migration alone?
Yes, an internal team can run the migration if it has the skills and time, but plan for the operating work that follows. CKAN installed from source needs Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx recommended for production. The team also needs DKAN and Drupal knowledge to export the catalog correctly, and someone who can own the mapping decisions. Check these before committing:
- Platform skills across Linux, databases, search indexes and web servers
- Time for the migration, which competes with existing work
- An owner for CKAN after launch, including patching and upgrades
A fixed-scope engagement puts scope and deliverables in writing before work starts. Compare both options against the same written list of deliverables.
Does DKAN have to stay online during a migration?
Usually yes. Keep DKAN serving the public until CKAN is built, loaded and checked. The build needs a current copy of the catalog and files, and publishers keep editing while the new site is under construction. Plan an initial export, then a final delta export at cut-over, with a short freeze on edits in DKAN during that window. Confirm with publishers which edits, deletions and new uploads must be captured in the final export. After cut-over, keep DKAN in read-only mode until redirects and downloads are confirmed, then retire it. Agree the freeze length and retirement date with your data owners, since both depend on your publishing rhythm.
Will old DKAN dataset links break after migration?
They will break unless you map them. DKAN and CKAN build dataset and resource addresses differently, so old URLs do not resolve to new ones by default. Build a redirect map from each old DKAN dataset and resource address to its CKAN equivalent, keyed on identifiers that stay stable through the migration. Then add redirect rules at the web server or proxy, which requires DNS and web server control. Cover more than web pages. API consumers, bookmarked downloads and any harvester that reads the catalog file will also need a working path. Test a sample of old links before cut-over and again after DNS changes. Keep the redirects for as long as publishers and external users rely on the old addresses, and confirm that retention period with your data owners.
Is ckanext-dcat enough to migrate a data.json catalog?
Probably not on its own. The ckanext-dcat repository provides DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester, and it is supported on CKAN 2.10 and 2.11. DKAN's /data.json file follows the Project Open Data schema v1.1 as JSON, so confirm which input formats the harvester accepts before you plan around it. Then check the rest of the work:
- Field mapping from Project Open Data to your CKAN schema, a set of decisions your owners must make
- Resource files, which are copied separately from the metadata
- Tabular data loaded into the DataStore with XLoader, since DataPusher is legacy
- Compatibility: CKAN 2.12.0 was released on August 26, 2026, so confirm extension support for your target version
Treat the extension as one tool in the pipeline, and test it on a sample catalog first.
How DeployOpen scopes and delivers a DKAN to CKAN migration
DeployOpen treats each DKAN to CKAN move as a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before work starts. The work runs inside your own infrastructure, from reading your DKAN catalog through to redirects and handover, and ongoing support is available as a retainer.
How we scope
- Inventory the DKAN site: datasets, the /data.json catalog, metastore records, resource files and any custom Drupal modules.
- Agree the field mapping from Project Open Data v1.1 to your CKAN dataset schema before any loading starts.
- The written scope lists which DKAN sites, datasets, file types, URL redirects and CKAN extensions are in and out.
How we build
- Read data.json and the metastore through scripted exports, then load records into a CKAN staging instance.
- Map Project Open Data fields to CKAN dataset, organization and resource fields, using ckanext-dcat where it fits.
- Move resource files, load tabular resources with XLoader, and test Data API queries against the DataStore.
How we hand over
- Verify record counts, field values, file checksums and sample redirects, then record results against the agreed scope.
- Document the CKAN deployment, the mapping decisions, the redirect table and the cut-over steps for your team.
- Hand over the running portal with runbooks, access records and the backups set up during the engagement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers once the portal is live.
- Plan later CKAN upgrades against the release policy, which separates patch releases from minor releases with breaking changes.
- Review redirects and Data API queries after launch, and before DKAN is switched off.

