NMDA: Backup di Postgres non riuscito, impossibile connettersi al database 'template1'
Summary: Backup di NMDA Postgres non riuscito con "could not connect to database "template1": could not connect to server"
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
Il backup di NetWorker Module for Database Applications (NMD) Postgres non riesce con errore "could not connect to database "template1": could not connect to server"
Backup Error:
Backup Error:
The command '/usr/bin/nwbackup.sh' did not complete successfully. Exit code: 1. Error: + /usr/local/pgsql/bin/pg_dumpall --file=/nsr/apps/tmp/<random numbers>/<sql script> pg_dumpall: error: could not connect to database "template1": could not connect to server: No such file or directory
Cause
Le credenziali utente non sono state impostate correttamente nell'ambiente Postgres.
Resolution
Aggiornare lo script di backup NMDA per includere il nome utente, il nome del database e l'indirizzo IP del server Postgres.
Script originale:
#! /bin/sh ( set -x; /usr/local/pgsql/bin/pg_dumpall --file=$OAPP_MOUNT_DIR/<sql script>) rc=$?
Script rivisto:
#! /bin/sh ( set -x; /usr/local/pgsql/bin/pg_dump -U <user> <database name> -h <Postgres server IP> --file=$OAPP_MOUNT_DIR/gepdba.sql) rc=$?
Article Properties
Article Number: 000220603
Article Type: Solution
Last Modified: 29 Oct 2024
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.