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

# sk158212 - "Global lock is locked login exception - ipAddress fwm_user" and "Database is locked by another application" errors when connecting to the MDS/CMA

| Property | Value |
|----------|-------|
| Solution ID | sk158212 |
| Date Created | 2019-07-16 |
| Last Modified | 2021-08-11 |
| Technical Level | Advanced |
| Products | SmartConsole, Multi-Domain Security Management Server |
| Versions | R82.10, R82.10, R82.20, R82, R81.20, R81.20, R82, R82.20 |

## Symptoms

- * When the user tries to connect directly to MDS/CMA, the following error message appears:  

  `Global lock is locked login exception - ipAddress fwm_user @ 127.0.0.1&`


  ![](https://sc1.checkpoint.com/sc//SolutionsStatics/NEW_SK_NOID1563099330491/loginFirstScreen1907140424.JPG)


  ![](https://sc1.checkpoint.com/sc//SolutionsStatics/NEW_SK_NOID1563099330491/mdsLogin1907140425.JPG)
* When the user tries to connect to the CMA from the MDS, the following error message appears:  

  `Database is locked by another application.`


  ![](https://sc1.checkpoint.com/sc//SolutionsStatics/NEW_SK_NOID1563099330491/CMAInternalConnect1907140426.JPG)
* In cpm.elg:

  ```
  
  08/07/19 16:54:22,376 INFO coresvc.internal.LoginSvcImpl [qtp329326065-665325]: Setting username=aa according to the ticket info
  08/07/19 16:54:22,376 INFO coresvc.internal.LoginSvcImpl [qtp329326065-665325]: Setting username=aa according to the ticket
  08/07/19 16:54:22,512 ERROR coresvc.internal.DomainSessionMgmtSvcImpl [qtp329326065-665325]: GlobalLockIsLockedLoginException: IP fwm_user @ 127.0.0.1
  ```

## Cause

The database was locked via the following procedure:

1. `dbedit -local -d mdsdb -globallock `
2. `dbedit -local -globallock `
3. Running any script that uses dbedit and forgetting to quit dbedit, or the session disconnected without the user's quitting dbedit.

![](https://sc1.checkpoint.com/sc//SolutionsStatics/NEW_SK_NOID1563099330491/psaux1907140440.jpg)

In the image above, note the top two rows:

* `dbedit -local -d mdsdb -globallock`: This means there is a lock on the MDS database.
* `dbedit -local -globallock`: This means there is a lock on the CMA database.

In other scenarios, only 1 row will appear, depending on which database is locked.

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