NMDA: Postgres 백업 실패: 데이터베이스 'template1'에 연결할 수 없습니다.
Summary: NMDA Postgres 백업이 실패하고 "데이터베이스 "template1"에 연결할 수 없음: 서버에 연결할 수 없음"이 표시됩니다.
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
NMD(NetWorker Module for Database Applications) Postgres 백업이 실패하고 ""데이터베이스 "template1"에 연결할 수 없음: 서버에 연결할 수 없음"
백업 오류:
백업 오류:
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=$?
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.