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

# sk86961 - Policy installation after IPS update fails with 'Reason: Load on Module failed - failed to load Security Policy' 

| Property | Value |
|----------|-------|
| Solution ID | sk86961 |
| Date Created | 2012-10-29 |
| Last Modified | 2017-03-13 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * Policy installation in SmartDashboard fails:

  `Installation failed. Reason: Load on Module failed - failed to load Security Policy.`
* `/var/log/messages` file on problematic Security Gateway shows:

  ```
  
  kiss_htab_create_internal: reached the maximum number of tables 
  FW - 1 fwk_mtcounter_prepare: Error could not create a ghtab.
  kiss_ghtab_destroy: Global htab id -1 out of range!
  Assertion 0 failed in kiss_ghtab.c:N 
  kiss_ghtab_destroy: Global HTAB ID out of range 
  kiss_ghtab_destroy: Table -1 doesn't exist
  ```

* Kernel debug during policy fetching ('`fw ctl debug -m fw + filter`') shows:

  *

    ```
    
    ;FW-1: Attempting to create an already existing table: cmik_loader_sync_htab_table (N);
    ;fwk_cmi_prepare: failed to create cmik_loader_sync_htab_table table.;
    ;fwk_atomic_load_prepare: fwk_cmi_prepare failed
    ```

  *

    ```
    
    ;kiss_htab_create_internal: reached the maximum number of tables; 
    ;FW - 1 fwk_mtcounter_prepare: Error could not create a ghtab.; 
    ;fwk_atomic_load_prepare: fwk_mtcounter_prepare failed;
    ```

* If Application Control blade or URL Filtering blade is enabled, then fetching the local policy under debug ('`fw --d fetchlocal --d $FWDIR/state/__tmp/FW1`') shows:

  ```
  
  fw_atomic_add_ws_sgen_buffers: struct_buffer is now full, size ... bytes 
  fw_atomic_add_rad_sgen_buffers: SGen_rad_global_struct_to_buffer 
  fw_atomic_add_rad_sgen_buffers:rad add buffer is OK 
  fw_atomic_add_appi_sgen_buffers: struct_buffer is now full, size ... bytes
  
  fw_atomic_download: sizeof struct fwatomload ... 
  fw_atomic_download: FWATOMICLOAD ...
  fw_atomic_download: FWATOMICLOAD done ret=-1 
  fw_atomic_download: FWATOMICLOAD failed: Invalid argument
  ```

## Cause

The maximal number of hash tables exceeded the current predefined limit.

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