NetWorker: Quando il daemon postgres non è in esecuzione, l'accesso a NMC visualizza l'errore "Unable to connect to database"

Summary: NetWorker: Quando il daemon postgres non è in esecuzione, l'accesso a NMC visualizza l'errore "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

L'accesso a NetWorker Management Console (NMC) restituisce: "Impossibile connettersi al database"

Il daemon postgres non è elencato per il servizio NMC GST:

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 

Il rendering delle note del file di gstd.raw

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

NetWorker: Come utilizzare nsr_render_log per eseguire il rendering .raw file di log

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

Cause

Il database Postgres è in uno stato incoerente.

Resolution

  1. Arrestare i daemon NMC con:

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

  1. Assicurarsi che i daemon si chiudano con:

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

NOTA: Se il server NMC è anche un server NetWorker Web User Interface (NWUI), viene elencato anche un processo postgres per il database NWUI. I percorsi mostrati per questi processi includono "nwui".
  1. Terminare eventuali processi NMC che non si sono arrestati:

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

  1. Avviare i daemon NMC con:

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

  1. Assicurarsi che tutti i daemon inizino con:

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

 

Monitorare i log gstd.raw e postgres di NMC per rilevare eventuali errori:

NetWorker: Come utilizzare nsr_render_log per eseguire il rendering .raw file di log

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.