NetWorker: When the postgres daemon is not running, the NMC login prompts with error "Unable to connect to database"

Summary: NetWorker: When the postgres daemon is not running, the NMC login prompts with error "Unable to connect to database"

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Accessing the NetWorker Management Console (NMC) returns: "Unable to connect to database"

The postgres daemon is not listed for the NMC GST service:

Linux: ps -ef | grep "gst\|lgtogst"
Windows (PowerShell): Get-WmiObject Win32_Process | Where-Object {$_.Name -match "gstd.exe|postgres.exe"} | Select-Object Name, ProcessID, CommandLine 

The render of the gstd.raw file notes

gstd NSR warning: failed to get db connection to fetch server configuration
 

NetWorker: How to use nsr_render_log to render .raw log files

Linux: /opt/lgtonmc/logs/gstd.raw
Windows: <INSTALL_DRIVE>:\Program Files\EMC NetWorker\Management\GST\logs.gstd.raw

Cause

The postgres data base is in an inconsistent state.

Resolution

  1. Stop the NMC daemons with:

Linux: /etc/init.d/gst stop or systemctl stop gst
Windows: net stop gstd

  1. Ensure the daemons stop with:

Linux: ps -ef | grep "gst\|lgtogst"
Windows (PowerShell): Get-WmiObject Win32_Process | Where-Object {$_.Name -match "gstd.exe|postgres.exe"} | Select-Object Name, ProcessID, CommandLine

NOTE: If the NMC server is also a NetWorker Web User Interface (NWUI) server, a postgres process is also listed for the NWUI database. The paths shown for these processes include "nwui."
  1. Terminate any NMC processes which did not shut down:

Linux: kill -9 PID
Windows: taskkill /F /PID PID

  1. Start the NMC daemons with:

Linux: /etc/init.d/gst start or systemctl start gst
Windows: net start gstd

  1. Ensure all daemons start with:

Linux: ps -ef | grep "gst\|lgtogst"
Windows (PowerShell): Get-WmiObject Win32_Process | Where-Object {$_.Name -match "gstd.exe|postgres.exe"} | Select-Object Name, ProcessID, CommandLine

 

Monitor the NMC gstd.raw and postgres logs for any errors:

NetWorker: How to use nsr_render_log to render .raw log files

Linux: 

    • /opt/lgtonmc/logs/gstd.raw
    • /nsr/nmc/nmcdb/pgdata/pg_log/postgresql-DAY.log

Windows:

    • <INSTALL_DRIVE>:\Program Files\EMC NetWorker\Management\GST\logs.gstd.raw
    • <INSTALL_DRIVE>:\Program Files\EMC NetWorker\Management\nmcdb\pgdata\pg_log\postgresql-DAY.log

Additional Information

Affected Products

NetWorker
Article Properties
Article Number: 000031351
Article Type: Solution
Last Modified: 16 May 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.