NMDA:Postgresバックアップに失敗し、データベース「template1」に接続できませんでした

Summary: NMDA Postgresバックアップが「データベース「template1」に接続できませんでした:サーバーに接続できませんでした」で失敗しました

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

NMDA(NetWorker Module for Database Applications)のPostgresバックアップが「could not connect to database」で失敗する "template1": could not connect to server"

バックアップ エラー: 

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

ユーザー資格情報がPostgres環境で正しく設定されませんでした。

Resolution

NMDAバックアップ スクリプトを更新して、ユーザー名、データベース名、PostgresサーバーのIPアドレスを含めます

オリジナルスクリプト:

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


改訂されたスクリプト:

#! /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ță.