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

# sk172866 - "Check Point Security Management Server is during initialization" message when running the "cpm_status.sh" script

| Property | Value |
|----------|-------|
| Solution ID | sk172866 |
| Date Created | 2021-04-09 |
| Last Modified | 2021-07-13 |
| Technical Level | Advanced |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * "`Check Point Security Management Server is during initialization`" When running the `$MDS_FWDIR/scripts/cpm_status.sh` script.

* The *$FWDIR/log/cpm.elg* file contains these error messages:


  `Caused by: 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'}
  `  

  `
  Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections
  `  

  `
  Caused by: java.net.ConnectException: Connection refused`
* Output of the "`$MDS_FWDIR/scripts/postgres_start.sh`" command shows:

  `Finished to run successfully postgres_configure.sh`  
  `
  bash: cannot redirect standard input from /dev/null: Permission denied`
* Output of the "`pg_ctl start`" command shows:

  `pg_ctl: the PID file "/opt/CPshrd-<Version>/database/postgresql/data/postmaster.pid" is empty`

## Cause

Insufficient permissions are assigned to the `/dev/null` device.

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