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

# sk145200 - Cannot connect to the Security Management Server with SmartConsole

| Property | Value |
|----------|-------|
| Solution ID | sk145200 |
| Date Created | 2019-01-21 |
| Last Modified | 2021-10-12 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * The user cannot connect to the Security Management Server with SmartConsole after a reboot.

* The *cpm_status.sh* run from the SSH session shows: "`Check Point Security Management Server is during initialization`".

* During the CPM process initialization, *CPM.elg* again and again shows:

  ```
  
  DATE TIME,PID  INFO dleserver.internal.SlowDownThreadPoolTaskExecutor [main]: Shutting down ExecutorService 'taskExecutor'
  Exception in thread "main" org.springframework.beans.factory.BeanCreationException: 
  Error creating bean with name 'setupPreparationBean' defined in class path resource [objectStoreConfiguration.xml]: 
  Invocation of init method failed; nested exception is
  CpmGeneralException{base='com.checkpoint.management.is.exceptions.CpmGeneralException: Couldn't connect to database', errorCode='CP_ERR_DATABASE_CONNECTION', errorFamily='null', messageForUser='null', 
  message='Couldn't connect to database'}
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
          at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
          
  ```

* When the user tries to start up the *postgres* process, the next command fails with this error:

  ```
  
  # /opt/CPshrd-R80.20/database/postgresql/bin/postgres
  2019-01-01 10:19:23.660 EET 116064 0  FATAL:  could not open log file "/opt/CPsuite-R80.20/fw1/log/postgres-2019.elg": Permission denied
  ```

## Cause

The CPM process failed to start. The .*elg* file used for logging by a postgres process is not on the server, or permissions were changed.

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