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

# sk152736 - After SmartConsole crashes, user cannot login to the Security Management server

| Property | Value |
|----------|-------|
| Solution ID | sk152736 |
| Date Created | 2019-05-01 |
| Last Modified | 2020-01-04 |
| Technical Level | Advanced |
| Products | Security Management Server, SmartConsole |
| Versions | R82.10, R82, R81.20, R82.10, R82.20, R82.20, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * During a session SmartConsole crashes with no apparent trigger and since then connection to Security Management server fails.  

* The `cpm.elg` file shows:  

  `DATE TIME, PID ERROR scheduling.support.TaskUtils$LoggingErrorHandler [taskScheduler-6]: `**Unexpected error occurred in scheduled task** `.`  
  `
  org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: `  
  `
  Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.0.v20140809-296a69f): `  
  `org.eclipse.persistence.exceptions.DatabaseException`  
  `
  Internal Exception: org.postgresql.util.PSQLException: `  
  `
  ERROR: `**FATAL ERROR - Trying to update DISCARDED work session 2d1579f4-b1e4-43bd-a1ad-cddd4ae43dd6. Please contact technical support immediately.**   
  `
  Error Code: 0`  
  `
  Call: UPDATE WORKSESSION SET EXPIREDSESSION = ?, LASTLOGOUTTIME = ?, LASTMODIFYTIME = ? WHERE (OBJID = ?)`  
  `
  bind = > [4 parameters bound]`  
  `
  Query: InsertObjectQuery(com.checkpoint.management.object_store.Jpa2FtsLogRecord@9472019f)`  
  `
  at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:159)`  
  `
  at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:512)`  
  ...   

* Quick query to the postgres database shows the session state as DISCARDED:  

  `
  select * from worksession where objid= '2d1579f4-b1e4-43bd-a1ad-cddd4ae43dd6';`  
  `
  -[ RECORD 1 ]---------------+-------------------------------------`  
  `
  objid | 2d1579f4-b1e4-43bd-a1ad-cddd4ae43dd6`  
  `
  applicationname | SmartConsole`  
  `
  checkpointobjid |`  
  `
  color | BLACK`  
  `
  comments |`  
  `
  connectionmode | 0`  
  `
  customfields |`  
  `
  description |`  
  `
  displayname |`  
  `
  dlesession | 0`  
  `
  domainid | 41e821a0-3720-11e3-aa6e-0800200c9fde`  
  `
  domainipaddress | 62.168.35.151`  
  `
  duringrevert | f`  
  `
  email |`  
  `
  expiredsession | f`  
  `
  featurespreset | 875ead60-8095-3e1f-a7dd-a917d47f0303`  
  `
  folder | 7abf1e08-4840-4d64-a812-96bafad5aa04`  
  `
  icon | Objects/worksession`  
  `
  inwork | f`  
  `
  internalrevision | f`  
  `
  lastlogintime | 2019-04-11 04:00:06.941`  
  `
  lastlogouttime |`  
  `
  name |`  
  `
  numberoflocks | 0`  
  `
  numberofoperations | 0`  
  `
  permissionprimitivepresetid | 52c6ab76-450b-3273-8cc7-a1a5659d5f05`  
  `
  phonenumber |`  
  `
  publishtime | 2019-04-11 04:00:07.238`  
  `
  readprimitiveid | 6c9b6822-986c-3c79-b206-9a71b8e762a3`  
  `
  sessionaware | t`  
  `
  showinopenworksessionslist | f`  
  `
  state | DISCARDED`  
  `
  tags | ["java.util.HashSet",[]]`  
  `
  username | jskalny`  
  `
  creationtime | 2019-04-11 03:14:26.578`  
  `
  creator | jskalny`  
  `
  deletable | t`  
  `
  lastmodifier | jskalny`  
  `
  lastmodifytime | 2019-04-11 04:00:07.242`  
  `
  newobject | f`  
  `
  renameable | t`  
  `
  validationstate | 0`  
  `
  publicsession | f`

## Cause

Corruption between the opened connection sessions.

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