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

# sk122276 - SMB appliances fail to upgrade firmware 

| Property | Value |
|----------|-------|
| Solution ID | sk122276 |
| Date Created | 2018-01-10 |
| Last Modified | 2019-01-14 |
| Technical Level | Advanced |
| Products | Spark Firewall (Locally Managed) |
| Versions | R82.00.X, R81.10.X |

## Symptoms

- * Scenario 1: In $FWDIR/log/sfwd.elg for error: ` "sfwd_periodic_memory_rss: sfwd RSS (191 MB) is over the defined limit (180 MB). sfwd is exiting."`
* Scenario 2: In /logs/upgrade_image you see: libmtd: error!: bad eraseblock number 64, mtd2 has 64 eraseblocks nandwrite: error!: /dev/mtd2: MTD get bad block failed error 22 (Invalid argument) nandwrite: error!: Data was only partially written due to error error 22 (Invalid argument)

## Cause

Scenario 1:

After the download was scheduled, one of the Security Gateway's processes crashed because of lack of memory (SFWD), and did not reschedule the download task for when the Security Gateway restarts.

Scenario 2:

Firmware upgrade process does not accommodate for bad blocks at the end of first kernel partition and failing 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
