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

# sk170615 - Policy installation on VS fails with: "Policy installation failed on gateway. If the problem persists contact Check Point support (Error code: 0-2000172-3)"

| Property | Value |
|----------|-------|
| Solution ID | sk170615 |
| Date Created | 2020-11-24 |
| Last Modified | 2022-06-05 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |

## Symptoms

- * Policy installation fails on a VS with:`"
  Policy installation failed on gateway. If the problem persists contact Check Point support (Error code: 0-2000172-3)"`.

* Fetching policy on the local in the VS context (`fw fetchlocal -d $FWDIR/state/__tmp/FW1 >& DebugInstallPolicy.dbg`) contains the following messages:


  `{policy} appi_cmi_handlers_common_check_entitlement: overwriting applications_entitlement.C with applications_entitlement.C.orig and trying again`  
  `
  [DATE TIME] cpFileCopy: failed to fopen64 source file, calling fopen`  
  `
  [DATE TIME] cpFileCopy: failed to fopen source file`  
  `
  {policy} [ERROR]: appi_cmi_handlers_common_check_entitlement: cpFileCopy() failed`  
  `
  [5 Nov 16:24:47] malware_handler_add_signatures_start_cb: appi_cmi_handlers_common_check_entitlement() failed`  
  `
  {module} [ERROR]: cmi_loader_update_apps: begin_update_cb failed for app MALWARE (3)`  
  `
  {report} setErrorMsgCode: error msg code set to: (2000172)`

* The file /opt/CPsuite-R80.30/fw1/CTX/CTX0000\<XX\>/conf/applications_entitlement.C.orig is missing on the problematic VS.  

  (where XX is a VS number).

## Cause

In a rare scenario the file applications_entitlement.C.orig is not generated on the VS during its creation.

## Solution

This problem was fixed. The fix is included in:

* [Check Point R80.40](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk160736)

If you choose not to upgrade, Check Point can supply a **Hotfix** . [Contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get a Hotfix for this issue.  
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
For faster resolution and verification, please collect [CPinfo files](http://supportcontent.checkpoint.com/solutions?id=sk92739) from the Security Management Server and Security Gateways involved in the case.

<br />

After installing the hotfix

1. Run the following command for all existing VS's

   **` # ln -s /opt/CPsuite-R80.30/fw1/conf/applications_entitlement.C.orig /opt/CPsuite-R80.30/fw1/CTX/CTX0000<#>/conf/applications_entitlement.C.orig`**

   where # is the problematic VS number
2. Install the policy

---

# 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
