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

# sk117473 - SMB gateway managed via SmartProvisioning cannot fetch policy after major upgrade

| Property | Value |
|----------|-------|
| Solution ID | sk117473 |
| Date Created | 2017-05-19 |
| Last Modified | 2020-08-22 |
| Technical Level | Advanced |
| Products | Security Management Server, Spark Firewall (Locally Managed) |
| Versions | R82.10, R82, R81.20, R82.00.X, R81.10.X, R82.20 |

## Symptoms

- * After upgrade from R75.20 to R77.20, SMB gateway managed via SmartProvisioning cannot fetch policy and after some time reverts to the previous image.  

* Manual policy fetch on SMB device (`fw -d fetch`) fails:

  ```
  
  [PID]@Hostname[DATE TIME] CPTA_GetPolicyFromLocalStorage - CPTA_GetPolicyFromDir success for dir /opt/fw1/state/local/FW1
  Local Security Policy is Up-To-Date.
  
  Installing Security Policy...
  [PID]@Hostname[DATE TIME] sfw_load: Error loading database from policy.
  [PID]@Hostname[DATE TIME]
  sfw_load: Error loading security policy
  
  Error loading policy.
  sfw_fetch_callback: Failed to execute command '"/opt/fw1/bin/fw" fetchlocal -d "/opt/fw1/state/local/FW1"'. rc=1, exit code =-1
   Unable to install the Security Policy on the appliance
  ```

* Version manual change in SmartProvisioning for this particular device object resolves the problem with policy fetch.

## Cause

When gateway comes up after major upgrade, it should contact Security Management server with a notification about successful upgrade. Security Management changes object version in SmartProvisioning automatically, and then on policy fetch request from SMB device provides a policy package that is related to another SmartLSM profile.

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