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

# sk108261 - "Installation failed. Reason: Failed to connect to the module, or the connection was lost" error when installing database

| Property | Value |
|----------|-------|
| Solution ID | sk108261 |
| Date Created | 2015-10-19 |
| Last Modified | 2021-04-09 |
| Technical Level | Advanced |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82.x, R82.20, R82.x, R81.20, R82, R82.20 |

## Symptoms

- * "`Installation failed. Reason: Failed to connect to the module, or the connection was lost.`" error when installing database on Security Gateway / Cluster.

  *Example*:

  ```
  
  Installing database on R77 compatible targets:
  Installing Databases on: <NAME_of_CLUSTER_OBJECT>
    Database installation failed for Security Gateway <NAME_of_MEMBER_OBJECT_1> (member of <NAME_of_CLUSTER_OBJECT>)...
    Installation failed. Reason: Failed to connect to the module, or the connection was lost. 
    Database installation canceled for Module <NAME_of_MEMBER_OBJECT_2> (member of <NAME_of_CLUSTER_OBJECT>)...
  ```

* Database installation debug (per [sk108263](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk108263)) shows:

  `
  ... ... ...`  
  `
  get_host_statedir : return state dir = /opt/CPsuite-R77/fw1/state/<NAME_of_INVOLVED_GW_CLUSTER_OBJECT>`  
  ` 
  ... ... ...`  
  `
  get_cond_statedir : return state dir = /opt/CPsuite-R77/fw1/state/<NAME_of_INVOLVED_GW_CLUSTER_OBJECT>/CPDB`  
  ` 
  ... ... ...`  
  `
  CPTA_GetPolicyDescriptor: reading new policy file descriptor from /opt/CPsuite-R77/fw1/state/<NAME_of_INVOLVED_GW_CLUSTER_OBJECT>/CPDB.tmp/policy.info`  
  ` 
  ... ... ...`  
  `
  CPTA_GetPolicyDescriptor: new policy file descriptor doesn't exist, using old one`  
  ` 
  ... ... ...`  
  `
  PolicyInfo::LoadOldFormatFrom - can't open /opt/CPsuite-R77/fw1/state/<NAME_of_INVOLVED_GW_CLUSTER_OBJECT>/CPDB.tmp/policy.map`  
  ` 
  ... ... ...`  
  `
  CPTA_GetPolicyDescriptor: Failed to get old policy map file from /opt/CPsuite-R77/fw1/state/<NAME_of_INVOLVED_GW_CLUSTER_OBJECT>/CPDB.tmp: No such file or directory`  
  `
  ... ... ...
  `

## Cause

*$FWDIR/state/\<NAME_of_INVOLVED_GW_OBJECT\>/**CPDB.tmp*** directory is missing on Security Management Server / Domain Management Server.

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