CKAN harvesting from other data catalogs

ckanext-harvest pulls datasets from other CKAN portals and DCAT catalogs into your portal through scheduled jobs. This page covers the supported setup, the check that closes each step, and where teams usually need outside help.

On this page

How CKAN harvesting copies datasets from other catalogs with ckanext-harvest

A portal team that must list datasets held in other CKAN portals or DCAT catalogs can copy them in with harvesting instead of retyping them. ckanext-harvest runs each harvest source as a set of jobs: a gather stage collects the remote identifiers, a fetch stage retrieves each record, and an import stage creates or updates the matching dataset in the local portal. Redis queues hold these jobs and background workers process them, so the work runs outside the web request that started it. The RDF harvester in ckanext-dcat covers DCAT catalogs that publish RDF, so DCAT sources are handled through the same harvesting model.

Harvesting copies metadata into your portal, but your portal still decides what those copies mean and who may change them. Before the first run, decide which organization owns each harvest source and the datasets it creates. Decide whether local editors may change harvested fields, and whether the next harvest will overwrite those changes. Settle the deletion policy as well: when a remote dataset disappears, confirm in your version's documentation whether the local copy is removed, kept or flagged, and test that behavior on a sample source. Map local roles and API tokens to the harvest sources before you open the portal to contributors, so that scheduled imports and manual edits do not collide in ways nobody planned.

The right harvester depends on what the source publishes, and your team must confirm that before building anything. A remote CKAN portal exposes its own API, while a DCAT catalog exposes RDF, and some sources offer only a file download or a bespoke feed that needs a custom harvester. Ask the source owner which format, API version and metadata profile they publish. Then check that your CKAN version is supported by the ckanext-dcat release you plan to use, since that extension is supported on CKAN 2.10 and 2.11 (ckanext-dcat repository). Run a test harvest against a non-production portal and compare record counts and field mapping with the source before you schedule it.

What CKAN harvesting needs before the first source is added

Harvesting depends on several decisions made before any source is entered: the CKAN and extension versions, the runtime stack, a worker that keeps running, network paths to each source, a staging portal and the right accounts. Each card below is a gate the first run depends on, so check them in order and record the answer for each.

Matching CKAN and extension versions

Choose one CKAN minor line, 2.10 or 2.11, and install the ckanext-harvest and ckanext-dcat releases that match it. The ckanext-dcat project lists support for CKAN 2.10 and 2.11, so confirm compatibility with your exact CKAN version before you build. CKAN 2.12.0 was released on August 26, 2026, so if you are considering that line, check each extension against it first. The release policy describes which patch and minor lines receive fixes.

Release policy

Baseline runtime stack

The install-from-source path requires Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis. Redis holds the queues that harvest jobs pass through, and Solr holds the search index that harvested datasets land in, so the worker as well as the web process must reach both. Confirm the versions your operating system packages provide on every host. The install guide also recommends uWSGI and Nginx for production.

Install guide

Running background worker

Gather, fetch and import stages run as background jobs that the worker takes from Redis queues. A source with no running worker will save and then never harvest. Run the worker under a process supervisor so it restarts after a failure or reboot, and confirm it uses the same configuration, database and Redis instance as the web application. Schedule the first run only after you see a job complete in the worker log.

Outbound access and TLS trust

The portal host fetches each source's catalog over the network, so it needs a route to each source address and port, including through any proxy you operate. Get the hostnames and ports from the source owner and test them as the user the worker runs under. If a source uses a private certificate authority, add that CA to the trust store the worker reads. Do not turn off certificate verification to get a first run working, because that leaves the fetch open to interception.

Staging portal for trial runs

Run the first harvests on a staging portal with its own database, Solr index and Redis instance, so a trial cannot write into production datasets or search. Copy the production configuration, then compare dataset counts, organization assignment, licenses and how removed records are handled before you turn on a schedule. Repeat the trial after each CKAN or extension upgrade.

Account for managing harvest sources

Creating, editing and running harvest sources is typically an administrative task in CKAN, so decide which accounts can perform it before the first source is added. Use a named administrator or service account for harvest management, keep it separate from everyday editor accounts, and record who holds it. Test that account on staging first, so the first production run does not fail on a permission error.

How a harvest job moves from a source catalog to a local dataset

A harvest starts when a scheduler or a manual trigger creates a job record in the CKAN database and places it on a Redis queue. A background worker picks up the job and runs the gather stage, which lists record identifiers from the remote catalog. The fetch stage retrieves each record, and the import stage creates or updates local datasets, which are then indexed in Solr. Only the gather and fetch stages call the remote catalog, so the box around it marks the trust boundary. Check job errors and logs after each run, and confirm with your CKAN version how a partly failed run is reported.

Harvest job stages, from trigger to indexed local dataset.

Choosing between a CKAN source harvester and the DCAT RDF harvester

Use the CKAN harvester in ckanext-harvest when the source is another CKAN portal. The job calls the remote site's Action API, so datasets, organizations and resources arrive with their CKAN structure mostly intact. Confirm the following with the portal owner before you create the source.

  • API exposure: Confirm that the remote Action API is reachable from your harvesting servers, including any firewall, proxy or rate limit the owner applies.
  • Metadata profile: Compare the remote custom schema fields and extras with your own. Fields your portal does not define may be dropped or stored as extras, so test with a sample of datasets.
  • License terms: Check the license on each dataset and whether the owner permits republishing. A site-wide statement does not always cover every dataset.
  • Private datasets: Find out whether the remote API returns private records to the API key you use. Unless the owner has agreed to share them, plan to harvest public records only.
  • Update behavior: Confirm how the remote portal handles changed and deleted datasets, and set your harvest frequency with that in mind.

Get each point confirmed in writing before the first full harvest.

Configuring CKAN harvesting in an order that keeps failures easy to trace

The sequence moves from a staging portal with one test source to a monitored production harvest, and each stage is checked before the next one starts. Each step closes with a visible check, so a failure can be traced to the component changed most recently. The order matters because queuing, gathering and scheduled imports each fail in different places.

  1. Install and enable the harvest extensions

    On a staging CKAN portal that runs the same CKAN version as production, install ckanext-harvest and ckanext-dcat, add both to the ckan.plugins setting in the portal configuration, and run the database migration that the harvest extension documents for its release. Check release compatibility first, since ckanext-dcat is supported on CKAN 2.10 and 2.11. Restart the portal and confirm it starts without errors. Done when both plugins appear in the configuration, the migration completes, and the Harvest Sources page loads in the admin area.

  2. Confirm Redis and the harvest worker

    Harvest jobs are queued in Redis and processed by a background worker, so a portal can accept a harvest request and still never run it. Ask the platform team to confirm the Redis service is reachable from the CKAN host, then run redis-cli ping, which should return PONG. Start the CKAN job worker using the command documented for your CKAN version, and confirm in the process list that it runs under the same user and configuration as the web application. Done when Redis answers, the worker process is listed as running, and its log shows it waiting for jobs.

  3. Create one harvest source

    In the staging portal, create a single harvest source that points at a test catalog you control or one whose owner has agreed to the test. Choose the source type that matches the catalog: a CKAN source for another CKAN portal, or an RDF source for a DCAT catalog, which uses the RDF harvester in ckanext-dcat. Keep the first source small, assign it to a test organization, and leave the schedule empty. Done when the source appears in the Harvest Sources list with its URL, type and organization shown, and its page displays no errors.

  4. Run a manual harvest and check status

    Trigger one harvest from the source page so a person starts the run and you can match it to the log later. The job moves through the gather, fetch and import stages, and each stage can fail on its own, so watch the job list and do not assume success from the button click. Record the job ID and start time. Confirm the exact labels for object counts and errors in your version. Done when the job status reads finished, the object counts match the number of records in the test catalog, and the error count is zero.

  5. Review the job log and new datasets

    Open the job log and read it in stage order: gather, fetch and import. Each entry should name the record it handled, and any error should identify the stage and the source record, so one bad record can be fixed without rerunning the whole catalog. Next, open the organization that owns the source and compare the dataset count with the number of records in the test catalog. Spot-check two or three datasets for title, description, license and resource links. Done when the log shows no unexplained errors and the dataset count matches the expected records.

  6. Set the harvest schedule

    Set the frequency on the source only after a clean manual run. Choose a frequency that the catalog owner allows and that your portal can absorb, and record who approved it, because a scheduled harvest keeps importing whatever the upstream catalog publishes. Check the catalog owner's published access rules, if any, before fixing the interval. Then wait for one scheduled run. Done when the scheduled job appears in the job list at the expected time and finishes with no new errors compared with the manual run.

  7. Promote the configuration to production with monitoring

    Recreate the source on production from the written staging configuration so no setting is retyped, keeping the same source type, URL, organization and schedule. Run one manual harvest on production before enabling the schedule, and review its job log with the same checks used on staging. Add monitoring for the Redis service, the worker process and failed harvest jobs, and route alerts to the team that owns the portal. Done when the production job finishes and an alert for a stopped worker has been tested on staging and reaches the owning team.

How remote catalog fields map onto CKAN datasets, organizations and tags

This table compares each common catalog field from a remote source with the CKAN field it lands in, and what to check in your installed harvester and schema before the first run. Read each row as a question to answer for your own source, since field handling varies by harvester version and by how the source publishes its metadata. The main takeaway is that the identifier decides whether later harvests update or delete existing datasets, and any field outside the core schema needs an explicit mapping before import.

Source fieldCKAN destinationConfirm for your harvester and schema
IdentifierDataset id or name, used to match existing datasets on update and deletionWhich field the harvester matches on, and whether it stays stable when the source republishes
TitleDataset titleWhether long or non-ASCII titles are truncated or altered, and how duplicate titles are handled
DescriptionDataset notes fieldWhether markup is stripped and whether translated descriptions are kept per language
PublisherOrganization, matched by name or created during the harvestWhether organizations are created automatically or must exist first, and who holds their roles
KeywordsDataset tagsWhether tags are length-limited or cleaned of characters CKAN rejects, and how controlled vocabularies are stored
LicenseLicense id from the CKAN license listWhether source license URIs map to a CKAN license id, and what happens to values that do not map
Resource URLsResources with URL, name and formatWhether resources are linked only or fetched, and how format values are normalized
Modified datesMetadata modified timestamp used for change detectionWhether source modification dates drive updates, and how time zones are converted
Spatial and temporal fieldsCustom extras or schema fields, not core dataset fieldsWhether your schema defines each field and has an explicit mapping before the first harvest

Security controls for harvesting from catalogs you do not own

A harvest source pulls content from a system you do not run, and the content it brings in is not yours to trust. The controls below sit at the points where that trust is granted: who defines a source, where the worker can connect, how it authenticates, what it does with the returned data, and how it affects the remote catalog. Each one can be checked in your own environment.

Control and log source changes

A harvest source decides what your portal imports and how often, so creating or editing one changes production behavior. Limit that right to a named administrator group, and check which accounts hold sysadmin rights, since those accounts can change any source. Record who created or edited each source and when, and confirm that the record survives your normal log retention. Review every new source before its first run.

Allow outbound connections to approved hosts

The harvest worker connects to whatever URL a source names, which makes it a path from your network to remote systems. Enforce an egress allowlist of approved hostnames at the network layer, using a firewall or proxy, so the restriction holds even when a source setting is wrong. Include redirect targets, because a catalog can send the worker to a host you never approved. Test the block with a source pointed at an unapproved host, and confirm the attempt fails and is logged.

Keep credentials out of code

Private sources need API tokens or passwords. Keep them in your secrets store and inject them at runtime, and keep them out of the code repository and out of configuration files committed to version control. Confirm whether the source form displays stored secrets to editors. Issue one token per source with the narrowest read access the remote catalog offers, so one leaked credential exposes one source. Rehearse rotation so a token change does not stop harvests unnoticed.

Treat harvested content as untrusted

Titles, descriptions, tags, resource URLs and organization names come from a catalog you do not control, and they can contain markup, script, misleading labels or links to hostile files. Validate and sanitize imported fields against your schema before they are indexed or displayed, and confirm your templates escape them. Treat each harvested text and links field as third-party input: do not fetch or preview resource URLs automatically from your server. Check a sample of imports after each new source's first run.

Separate staging from production

Point a new source at a staging instance first, so you can see what it imports, how long runs take and how the remote catalog responds before any content reaches the public portal. Use separate instances for staging, with their own databases, Solr indexes and Redis queues, so a bad run cannot write into production search or the production job queue. Promote a source only after its staging results match what you expect, and record the promotion.

Schedule and cap concurrent jobs

Each source's schedule sets how often your worker and the remote catalog are hit, so stagger start times and avoid running several large sources at once. Limit concurrent harvest jobs to what your worker and Redis capacity can handle, and confirm that limit holds in your deployment. Ask the remote catalog's operator about request limits or preferred harvest windows, and set intervals to respect them. Watch job duration after each change, since a run that overlaps its own previous run shows the interval is too short.

Why CKAN harvesting jobs stall, fail or import nothing

This table pairs each symptom seen in CKAN harvest sources with its most likely cause and the first check or fix to try. Work down the list from the job queue to the search index, because later symptoms often depend on earlier stages running. Use it to narrow the problem before you open the logs, whose locations the installed harvest extension's own documentation lists.

SymptomLikely causeCheck or fix
Jobs queued but never runRedis is down or the harvest worker process is not running, so queued jobs never startConfirm Redis responds and the harvest worker is running, then check the worker log for start errors
Job finishes with zero datasetsThe source URL or endpoint is wrong, or a harvester filter excludes every recordOpen the source URL, confirm it returns records, and review the filter settings in the source configuration
Datasets imported but missing from searchThe search index was not updated after the import, so Solr has no record of the datasetCheck that Solr is reachable, then rebuild the search index for affected datasets using the search-index command for your CKAN version
Updates from the source not reflectedThe harvester matches records on identifier, and the source changed the identifier or the update was skippedCompare the remote identifier with the one stored for the dataset, confirm the source record changed, then rerun the harvest
Duplicate datasets after identifiers changeThe source reissued identifiers, so the harvester created new datasets and the old ones remainMap old identifiers to new ones before the next run, then decide whether to delete or deprecate the old datasets and record the mapping
TLS or timeout errors during fetchThe CKAN worker host does not trust the source certificate chain, or the source responds too slowlyTest the source from the worker host using the same CA bundle, then check the fetch timeout and outbound network rules
RDF parse errorsThe source publishes a DCAT version or RDF serialization that the configured profile does not expectCompare the source's DCAT version and serialization with the profile the harvester expects, then adjust the profile or the source output
Breakage after a CKAN upgradeThe harvest extension version does not match the new CKAN minor version, or a dependency changedCheck the extension's compatibility notes for the new CKAN version, align the versions, and test a harvest on staging first

What does CKAN harvesting cost to set up, and what does it need from our team?

What drives the cost of setting up CKAN harvesting?

The cost follows the work in the harvest scope, because the CKAN software itself is open source and free to use. The main drivers are the number and type of harvest sources, the complexity of the metadata profile each source uses, and any schema customization the target portal needs to hold what comes in. Each environment (development, test and production) repeats configuration and testing. Monitoring, alerting and upgrade work after setup also add effort over time. Sources that publish clean, stable metadata cost less to map than sources that change their feeds often. This section gives no prices or durations. Ask the partner to break the quote down by these drivers so you can see which ones move the total.

Which harvesting costs are one-time and which recur?

Setup is one-time work paid to the partner: designing the harvest sources and schedules, building or customizing the metadata mapping, configuring the Redis queues and background workers, testing each source through its gather, fetch and import stages, and handing over documentation. Recurring costs include hosting for CKAN, Solr, PostgreSQL, Redis and the worker processes, monitoring, and upgrades. CKAN's release policy targets about two minor releases a year and supports only recent patch releases, so plan upgrade work on a steady cycle. Fixes are also recurring when a source changes its feed or its schema. Ask the quote to mark each line as one-time or recurring and to state whether ongoing support is a retainer or billed per request.

Can our in-house team set up CKAN harvesting without a partner?

Yes, if your team already runs CKAN in production and has the skills to operate it. Setup needs people who can administer Linux servers, PostgreSQL, Solr, Redis and Python services, deploy CKAN with uWSGI and Nginx, and read CKAN logs. The install from source requires Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis. Your team also needs someone who knows each source catalog, its access rules and its metadata. A partner is most useful when a required skill is missing or when the timeline leaves no room for learning on the job. Run a short skills review against this list before deciding.

How does the timeline change with the scope of harvesting?

The timeline follows the scope, and no duration is given here. The biggest factors are the number of harvest sources, how many of them need custom mapping, how many environments must be built and tested, and whether the target portal needs schema or theme changes first. Sources with stable, well-documented feeds usually take less checking than sources with inconsistent metadata or unclear access rules. Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts. Ask for a timeline tied to each source and each environment, and check which steps depend on your approvals or on access to the source catalogs.

Can a partner set up harvesting from a non-CKAN data catalog?

Often yes, but it depends on what the source exposes. CKAN's DCAT extension includes an RDF harvester for importing from other catalogs that publish DCAT metadata, and that is one route to check first. Other catalogs may need a custom harvester, an export step or a different access method, and each option adds build and testing work. Before quoting, the partner should check the access method, authentication, reuse terms in the source's license, update frequency and metadata standard for each catalog. Ownership of any custom harvester after handover should be written into the scope.

What should we ask for in a written harvesting quote?

Ask for a written quote that lists the scope by sources, environments and deliverables before any price is discussed. The quote should include:

  • A list of harvest sources, with the access method, format and update schedule for each.
  • The metadata mapping and any schema customization, stated per source.
  • The environments covered, and what is built, tested and handed over in each.
  • The monitoring, alerting and logs included, and who receives the alerts.
  • The upgrade and patch work covered during the term, and the CKAN version targeted.
  • One-time items separated from recurring items, with the support model.
  • Assumptions, exclusions and what your team must provide.
  • Acceptance criteria and the retest steps that close each item.
Does DeployOpen certify that a harvested portal meets compliance requirements?

No. DeployOpen does not issue audit reports, attestations or certifications. DeployOpen prepares systems, controls and evidence for compliance assessments, such as documented harvest configurations, access settings, logs and backup records. Independent auditors or certification bodies make any formal determination. If your portal must meet open data or data protection obligations, confirm with your compliance team which evidence each assessor expects, then include those artifacts in the written scope. Ask the quote to list the evidence DeployOpen will deliver so your team can check it against those expectations.

How DeployOpen scopes and supports a CKAN harvesting setup

DeployOpen treats CKAN harvesting from other data catalogs as an integration with its own scope, build and operating needs. We start from the catalogs you need to pull from, the metadata they publish and the schedule your portal can support, then build and document the harvest sources, jobs and monitoring in infrastructure you control. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • Inventory the source catalogs, their CKAN versions, and whether each exposes an API or DCAT RDF endpoint.
  • Agree which datasets, organizations and metadata fields are harvested, and which are filtered out before import.
  • Set the written scope, deliverables and retainer terms for ongoing support before any configuration begins.

How we build

  • Install ckanext-harvest and configure harvest sources, schedules and the Redis queue on your CKAN servers.
  • Tune gather, fetch and import behavior per source, including the harvester type that matches each catalog.
  • Test each source against a staging portal before any scheduled harvest writes to production.

How we hand over

  • Document each harvest source, its schedule, owner and the fields it maps, in a runbook your team keeps.
  • Walk your operators through job monitoring, failed-harvest triage and how to rerun or disable a source.
  • Hand over configuration files and deployment notes so your team can reproduce the setup in its own environment.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped in writing.
  • Ask whether a retainer covers harvest failures, CKAN patch upgrades and extension compatibility checks.
  • Under a retainer, review harvest logs and source changes when an upstream catalog changes its API or metadata.

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.