NMDA: Postgres-Backup fehlgeschlagen, es konnte keine Verbindung zur Datenbank "template1" hergestellt werden

Summary: NMDA-Postgres-Backup mit "keine Verbindung zur Datenbank "template1" konnte nicht hergestellt werden: Verbindung zum Server konnte nicht hergestellt werden

Acest articol se aplică pentru Acest articol nu se aplică pentru Acest articol nu este legat de un produs specific. Acest articol nu acoperă toate versiunile de produs existente.

Symptoms

NetWorker Module for Database Applications (NMDA) Postgres-Backup schlägt fehl mit "Verbindung zur Datenbank konnte nicht hergestellt werden" "template1": could not connect to server"

Backupfehler: 

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

Die Nutzerzugangsdaten wurden in der Postgres-Umgebung nicht korrekt festgelegt.

Resolution

Aktualisieren Sie das NMDA-Backupskript so, dass es den Nutzernamen, den Datenbanknamen und die IP-Adresse des Postgres-Servers enthält.

Ursprüngliches Skript:

#! /bin/sh
( set -x; /usr/local/pgsql/bin/pg_dumpall --file=$OAPP_MOUNT_DIR/<sql script>)
rc=$?


Überarbeitetes Skript:

#! /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=$?
Proprietăți articol
Article Number: 000220603
Article Type: Solution
Ultima modificare: 13 mar. 2026
Version:  2
Găsiți răspunsuri la întrebările dvs. de la alți utilizatori Dell
Servicii de asistență
Verificați dacă dispozitivul dvs. este acoperit de serviciile de asistență.