Satellite WebUI shows Capsule sync in 50% progress, despite no task is running

Solution Verified - Updated

Environment

  • Red Hat Satellite 6
    • External Capsule

Issue

Satellite WebUI shows Content Sync status with "Capsule is synchronized" text, but progress bar with 50% pending status.

Clicking to the progress bar, foreman tasks with the Capsule are shown - but all of them are stopped.

Is the Capsule synchronized? What task makes the progress bar to show at all?

Resolution

Identify a Capsule sync task with incomplete result, and fix that.

  • Run inside foreman-rake console:
capsule = SmartProxy.unscoped.find(123)   # ID of the Capsule
organization = Organization.find(1)   # ID of the Organization
lifecycle_environments = capsule.lifecycle_environments.where(organization_id: organization.id)

capsule.active_sync_tasks
capsule.reclaim_space_tasks.where(:result => 'pending', :state => 'stopped')
  • Either of latest 2 commands is expected to show some task with state=stopped but result=pending, like:
[#<ForemanTasks::Task::DynflowTask:0x00007fa31ee5f330
  id: "ac620a04-068a-4577-a494-6ce51893fe2f",
  type: "ForemanTasks::Task::DynflowTask",
  label: "Actions::Katello::CapsuleContent::Sync",
  started_at: Mon, 27 Apr 2026 01:24:18.530000000 UTC +00:00,
  ended_at: Tue, 28 Apr 2026 00:00:47.746238000 UTC +00:00,
  state: "stopped",
  result: "pending",
  external_id: "857b80e1-772a-40d3-b143-6b4caa99ec07",
  parent_task_id: "59d6cb3e-cace-44be-bba3-46568e03e13c",
  start_at: Mon, 27 Apr 2026 01:24:18.526546000 UTC +00:00,
  start_before: nil,
  action: "Synchronize Capsule 'CAPSULE.FQDN'",
  user_id: 1,
  state_updated_at: Tue, 28 Apr 2026 00:00:47.768650000 UTC +00:00>]
  • Fix result of the task (that has not been properly updated by dynflow at the task completion) - despite the task might completed successfully, it is safer to assume otherwise. Use proper task id from the id: "..." property:
task = ForemanTasks::Task.find('ac620a04-068a-4577-a494-6ce51893fe2f')
task.result = 'error'
task.save!
  • Try accessing the WebUI page to verify the progress bar is gone.

For more KB articles/solutions related to Red Hat Satellite 6.x Capsule Sync Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Capsule Sync Issues

Root Cause

dynflow has not properly set up result of the task, by some error. This caused capsule.active_sync_tasks contains an "unfinished" task that is interpreted by WebUI as an incomplete sync task, with unknown progress, hence estimated to 50%.

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.