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

# sk156032 - After upgrade, site to site VPN fails on Main Mode packet 4/5, with "Payload malformed" error message

| Property | Value |
|----------|-------|
| Solution ID | sk156032 |
| Date Created | 2019-06-24 |
| Last Modified | 2020-12-31 |
| Technical Level | Advanced |
| OS | Gaia |

## Symptoms

- * After upgrade, Site to Site VPN fails on Main Mode packet 4/5, with "Payload malformed" error message.
* Even when using certificates, and not pre-shared key, *vpnd.elg* shows:  
  \[ vpnd pid\]\[Date Time\]\[\] -- updatePayloadMap: received payload PA_ID.  
  \[ vpnd pid\]\[Date Time\]\[\] updatePayloadMap: offset (28) + payload length (48672) exceeds packet   
  length (68) \[ vpnd pid\]\[Date Time\]\[\] identifyPayloads: failed for phase 1 stage 5.  
  \[ vpnd pid\]\[Date Time\]\[\] decryptVerifyMessage: error in identifyPayloads  
  \[ vpnd pid\]\[Date Time\]\[\] MMProcess5: **Failed to decrypt with pre-shared key**   
  \[ vpnd pid\]\[Date Time\]\[\] MMProcess5: End of PSK loop   
  \[ vpnd pid\]\[Date Time\]\[\] -- updatePayloadMap: received payload PA_ID.   
  \[ vpnd pid\]\[Date Time\]\[\] updatePayloadMap: offset (28) + payload length (48672) exceeds packet length (68)   
  \[ vpnd pid\]\[Date Time\]\[\] identifyPayloads: failed for phase 1 stage 5.   
  \[ vpnd pid\]\[Date Time\]\[\] MMProcess5: identifyPayloads failed.  
  \[ vpnd pid\]\[Date Time\]\[\] RespMMPacketError: error in FWIKE_EXCH_MAIN_MODE - FWIKE_MM_PACKET_5   
  \[ vpnd pid\]\[Date Time\]\[\] InitMMPacketError: possibly a preshared key mismatch
* See error about pre-shared key when using 2 Check Point gateways in Site to Site VPN, after upgrade, even though 2 Check Point gateways, managed by the same Security Management cannot use pre-shared key.

## Cause

* Corruption in the community object in the database, following the upgrade.
* Can be also corruption in the certificates of the gateway following 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
