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

# sk109053 - "Authentication to Server failed" error when logging into the SmartEvent Console

| Property | Value |
|----------|-------|
| Solution ID | sk109053 |
| Date Created | 2015-12-15 |
| Last Modified | 2019-07-18 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- * "`Authentication to Server failed`" error when logging into the SmartEvent Console.

* The *$RTDIR/log/cpsemd.elg* file shows:

  `CDBFactory::GetDBFromFile - Database Initialization FAILED !!! Make sure that events database is up...`  
  `
  Error: Cannot connect to Eventia Database in try number #1. Will try again in 10 seconds.`  
  `
  failed query:`  
  `
  query = "Create Database events_db"`  
  `
  error message = "ERROR: database "events_db" already exists`   

* Output of "`ps aux | grep postgres`" command does not show the `postgressql` process (i.e., it is not running).

* Output of "`cpwd_admin list`" command shows the "`CPSEMD`" process in the State "`T`" (terminated).

* The *postgressql-xxxx-xx-xx_xx.log* file shows:

  `FATAL: "base/xxxxx" is not a valid data directory" in `  
  `
  DETAIL: File "base/xxxxx/PG_VERSION" is missing.`  
  `
  ERROR: database "events_db" already exists`

## Cause

SmartEvent database is corrupted.

**Note:** This issue can also happen if the space available on */var/log* is 0%. This can happen whe the user sees "Authentication to Server failed" message when logging in. Disk space full may lead to failure in login.

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