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 백업이 실패하고 "데이터베이스에 연결할 수 없음 "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
사용자 이름, 데이터베이스 이름 및 Postgres 서버 IP 주소를 포함하도록 NMDA 백업 스크립트를 업데이트합니다.
원본 스크립트:
#! /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ță.