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

# sk169072 - Cannot perform logout for WEB API open sessions

| Property | Value |
|----------|-------|
| Solution ID | sk169072 |
| Date Created | 2020-09-01 |
| Last Modified | 2020-12-09 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20 |

## Symptoms

- * Logout fails for WEB API sessions of user WEB API.
* Show Policy Package Tool leaves an open session.
* Sessions of automatic scripts or third party software that run on Security Management remain open.
* While registring of a new CloudGuard Gateway service fails with "An error occurred during service creation - aborting", following sk164072 does not helps.

## Cause

1.) Logout of a session of WEB API application and WEB API user in read only mode does not work, due to a mechanism that creates an audit log for this operation.  

2.) In case of registring of a new CloudGuard Gateway **"vsec_config.elg"** prompts:  

2020-09-05 19:13:15,994 INFO \[main\] (RestRequest.java:3) - Send() operation ended successfully.  
2020-09-05 19:13:15,995 INFO \[main\] (NetXClient.java:136) - getServiceManagerByUrl: **There is no Service Manager.**   
2020-09-05 19:13:15,995 INFO \[main\] (NetXCLI.java:1431) - checkIfThereIsServiceManagerWithURL: There is no service manager.  
2020-09-05 19:13:16,068 DEBUG \[main\] (NetXCLI.java:1215) - getCredsFromUser:getting admins list  
2020-09-05 19:13:16,889 DEBUG \[main\] (MgmtCLIUtils.java:107) - running command : mgmt_cli **logout**   
2020-09-05 19:13:16,986 ERROR \[main\] (ProcessUtils.java:27) - command failed , output:  
**code: "generic_server_error"**   

at com.checkpoint.VE.CLI.NetXCLI$VMwareMenu.execute(NetXCLI.java:2)  
at com.checkpoint.VE.CLI.NetXCLI.runMainMenu(NetXCLI.java:1586)  
at com.checkpoint.VE.CLI.NetXCLI.main(NetXCLI.java:135)  
2020-09-05 19:13:16,988 ERROR \[main\] (NetXCLI.java:264) - getCredsFromUser: **Failed getting**   
**admins**   

<br />

3.) On **cpm.elg:**   

10/08/20 02:31:15,323 INFO coresvc.internal.LoginSvcImpl \[qtp-1270762588-99647\]: Sending audit log to tracker: TrackerLog  

{workSessionId=null, operation='Log In', displayedSimpleFieldsChanges='null', displayedAdvancedFieldsChanges='null', displayLogicFieldsChanges='null', subject='Administrator Login', admin='WEB_API', applicationName='WEB_API', ipAddress='null', time=1597019475323, logSeqId=0, logObjectId=, additionalInfo='login by localhost'}

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