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

# sk113746 - "NMSCFD0026 Timeout waiting for response from database server" error when running the "save config" command in Gaia Clish

| Property | Value |
|----------|-------|
| Solution ID | sk113746 |
| Date Created | 2016-10-06 |
| Last Modified | 2024-12-10 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server, Multi-Domain Security Management Server |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Solution

### Introduction

This article describes different scenarios when getting "**`NMSCFD0026 Timeout waiting for response from database server`** " error when running the "`save config`" command in Gaia Clish. Each Scenario has its own cause and solution.  
See the Table of Contents below.

**Table of Contents:**

* Scenario 1 - Multiple interfaces are configured in Gaia OS
* Scenario 2 - Corruption of Gaia Database
* Related documents
* Related solutions

Show the Entire Article

### Scenario 1 - Multiple interfaces are configured in Gaia OS {#Scenario 1}

**Symptoms:**

* "NMSCFD0026 Timeout waiting for response from database server" error when running the "`save config`" command in Gaia Clish.
* Output of "`ls -l /config/db/initial_db`" command shows that size of Gaia Database is large.

Show / Hide solution  
**Issue:**

* 00262415
* 01111060

**Cause:**
> Multiple interfaces are configured in Gaia OS (e.g., VLAN interfaces, VSX wrp interfaces, Backup IP addresses in VRRP cluster).  
> As a result, the "save" operation does not have enough time to complete before the internal timeout is reached.

**Solution:**
> [Contact Check Point Support](http://www.checkpoint.com/support-services/contact-support/index.html) to get a Hotfix for this issue.  
> A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
> For faster resolution and verification, please collect [CPinfo file](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92739) from the Gaia OS machine involved in the case.
>
> **Note:** This issue was *partially* resolved in R75.47 (Issue ID 01165686) and in R76 (Issue ID 00262415).
>
> **Code was improved:**
>
> * A new environment variable **`CKP_DB_EXTENDED_TIMEOUT`** can be configured that will hold the user-defined timeout value for operations with Gaia Database.
>
> **Hotfix installation and configuration instructions:**
>
> 1. Hotfix has to be installed on ***machine running on Gaia OS***.
>
>    **Notes:**
>    * In cluster environment, this procedure must be performed on *all* members of the cluster.
>    * In Management HA environment, this procedure must be performed on *both* Management Servers.
> 2. Hotfix installation instructions:
>
>    * Using CPUSE - On Security Gateway / Management Server running Gaia OS R75.40 and above:
>
>      Make sure to install the [latest build of the CPUSE Agent](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#Latest build of CPUSE and What's New).
>
>      Refer to [sk92449: CPUSE - Gaia Software Updates (including Gaia Software Updates Agent)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE):
>      * Section "[(4-A-c)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to download and import a CPUSE package - Import instructions for Offline procedure - Gaia Portal)" / "[(4-A-d)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to download and import a CPUSE package - Import instructions for Offline procedure - Gaia Clish)" - refer to import instructions for *Offline procedure*
>      * Section "[(4-B-a)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to install a CPUSE package - Installing a Hotfix package / Minor Version package)" - refer to installation instructions for *Hotfixes*
>
>      **Note:** Reboot is required.
>    * Using Legacy CLI - On VSX Gateway running Gaia OS R75.40VS and above:
>
>      Note: On these versions of VSX, the Gaia CPUSE does not support installation of hotfixes (refer to [sk92449](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#System requirements and limitations) - section "(2)" - "VSX Gateways").
>      1. Transfer the hotfix package to the machine (into some directory, e.g., */some_path_to_fix/*).
>
>      2. Unpack and install the hotfix package:
>
>         ***\[Expert@HostName:0\]# cd /some_path_to_fix/***   
>         ***\[Expert@HostName:0\]# tar -zxvf SecurePlatform_\<HOTFIX_NAME\>.tgz***   
>         ***\[Expert@HostName:0\]# ./SecurePlatform_\<HOTFIX_NAME\>***
>         **Note:** The script will stop all of Check Point services (*cpstop*) - read the output on the screen.
>      3. Reboot the machine.  
>
> <br />
>
> 3. Hotfix configuration instructions:  
>
> 1.
>    1. Connect to the command line on the Gaia OS again.
>
>    2. Log in to the Expert mode.
>
>    3. Backup the current */etc/environment* file:
>
>       **`[Expert@HostName:0]# cp -v /etc/environment /etc/environment_ORIGINAL`**
>    4. Edit the current */etc/environment* file:
>
>       **`[Expert@HostName:0]# vi /etc/environment`**
>    5. Add the following line:
>
>       **`CKP_DB_EXTENDED_TIMEOUT=`*timeout_value_in_seconds***
>
>       Notes:
>       * Spaces are not allowed
>       * *\<timeout_value_in_seconds\>* is an integer number of seconds (start with 30 seconds)
>    6. Save the changes and exit from Vi editor.
>
>    7. Verify the contents of the */etc/environment* file:
>
>       **`[Expert@HostName:0]# cat /etc/environment`**
>    8. Log in to the Clish.
>
>    9. Save the Gaia Database:
>
>       **`HostName:0> save config`**
>    10. If the "`NMSCFD0026 Timeout waiting for response from database server`" error appears again,  
>        then increase the value of the **`CKP_DB_EXTENDED_TIMEOUT`** variable two-fold (from 30 sec to 60 sec)  
>        and save the Gaia Database again.

### Scenario 2 - Corruption of Gaia Database {#Scenario 2}

**Symptoms:**

* "`NMSCFD0026 Timeout waiting for response from database server`" error when running the "`save config`" command in Gaia Clish.
* Output of "`top`" command during the "`save config`" command shows that `confd` process consumes CPU at 80% - 100%.

Show / Hide solution  
**Additional Symptoms:**

* Issue might have started after installing a hotfix.

**Cause:**
> Corruption of Gaia Database.

**Solution:**
> Maintenance window is required:
>
> * When *confd* daemon is starting, by design, it restarts any currently running *routed* daemons (by sending a TERM signal). It is done to avoid possible issues in Gaia Clish (e.g., returning invalid results for routing-related commands like "`show route`").
> * Since *routed* daemon is responsible for all the routing in Gaia OS, short traffic outage will occur while *routed* daemon is being restarted.
> * Since *routed* daemon is a Critical Device in Check Point cluster (since R76), cluster fail-over might occur while *routed* daemon is being restarted (refer to [sk92878](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92878)).
>
> Procedure:
>
> 1. Connect to the command line on the Gaia OS.
>
> 2. Log in to the Expert mode.
>
> 3. Stop the *confd* process:
>
>    **`[Expert@HostName:0]# tellpm process:confd`**
> 4. Backup the current Gaia Database:
>
>    **`[Expert@HostName:0]# mkdir /config/db/BKP`**   
>    **`[Expert@HostName:0]# mv /config/db/initial_db /config/db/BKP/`**
> 5. Recreate the Gaia Database based on the current configuration:
>
>    **`[Expert@HostName:0]# conv2db /config/db/initial /config/db/initial_db`**
> 6. Verify that the Gaia Database was recreated:
>
>    **`[Expert@HostName:0]# ls -l /config/db/initial_db`**
> 7. Assign the required permissions and ownership for the recreated Gaia OS SQL database:
>
>    **`[Expert@HostName:0]# chown -v admin:root /config/db/initial_db`**   
>    **`[Expert@HostName:0]# chmod -v u=rw,g=r,o=r /config/db/initial_db`**   
>    **`[Expert@HostName:0]# ls -l /config/db/initial_db`**
> 8. Set the revisions time in Gaia Database:
>
>    **`[Expert@HostName:0]# sqlite3 /config/db/initial_db "update revisions set time='1980-01-01 02:00:00';"`**
> 9. Start the *confd* process:
>
>    **`[Expert@HostName:0]# tellpm process:confd t`**

### Related documents {#Related documents}

* Gaia Administration Guide ([R75.40](http://supportcontent.checkpoint.com/documentation_download?id=13241), [R75.40VS](http://supportcontent.checkpoint.com/documentation_download?id=16244), [R76](http://supportcontent.checkpoint.com/documentation_download?id=22928), [R77.x](http://supportcontent.checkpoint.com/documentation_download?id=24828), [R80.10](http://downloads.checkpoint.com/dc/download.htm?ID=54824), [R80.20](https://sc1.checkpoint.com/documents/R80.20_GA/WebAdminGuides/EN/CP_R80.20_Gaia_AdminGuide/html_frameset.htm))

---

# 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
