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

# sk133233 - MDS import fails on the Secondary MDS 

| Property | Value |
|----------|-------|
| Solution ID | sk133233 |
| Date Created | 2018-07-31 |
| Last Modified | 2019-10-23 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R81.20, R82, R82.20 |
| OS | Gaia |

## Symptoms

- * MDS import (mds_import.sh) fails on the MDS level with the following error:

  ```
  
  Error:   Failed to upgrade Multi-Domain Server Databases
  Error:   Importing of Multi-Domain Server Databases failed.
  ```

* migrate-YYYY.MM.DD_HH.MM.SS.log shows the following failure errors:

  ```
  
  [DATE TIME] [runShellCommand] Executing command: '/opt/CPmds-R80/bin/upgrade_standby_server -migrate -primaryip x.y.z.w -mdsdb'
  [DATE TIME] [runShellCommand] Execution result: 1, exit code: 5
  [DATE TIME] [DbUpgrader::ExecuteCpdb] ERR: cpdb completed with error code '5'
  [DATE TIME] ...<-- DbUpgrader::ExecuteCpdb
  [DATE TIME] ..<-- DbUpgrader::RunCustomCpdbCommand
  [DATE TIME] [DbUpgrader::exec] ERR: Failed to execute custom upgrade command
  ```

* custom_upgrade_log-YYYY.MM.DD_HH.MM.SS.elg on the Secondary MDS shows the following messages related to full sync: \[DATE TIME\] Succeeded to start full sync from MDS IP x.y.z.w. \[DATE TIME\] Waiting for full sync \[DATE TIME\] Maximum timeout for full sync expired. Exiting... \[DATE TIME\] Full sync has failed for this Multi-Domain Management Server. Please make sure that proper license is installed.
* The cpm.elg\* on the Primary MDS indicates that the sync failed because the Primary MDS could not connect to the Secondary MDS.
* There is network connectivity between the Primary and Secondary MDS servers.
* The clocks on the Primary and Secondary servers are synchronized.

## Cause

Full synchronization with the Primary MDS failed on the Secondary MDS server during the upgrade/import process. The maximum timeout for full sync expired during the import of the database.

## 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
