General errors that occur during backup

General errors that occur during backup

Here are some general errors that occur during backup and how to fix them:

Error 1:

“Initializing backup process"
pg_dump: [archiver (db)] connection to database "amdb" failed: FATAL: no pg_hba
.conf entry for host "::1", user "postgres", database "amdb", SSL off
 "BackupDB failed"



Reason:
In pg_hba.conf file the entry for the host ::1 of ipv6 is commented

Solution:
  • Go to AppManager_Home/working/pgsql/data/amdb folder
  • Open pg_hba.conf file
  • At the end of the file, uncomment the following highlighted lines 

# IPv6 local connections:

host      all      all      ::1/128      md5



Error 2:
Connection exception occur in err.txt
 
Reason:
The connection to the database is not established. It may be due to port mismatch or because the port is already occupied.
 
Solution:
Check the port number in following files:
database_params.conf -> Location: AppManager_Home/working/conf/
AMServer.properties -> Location: AppManager_Home/conf
startPGSQL.bat/sh -> Location: AppManager_Home/working/bin
All the files should have the same port number.
Also, if it is already occupied by some other process, then change the port number in all the files as common, then run the script.
                  New to ADManager Plus?

                    New to ADSelfService Plus?