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

# sk170476 - After Security gateway in-place upgrade policy installation fails with "Error: 0-2000257-31"

| Property | Value |
|----------|-------|
| Solution ID | sk170476 |
| Date Created | 2020-11-14 |
| Last Modified | 2020-11-18 |
| Technical Level | Advanced |
| Products | Security Gateway, Security Management Server |
| Versions | R81 (EOS), R81 (EOS) |
| OS | Gaia |

## Symptoms

- * Security policy installation fails with "Error: 0-2000257-31" after Security Gateway in-place upgrade.  

* When executed on the Security Gateway the `"fw stat"` command display: "`Local host is not a FireWall-1 module`"  

* In some cases `"cpstop; cpstart"` shows `"Unable to open '/dev/fw0': No such file or directory" `

## Cause

Registry corruption during the upgrade.

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