Moving from hosted CKAN to self-hosted CKAN

Leaving a hosted CKAN service for your own infrastructure depends mostly on what the provider will export and whether your target runs the same CKAN version and extensions. This page covers the requests to make, the tools that load the data, and the sequence from parallel run to cutover.

On this page

Moving from hosted CKAN to self-hosted CKAN starts with what the provider will hand over

For a team moving an open data catalog from a hosted CKAN service into its own cloud, data center or air-gapped network, the effort is set mainly by the provider's export options and version match. Those two answers decide what can be copied, how much must be rebuilt, and whether the new environment can run the same CKAN line as the source. The self-hosted target 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, as the CKAN install from source guide describes. CKAN is licensed under the GNU Affero General Public License v3.0, so the team should have its legal function review how that license applies to any customized extensions it runs and publishes before the new platform goes live.

Version match deserves more attention than it usually gets. CKAN targets about two minor releases a year, and the project supports the latest patch of the current minor version and the previous minor version. CKAN 2.12.0 was released on August 26, 2026, with maintenance releases 2.11.6 and 2.10.11 on the same day, so a provider on an older patch may already be outside support. Patch releases do not break backwards compatibility, but minor releases can include backwards-incompatible changes, so a gap of one minor version is a much larger project than a gap of one patch. Ask the provider for every installed extension with its version, because an extension that works only on one minor line can decide whether the target can match the source without an upgrade first. Check the CKAN release policy when you compare the two sides.

Before anyone scopes the move, ask the provider for a written inventory: the exact CKAN version and patch level, every installed extension and its version, custom theme and template code, and the export options it offers for the database, uploaded files and DataStore tables. Confirm whether the provider will hand over a full database dump and a copy of the file storage, or only API access, because that answer changes the entire build. Ask also for the hosted copy's retention and deletion terms, the Solr and Redis setup it uses, and the window in which the source will stay readable during cut-over. Treat any item the provider cannot answer in writing as an open scope risk, and do not agree to a fixed scope until those answers are in hand.

What maps cleanly from hosted CKAN and what needs rebuilding

This table compares what a hosted CKAN service can hand over with what your self-hosted CKAN must rebuild. Read each row as a question to settle with your provider before cut-over: what can be exported, what must be recreated, and what your target version supports. The main takeaway is that a database dump and a file copy do not cover everything, because the DataStore, search index, SSO and scheduled jobs each need separate work.

Source capabilityPlatform equivalentMigration notes
Datasets and resource metadataSame records restored from a database dump or imported with ckanapiConfirm custom schema fields and extras come across. Rewrite resource URLs that point at the old host.
Organizations, groups, users and rolesOrganization and group records, user accounts, member and sysadmin rolesFull dumps include password hashes. API-only exports usually do not, so plan a sign-in path for users.
Uploaded files (FileStore)Files stored on the target under its configured storage pathAsk the provider for a copy of the files. Without it, uploaded resources must be re-fetched or re-uploaded.
DataStore tablesSeparate PostgreSQL database with a write user and a read-only userThe DataStore is not in the main CKAN database. Request its dump separately and recreate both database users.
Search indexSolr index rebuilt on the target with a full reindex after importPlan the reindex as a cut-over step. Confirm the Solr version your target CKAN release supports.
Extensions and themesInstalled from source on the target and pinned to its CKAN versionGet the full extension list and any custom code from the provider. Hosted plans may not expose code, so ask early.
SSO configurationRebuilt against your own identity provider, with ckanext-saml2auth where it appliesProvider SSO settings do not transfer. Map attributes to roles again and test sysadmin access before cut-over.
DCAT feeds (ckanext-dcat)Supported on CKAN 2.10 and 2.11Check the target version before installing. Test DCAT output and any harvesters against it after import.
Harvesters, scheduled jobs and provider admin toolsRecreated on your own background workers, with your own admin toolingRecreate each harvest source and schedule. List the provider dashboards your team uses, since each needs a replacement or a decision to drop it.

Which export and import paths CKAN documents for this move

CKAN documents several routes for getting a portal's content out of a hosted service and into a self-hosted instance. Each route moves a different layer: database records, uploaded files, DataStore tables, or metadata served over the API or as DCAT RDF. Confirm with the provider which of these layers their export actually contains before you choose a route.

Provider database dump

A PostgreSQL dump of the portal's main CKAN database is the starting point for a full copy. It carries datasets, organizations, users, groups and resource records, and you restore it into PostgreSQL 12 or newer, the minimum CKAN documents for source installs. Ask the provider which CKAN version and schema the dump came from, so the restored instance can run the same CKAN release. Confirm that the dump excludes DataStore tables and uploaded files, which need their own copies.

Copy of uploaded files

Files uploaded to CKAN resources are stored outside the database, so the database dump alone leaves download links broken. Request a full copy of the uploaded files and check that its location matches the storage path your new instance is configured to read. Ask whether resource links point to the provider's domain, because those URLs will need updating or redirects after cut-over. Also ask for a file list with sizes so you can verify the transfer file by file before the old service goes offline.

DataStore database dump

The DataStore keeps tabular resource rows in a separate PostgreSQL database, with one user that writes and one read-only user that serves the Data API. Ask the provider for that database as its own dump, because the main portal dump does not contain it. Recreate both database users on the new server before you restore, and point the read-only connection at the same database the Data API will use. Then compare row counts on several tables against the provider's Data API to confirm the restore is complete.

DataStore docs

ckanapi through the action API

When the provider gives you only API access, ckanapi can read datasets, organizations and resource records through CKAN's action API and write them into your new instance. The action API returns metadata, while DataStore rows are read through the DataStore Data API, so a metadata pull leaves out table contents. Confirm which data the export includes before you plan the cut-over. Also check whether the account you use can see private datasets, and whether the provider's rate limits or API tokens will slow a full pull.

XLoader reloads tabular resources

If you cannot restore the DataStore database, tabular resources such as CSV or XLSX files must be loaded into the DataStore again from their uploaded or linked files. XLoader is the officially supported tool for that job, and DataPusher is now legacy. Plan on XLoader for the new instance and treat DataPusher as a legacy option only. Check that the loader can reach the restored files and that its background jobs run, because a resource that never finishes loading will show no rows in the Data API.

RDF harvester for DCAT catalogs

If the provider publishes its catalog as DCAT RDF, the ckanext-dcat RDF harvester can import those records into your new CKAN without database access. It suits a provider whose catalog exists mainly as published metadata. Test the harvester with a copy of the RDF before cut-over, checking the file format, file size limits and what happens to records the provider later deletes. The extension supports CKAN 2.10 and 2.11, so confirm your target release is covered. The harvester brings in metadata only, so files and DataStore rows still need one of the other routes.

ckanext-dcat repository

What to request from the hosted provider before committing to the move

Send the hosted provider a written request for every artifact the new portal needs before you sign a move plan. Start with the CKAN version and exact patch level. CKAN supports only the latest patch of the current minor version and the previous minor version, and older patches lose support once a newer one ships, so the target you install should match a supported line that you have planned for. Confirm the CKAN release policy against the provider's version before you choose one. Then request a full PostgreSQL dump of the main CKAN database, which holds users, organizations, groups, package metadata and activity records, plus a copy of the uploaded file store, the directory set by ckan.storage_path or the equivalent object storage export. Ask for the ckan.ini file with credentials removed in a clearly marked way, so you can see every setting the provider chose.

Request a separate dump of the DataStore database. The DataStore lives in its own PostgreSQL database and holds the tables loaded from tabular resources, so a main database dump alone will leave those tables missing. Ask whether the provider used XLoader or the legacy DataPusher to load them, because that affects how you verify row counts after restore. Next, ask for the installed extension list with exact versions, the enabled plugins from ckan.plugins, and the source code for any custom theme and custom extensions, including templates, CSS, JavaScript and translation files. Confirm who holds the rights to that custom code. The CKAN core is licensed under the GNU Affero General Public License v3.0, but the code the provider wrote for your portal may be governed by the provider's contract, and you need written permission to reuse it.

Ask for the user list with roles and organization memberships, including sysadmins, organization admins, editors and members, and any collaborator grants on private datasets. Request the harvester definitions and their schedules, including source URLs, configuration and the last run status, so you can rebuild them without guessing. If single sign-on is in use, request the SSO configuration in full: identity provider metadata, attribute mappings, and any sysadmin email list. If the portal uses ckanext-saml2auth, confirm the exact settings the provider configured, since those mappings control who gets which organization and role. Then check the contract. Provider terms may restrict the export format, the access window, or the delivery method, so confirm in writing the export format, how the files will be delivered, the deletion policy after handover, and whether the provider supports a parallel run while you test the new portal.

How the provider exports, your rebuild and the DataStore load connect

The diagram starts at the hosted CKAN instance, which produces an export bundle containing a PostgreSQL database dump, a DataStore database dump, a copy of the file store, and an extension and configuration list. Your side restores PostgreSQL, then the DataStore database, reindexes Solr, and starts Redis and the web tier, which also receive the files and configuration. The trust boundary separates the provider environment from your infrastructure, so confirm what leaves the provider before the transfer. Where only API access exists, ckanapi scripts read from the hosted API and write into the same web tier. Validation runs before the cutover decision: check record counts, resource downloads, DataStore queries and logins.

Export bundle, restore sequence and validation gate, with the API-only branch.

Using ckanapi when the provider only offers API access

When the provider can supply a PostgreSQL dump of the main CKAN database and a separate dump of the DataStore database, the move is mainly a restore. Packages, organizations, users and DataStore tables arrive intact, so ckanapi is needed only for checks and small gap fills.

  • Main database: ask for a dump of the CKAN database that holds packages, organizations, groups, users and resource metadata. Confirm the dump format and the source CKAN version.
  • DataStore database: request its dump separately. It is its own PostgreSQL database, so restore it into a matching database and recreate the write and read-only users that your CKAN configuration expects.
  • FileStore: uploaded resource files live outside both databases. Ask for a copy of the storage directory or bucket, and confirm that the paths match what the restored metadata references.
  • Search index: expect the Solr index to be absent after restore. Plan a full reindex on the target before you test search.
  • Verification: compare dataset and resource counts with the source, and run several DataStore queries against restored tables.

Before you accept the dump, confirm that the source and target CKAN versions are compatible under the CKAN release policy and that the provider's export covers every database CKAN uses.

The sequence from inventory to parallel run and cutover

This sequence moves a hosted CKAN portal onto infrastructure you control without losing datasets, users, files or DataStore rows. Each step ends with a count, a check or a signed record, and the hosted instance stays the system of record until cutover is approved.

  1. Inventory the hosted instance and lock the version

    The engineering lead and the data owner list what the hosted instance holds: the CKAN version, every installed extension and its version, custom schema, theme and configuration files, DataStore tables, and counts of datasets, resources, organizations and users. The provider confirms the version in writing and states which exports it can provide. Sign-off: the data owner and platform lead approve the inventory. Rollback point: nothing has changed yet, so the hosted instance remains the system of record.

  2. Test the export into a staging copy

    Request a database dump, the file storage contents and the extension list from the provider. If the provider only offers API access, run ckanapi against the hosted site to export datasets, organizations, users and resources, then restore the export into a staging copy on your infrastructure. Check the restore log, file checksums and errors, and record every item that fails. Sign-off: the platform owner approves the export method and its known gaps. Rollback point: discard the staging copy and repeat the export, since the hosted instance is untouched.

  3. Build the target on a matching CKAN release

    Install the CKAN release on the same minor version path as the source so the restored database and extensions load without an upgrade in the same move. Follow the source install guidance for Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, and confirm that each extension supports that release. Check the CKAN release policy for which patch releases still receive fixes. If the source sits on an older path, plan the upgrade as a separate, signed step. Sign-off: the architecture and security owners approve the version matrix and build. Rollback point: the target stays unused and can be rebuilt from the same plan.

  4. Restore data and reconcile counts

    Restore the database, the file storage and the DataStore database into the target, then rebuild the search index. Compare counts of datasets, resources, organizations, users and DataStore rows with the inventory from the first step, and trace every difference to a cause such as deleted records, private data or an extension limit. Spot-check sample DataStore queries through the Data API. Sign-off: the data owner signs the reconciliation sheet with no unexplained differences. Rollback point: drop the restored databases and restore again from the same export.

  5. Pilot with a few organizations

    Choose a small set of organizations with different profiles, such as one with private datasets, one with many resources and one with a DataStore table. Their administrators and editors check datasets, files, permissions, collaborators and API tokens on the target. Confirm in advance, with the provider and your identity design owner, how user logins and API tokens carry over. Sign-off: each pilot administrator signs a written acceptance. Rollback point: pilot organizations keep working on the hosted instance, and target content is reloaded from the export if issues appear.

  6. Run parallel with a freeze or sync plan

    Choose one approach before the parallel run starts. Either writes on the hosted instance are frozen for a final export, or a sync plan records each change made during the parallel run, names an owner for conflicts and sets how often the two sides are compared. Keep a change log for both sides and check it against the reconciliation counts. Sign-off: the business owner and the provider approve the freeze or sync plan in writing. Rollback point: the hosted instance stays authoritative until cutover is approved, so the target can be reset without affecting users.

  7. Cut over domain and redirects

    Run the final export or delta sync, confirm the target matches the reconciled counts, and then change the DNS record for the portal domain. Add redirects so old dataset, organization and resource URLs resolve on the new site, and update harvesters, API clients and links from other sites. Test a set of old URLs, the API and a DataStore query. Sign-off: the CIO or CISO approves the cutover in writing. Rollback point: point DNS back to the hosted instance while the provider agreement is still active.

  8. Decommission after the provider confirms deletion

    Keep the hosted instance read-only for the period you agree with the provider, and retain the export archive under your own retention rules. Once the provider confirms the handover in writing, request written confirmation that the hosted data, file storage, database backups and credentials are deleted. Then revoke any API keys and integrations that pointed at the hosted site. Sign-off: the data protection owner accepts the deletion confirmation. Rollback point: none after deletion, so do not delete the hosted instance until that confirmation is on file.

What drives cost and duration of the move

This table lists the drivers that change the effort and calendar of moving a hosted CKAN portal to infrastructure you control, with what raises the work and what keeps it down. Read each row against what your provider can actually hand over, since the export, the CKAN version gap and the size of your DataStore and user base often shape the work more than the number of pages on the site. The main takeaway is that most cost is set before build starts, so get these facts in writing before you request a quote.

DriverWhat raises the effortWhat lowers it
Export quality from the providerAPI access only, no database dump or file archive, no extension list, or resource links that expire during the move.A full PostgreSQL dump, a FileStore archive, the extension list and the CKAN config file, confirmed in writing.
Version gap between source and targetA source several minor releases behind the target stacks schema and configuration changes. CKAN 2.12.0 was released on August 26, 2026, so confirm the provider's version first.Move to the same minor version first, then upgrade in a separate, tested step once the new portal is stable.
Extensions, custom code, harvesters and scheduled jobsExtensions without versions for your target, custom plugins tied to core internals, and harvest sources or cron jobs that must be recreated.Get the extension and job inventory early, prefer maintained extensions, and pause sources on the old site before enabling them on the new one.
DataStore size and table countLarge tables, many resources and loader failures raise transfer time and validation work. The DataStore is a separate PostgreSQL database.Ask for a table list with row counts, load in batches, and check counts per table against the source.
Users, organizations and SSOMany accounts, detailed organization roles and a move to SAML2 single sign-on need mapping, testing and user communication.Export users and roles, confirm whether password hashes are included, and decide early on SSO versus password reset.
Theme and branding workCustom templates, CSS, logos, translated pages and content pages added on the hosted site must be rebuilt.Inventory the theme and content pages from the provider, reuse an existing theme where possible, and limit changes to branding.
Parallel run length and write freeze rulesA long parallel run with edits on both portals means reconciliation work, and an undefined freeze window risks lost edits.Agree a written freeze date for the old portal, a short parallel check and a named rollback owner before the window opens.
Infrastructure sizing for Solr, Redis and file storageDataset count, resource size and search traffic drive Solr index size, Redis use and FileStore capacity.Measure dataset counts and total file size from the export, then size Solr for a supported version, with Solr 9 recommended.
Compliance evidence the reader needsAssessors may ask for change records, restore test results, access reviews and data transfer approvals, and gaps add review time.Define the evidence list in the written scope before build, and collect it during the work rather than after cutover.

What usually goes wrong when moving from hosted CKAN

Most problems in a hosted-to-self-hosted move come from a handful of gaps between what the provider exports and what the target needs. Each card names one gap and the check that closes it. Get each item confirmed in writing before the cut-over date is set.

Version and extension mismatch

The target CKAN version has to suit the database and extensions you receive, so get the exact hosted version and extension list from the provider in writing. Minor releases may include backwards-incompatible changes, so a jump across a minor version needs its own upgrade path, while patch releases do not break compatibility. Check every extension against the target version before the cut-over. An extension that is not maintained for the target version can block the whole migration, so decide early whether to replace, upgrade or drop it.

Release policy

DataStore and search index not rebuilt

A database dump of the main CKAN database may not include the DataStore tables that the portal serves. DataStore data lives in its own PostgreSQL database, so confirm the provider includes it in the export and check row counts for a sample of resources after import. The search index is also derived data, and the search index must be rebuilt on the target or dataset search returns stale or missing results. Run a set of known searches on the target before handover and compare the hits with the hosted portal.

DataStore docs

Users and roles lost in translation

Accounts, organization memberships and sysadmin flags move through the user tables, but login methods and API tokens often do not carry over in the form the target expects. Ask the provider which user fields and organization roles they will export, and map each role to the permissions your target portal uses. Confirm who keeps sysadmin access and who can publish to each organization. Test one account per role on the target after import, before any user is asked to sign in.

Links and API consumers break

Dataset pages, resource download links and API calls from other systems point at the hosted domain. Old links fail once the domain changes unless redirects are in place or each consumer is given the new base URL. List every harvester, script and partner that pulls from the portal, including ckanapi scripts, and plan redirects for old dataset and resource URLs. Test one call per consumer against the new domain before the old one is switched off.

Writes made during the parallel run

If the hosted portal stays live while the self-hosted copy is prepared, new datasets, edits and deletions made on the hosted side never reach the target. The two copies then diverge, and changes after the snapshot are lost on cut-over. Choose a freeze window for editing, or agree a final delta export with the provider that covers changes made after the snapshot date. On cut-over day, compare dataset counts and modification dates between the two portals, and repeat the check for resources uploaded during the window.

Provider deletes data before handover

Hosted providers run their own retention and decommissioning schedules, and closing an account can remove data before you have verified the copy. Do not treat the end of the hosted contract as the handover date. Ask for written confirmation that the export is complete, that a named date is the last day data is retained, and that deletion waits for written sign-off from you. Keep your own copy of the export and its checksums until the target passes review.

How much effort does moving from hosted CKAN take?

What does moving from hosted CKAN cost and what does the quote cover?

The cost follows from a written scope, so ask for a fixed-scope quote that lists each piece of work. Expect three groups of cost: planning, which covers the inventory of what the provider can export and the target design; the build, which covers servers or containers, PostgreSQL, Solr, Redis, the web server and background workers; and the data work, which covers restoring the database, copying files, loading DataStore tables and rebuilding the search index. Extension work adds cost when a plugin needs configuration or testing. The migration itself is one-time, while hosting, patching, backups and CKAN upgrades recur on your own infrastructure. DeployOpen does not publish a price list. Ask the quote to name the environments covered, the cut-over steps, the testing before cut-over and the handover documents.

How long does moving from hosted CKAN take?

The timeline depends on the drivers below, so no single duration applies to every portal. The largest driver is data volume: the size of the database, the number of uploaded files and the DataStore tables all set how long copies and restores take. The number of extensions and custom themes matters next, since each needs a compatible version on the new server. Provider access also sets the pace: whether you receive a database dump, a file copy or only API access changes the work. Your team's review time and change windows shape the schedule too. Confirm the target CKAN version against the CKAN release policy, since only the latest patch of the current minor version and the previous minor version receive security and bug fixes. Ask the provider early for export options, because that answer often decides the schedule.

What does our team have to provide before the move starts?

Your team provides written access, decisions and the infrastructure details, and the technical inventory is produced from the provider's export. The written inputs are: the export package, which should include a database dump, the FileStore files and the list of installed extensions with their versions, where the provider allows it; the current CKAN version and configuration file, with secrets removed; a list of custom schemas, themes and plugins; the users, organizations and roles that must carry over; and a list of DataStore resources. You also provide the target environment details: the cloud account or data center, network access, DNS names, certificates, identity provider settings for single sign-on and backup storage. Name one decision owner for data retention, private datasets and URL redirects. Missing inputs usually become the first change requests, so collect them before the quote is final.

Can our team move from hosted CKAN without outside help?

Yes, if the team already runs Linux services and has the skills below, although the work is still substantial. The build needs experience with 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 data work needs PostgreSQL administration, including the separate DataStore database with its write user and read-only user, and working knowledge of ckanapi for API-based extraction. Operations need tested backup and restore procedures, monitoring and a patch routine, because CKAN patch releases do not break backwards compatibility but still need to be applied. Plan time for the search index and background jobs, which are easy to overlook. Assess the skills honestly, and if gaps appear, ask a partner to quote a review, a shared build or a handover.

Can the hosted CKAN service keep running during a parallel run?

Whether it can depends on the provider's terms, so confirm the answer in writing before you plan the parallel run. Ask three things: whether the hosted portal stays live and editable while your copy runs, whether API access remains open during the overlap and for how long, and what happens to private datasets, API tokens and user accounts during that period. A common pattern keeps the hosted portal as the source of record until cut-over, then freezes edits, runs a final sync and switches DNS. The new portal stays in a test state until your team has checked the search index and DataStore tables against the source. Ask the provider about the notice period for ending the service, since that sets how long the overlap can run. Record the answers in the scope document so both sides plan from the same facts.

Can ckanapi replace a database dump when moving CKAN?

No, ckanapi can rebuild much of the catalog but cannot reproduce everything a database dump holds. The API returns packages, resources, organizations and groups, which covers most metadata and lets you script re-creation on the new site with package_create and resource uploads. Account credentials are not returned by the API, and extension tables and some history may not be exposed either, so confirm what the provider allows. Private datasets appear only to a token with the right rights. DataStore rows can be read through the Data API in pages, which suits smaller tables but takes longer for large ones. Use ckanapi to verify the catalog and fill gaps, and request the database dump and FileStore copy for the full move. If the provider offers only API access, confirm in writing which objects you can retrieve before you scope the work.

How DeployOpen scopes and delivers the move from hosted CKAN

DeployOpen scopes the move from a hosted CKAN service as a fixed-scope engagement, with the written scope fixing what is exported, rebuilt and tested before work starts. The build runs in infrastructure you control, with the database, file storage, DataStore tables and extensions brought across and checked. Ongoing support and upgrades are available as a retainer.

How we scope

  • The written scope lists which hosted CKAN database, files, extensions and API-only data are included.
  • Scope confirms what the provider can export: a database dump, file copies, or API access only.
  • Scope also records which DataStore tables move and which extensions the new portal must run.

How we build

  • Install CKAN in your infrastructure with PostgreSQL 12 or newer, Solr 9 (recommended) or 8, and Redis.
  • Restore the database dump and the DataStore database, then copy uploaded files into the new file storage.
  • Where only API access exists, rebuild datasets with ckanapi and load tabular resources into the DataStore.

How we hand over

  • Verify dataset counts, resource downloads, DataStore queries and search results against the hosted portal before cut-over.
  • Document the build, the extension list, the configuration and the cut-over steps as written deliverables.
  • Hand over the documented system to your team, with documentation and configuration kept in your infrastructure.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover, scoped to the CKAN version you run.
  • Patch releases keep backwards compatibility, while minor releases may include breaking changes, so plan each upgrade separately.
  • Confirm extension compatibility before each upgrade, including ckanext-dcat and ckanext-saml2auth if you use them.

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.