> Source: [sk160214](https://support.checkpoint.com/results/sk/sk160214)

# sk160214 - "ERR: Command completed with error code 4" error is received during CMA migration on Management HA environment

| Property | Value |
|----------|-------|
| Solution ID | sk160214 |
| Date Created | 2019-08-12 |
| Last Modified | 2020-03-10 |
| Technical Level | Advanced |
| Products | Security Gateway, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R81.20, R82, R82.20 |
| OS | Gaia |

## Symptoms

- * Cma_migrate failed with the error" "ERR: Command completed with error code 4" in a Management HA environment.

* Following logs are found in file: $MDS_TEMPLATE/log/cpm.elg :  

  `
  [DATE TIME] [CanonicalizePath] Canonicalizing path '/opt/CPmds-R80/customers/FR_B2B_001_First_DMS/CPsuite-R80/fw1/bin/upgrade_phase -d 6d54060e-13c7-4601-9558-73e62d910701 -c migrate_cma -s started'`  
  `
  [DATE TIME] [CanonicalizePath] Resulting path: '/opt/CPmds-R80/customers/FR_B2B_001_First_DMS/CPsuite-R80/fw1/bin/upgrade_phase -d 6d54060e-13c7-4601-9558-73e62d910701 -c migrate_cma -s started'`  
  `
  [DATE TIME] ..<-- CanonicalizePath`  
  `
  [DATE TIME] ..--> ExecCommandGetOutput`  
  `
  [DATE TIME] [ExecCommandGetOutput] Going to execute command: '/opt/CPmds-R80/customers/FR_B2B_001_First_DMS/CPsuite-R80/fw1/bin/upgrade_phase -d 6d54060e-13c7-4601-9558-73e62d910701 -c migrate_cma -s started'`  
  `
  [DATE TIME] [ExecCommandGetOutput] ERR: Command completed with error code 4`  
  `
  [DATE TIME] ..<-- ExecCommandGetOutput`  
  `
  [DATE TIME] [CommandRunner::exec] Command's output:`  
  `
  -------------------------------------`  
  `
  Failed to upgrade phase`  
  `
  -------------------------------------`  
  `
  [DATE TIME] [CommandRunner::exec] ERR: Command execution had failed`  
  `
  [DATE TIME] .<-- CommandRunner::exec`  
  `
  [DATE TIME] <-- ConditionalExecutor::exec`  
  `
  [DATE TIME] [ActivitiesManager::exec] ERR: Activity 'ConditionalExecutor' failed`  
  `
  [DATE TIME] [ProgressUpdater::UpdateProgressToGaia] Progress Updated to '57.1429`  
  `
  [DATE TIME] [ActivitiesManager::exec] WRN: Activities execution finished with errors`  
  `
  [DATE TIME] [ActivitiesManager::exec] WRN: Activities 'ConditionalExecutor' have failed`  
  `
  [DATE TIME] [ActivitiesManager::exec] Designated exit code is 1`  
  `
  [DATE TIME] --> CleanupManager::Instance`  
  `
  [DATE TIME] <-- CleanupManager::Instance`  
  `
  [DATE TIME] --> CleanupManager::DoCleanup`  
  `
  [DATE TIME] [CleanupManager::DoCleanup] Starting to perform cleanup`  
  `
  [DATE TIME] .--> CmaImportFailureMarker::exec`  
  `
  [DATE TIME] [CmaImportFailureMarker::exec] Chec`

* `Following error can be seen:`

  `
  `
  * Failed to find worksession for version: 635187764  
  * Failed to assign domain by package version for upgrade in multi-domain

  <br />

## Cause

Issue is caused due to an attempt to find IPS version 635187764 on the target machine (the Secondary machine) and failed to find it.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
