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

# sk150712 - Migrate import from R77.30 to R80/R80.10 fails with "fwauth.NDB may be corrupted" message

| Property | Value |
|----------|-------|
| Solution ID | sk150712 |
| Date Created | 2019-04-15 |
| Last Modified | 2019-05-10 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20, R82.x, R82.20 |
| OS | Gaia |

## Symptoms

- * Migrate import from R77.30 to R80.10 finishes with errors in `/opt/CPshrd-R80/log/migrate.xxxx.xx.xx_xx.xx.xx.log` file:

  ```
  
    [DATE TIME] [DbUpgrader::exec] ERR: Failed to upgrade main database
    [DATE TIME] .<-- DbUpgrader::exec
    [DATE TIME] <-- ConditionalExecutor::exec
    [DATE TIME] [ActivitiesManager::exec] ERR: Activity 'ConditionalExecutor' failed
    [DATE TIME] [ProgressUpdater::UpdateProgressToGaia] Progress Updated to '56.25
    [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
  ```

* The `$FWDIR/log/upgrade_log-xxxx.xx.xx_xx.xx.xx.elg` file shows:

  ```
  
    [PID]@hostname[date time] [CUpgradeAuthKeys::getAuthKeysFromNDB] running CUpgradeAuthKeys::getAuthKeysFromNDB
    WARNING: add_global_group_by_h_with_scope: failed to fetch user <149F9D8E4F83E07A> , fwauth.NDB may be corrupted !
    fwa_fetch_all_keys_byh_with_scope: failed to fetch all keys. last key was t[...
    [PID]@hostname[date time] [CUpgradeAuthKeys::getAuthKeysFromNDB] ERROR: fwa_fetch_all_byh_with_scope failed
    [PID]@hostname[date time] [CUpgradeAuthKeys::Execute] FATAL ERROR: Failed to upgrade Authentication Keys
    [PID]@hostname[date time] [CUpgradeRulesList_Impl::Apply] FATAL ERROR: Postupgrade action had failed, aborting upgrade
    [PID]@hostname[date time] [CManualUpgradeMgr_Impl::PerformUpgrade] ERROR: Could not execute rule list for version 'R77'
    [PID]@hostname[date time] [CUpgradeMgr::PerformManualUpgrade] ERROR: Failed to perform Manual Upgrade
    [PID]@hostname[date time] [CUpgradeMgr::PerformUpgrade] ERROR: Upgrade actions for manual upgrade had failed
    [31685 4084496144]@hostname[date time] [writeUpgradeResult] The path to result file is: '/opt/CPsuite-R80/fw1/log/upgrade_result'
    [PID]@hostname[date time] [writeUpgradeResult] Wrote the following to the result file: '80004005'
    [PID]@hostname[date time] [CCPDBMain::Run] cpdb ended with result '0x80004005' (Unspecified error).
    [PID]@hostname[date time] [CCPDBMain::Run]  Setting upgrade phase in CPM Server
    [PID]@hostname[date time] [CCPDBMain::setNgmUpgradeStatus] Setting upgrade phase for domain 41e821a0-3720-11e3-aa6e-0800200c9fde to post_objects
    [PID]@hostname[date time] [CCPDBMain::Run]  Setting upgrade phase in CPM Server
    [PID]@hostname[date time] [CCPDBMain::setNgmUpgradeStatus] Setting upgrade phase for domain 41e821a0-3720-11e3-aa6e-080
  ```

## Cause

The *fwauth.NDB* file was corrupted during the upgrade process.

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