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

# sk171723 - Threat Prevention Policy fails with "Failed to read local.magic" or "Failed to read local.magic failed"

| Property | Value |
|----------|-------|
| Solution ID | sk171723 |
| Date Created | 2021-02-02 |
| Last Modified | 2021-02-03 |
| Technical Level | Advanced |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- These issues occur even after the user does the steps in [sk33328 -
How to clear $FWDIR/state/ directory to resolve policy corruption issues](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk33328):

* Threat Prevention Policy fails with "`Failed to read local.magic" or "Failed to read local.magic failed.`"
* Threat Prevention Fetch from the Security Gateway fails.
* The Security Gateway is missing the `$FWDIR/state/local` directory.

**Note** : Access Control Policy pushes successfully.

<br />

## Cause

One of the steps in [sk33328](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk33328) is to clear the `$FWDIR/state/*` folder.   

AMW policy install reads `local.magic` from` $FWDIR/state/local`. After FW1 policy installs on the Security Gateway, the `$FWDIR/state/local`, the directory no longer exists, and files were not copied from `__tmp` to local on successful policy install of FW1.   

**As noted in [sk33328](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk33328), the procedure there is not valid for VSX, 44000, and 64000 Security Gateways.**   

<br />

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