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
適用於資料庫應用程式的 NetWorker 模組 (NMDA) Postgres 備份失敗,並顯示「無法連線至資料庫」 "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ță.