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

# sk173624 - Cloud Guard Extension (CME) does not discard used sessions 

| Property | Value |
|----------|-------|
| Solution ID | sk173624 |
| Date Created | 2021-05-21 |
| Last Modified | 2022-09-06 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * "cme service test" fails on the API command:

  ```
  
  Failed discard old sessions (5/5):
  Error Code: Management API error
  
  API call: show-sessions failed with an exception: 'to'.
  ```

  <br />

* In *api.elg* the request looks like this:

  ```
  
  Address: http://127.0.0.1:50276/web_api/discard
  Encoding: ISO-8859-1
  Http-Method: POST
  Content-Type: application/json
  ....
  Payload: {"uid":""}
  ```

  <br />

* 
  If the session is open in the database, the response in *api.elg* looks like this:

  ```
  
  Response-Code: 200
  ...
  Payload: number-of-discarded-changes: 0
  message: "OK"
  ```

* If the session is discarded in the database, there is an error:

  ```
  
  
  ERROR com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:94 [qtp-1297410348-33] - 
  Server has thrown GeneralRemoteFault exception errorCode [The required session is no longer available. 
  Please verify if private session was published or discarded.] errorFamily [null] message [An internal error has occurred.]
  
  ...
  
  Response-Code: 400
  Content-Type: text/plain
  Headers: {Content-Type=[text/plain], Date=[Wed, 21 Apr 2021 15:02:41 GMT]}
  Payload: code: "generic_server_error"
  message: "Management server failed to execute command"
  ```

  <br />

## Cause

There is a corrupted aggregator in SOLR for a work session that CME uses. If you discard the session manually, CME still tries to discard it because of the aggregator.  

Starting from R81.10, SOLR is replaced with a PostgreSQ, and the Root Cause for the time-out in command is still under investigation. For more information please refer to [R81.10 Release Notes](https://sc1.checkpoint.com/documents/R81.10/WebAdminGuides/EN/CP_R81.10_RN/Topics-RN/Software-Changes.htm?TocPath=Software%20Changes%7C_____0).  

<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
