cancel
Showing results for 
Search instead for 
Did you mean: 

Backup MongoDB Unable to retrieve the credentials for the server.

AngusChiu
Level 3

Hello all,

1)My NetBackup vesion: 8.2 Operating System : windows server 2019

2)client Operating System : SUSE12 MongoDB Version :version v4.0.18

 I want to backup mongoDB ,but I am facing an issue during backup db.

 I use the MongoDB configuration tool to configure mongodb.conf file(Attached files).

 When I make a backup, (6654) Unable to retrieve the credentials for the server appears.

How to solve this problem?

Thanks,

Angus

 

4 REPLIES 4

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

@AngusChiu 

Could you give us more info?
Which server are you using as backup host? (it cannot be your Windows master/media server because only RHEL or SUSE is supported). 
The manual mentions plug-in and 'required EEBs'. Have you installed EEBs on all components? 

There are actually lots of steps in the manual that you did not mention here.
Kindly tell us all the steps that you have followed?

Hi Marianne,

Step 1)Rununing the eebinstaller_3983324_2_AMD64.exe and eebinstaller_3988174_2_AMD64.exe EEB application on the Master and Media Server.

Step 2)  Using client suse as backup host,and I install MongoDB plug in on backup host.

Step 3)  Using MongoDB configuration tool using the tpconfig command line on the NetBackup master server.

Step 4) Whitelisting the configuration file path on NetBackup master server

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpsetconfig -h win198 bpsetconfig> bpsetconfig BPCD_WHITELIST_PATH = C:\Program Files\Veritas\NetBackup\var\global\

Step 5) Using NetBackup Command Line Interface (CLI) to create a BigData policy

C:\Program Files\Veritas\NetBackup\bin\admincmd>bppolicynew mgdb

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplinfo mgdb -modify -v -M win198 -pt BigData
<2>bpplinfo: INITIATING: version NetBackup 8.2 created: 2019070218
<2>bpplinfo: EXIT status = 0

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplinclude mgdb -add "Application_Type=mongodb"

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplinclude mgdb -add "Backup_Host=suse203"
the specified policy does not exist in the configuration database

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplinclude mgdb -add "Backup_Host=suse203"

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplinclude mgdb -add "ALL_DATABASES"

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplinfo mgdb -residence data -modify

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplclients mgdb -M "win198" -add "suse203" "Linux" "SuSE"

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpplsched mgdb -add full -cal 0 -rl 0 -st FULL -window 0 0

C:\Program Files\Veritas\NetBackup\bin>bpbackup -i -p mgdb -s Full -S win198 -t 44

 job (6654) Unable to retrieve the credentials for the server appears.

Thanks,

Angus

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Looking at the hostnames in your commands, it seems that you want to use the MongoDB host as Backup Host?

This is unfortunately not supported. 

See page 17 in the manual: 

Do not install the MongoDB plug-in on a server that also has the MongoDB
application. A server that has the MongoDB application cannot be used as a
backup host.

If we look on page 50 of the manual, it tells us how to config the policy in the GUI. 
Command line options on page 53. 
I do not see all requirements in your cli options? 
You can also see on p.53 that the client name in the policy must be the MongoDB_configserver, not the backup host. 

Please double-check all requirements in the manual and compare contents of the .conf file with examples and fields in the manual ? 

@Marianne 

I am sorry for the late reply.

May I ask you some questions?

I am trying to  test the MongoDB v3.6 backup in my LAB,but I am facing the same problem.

My mongodb environment is an arbiter and three mongodb, I regard arbitration as a backuphost

I have installed the required EEB on Mater/Media (bpbrm, nbjP.jar, tpconfig) and installed the client agent and MongoDB plugin on the arbiter.

When I make a backup, (6654) Unable to retrieve the credentials for the server appears.

I check the LOG in /usr/openv/netbackup/logs/nbaapidiscv/.

16:55:37.093 [3421.3421] <2> vnet_pbxConnect_ex: pbxConnectExEx Succeeded
16:55:37.174 [3421.3421] <2> logconnections: PROXY CONNECT FROM 10.8.22.247.43396 TO 10.8.22.198.1556 fd = 4
16:55:37.175 [3421.3421] <2> logconnections: BPRD CONNECT FROM 127.0.0.1.41899 TO 127.0.0.1.41484 fd = 4
16:55:37.197 [3421.3421] <16> get_app_server_cred: Couldn't find mongodb01-27017 - get_all_app_server_creds failed
16:55:37.197 [3421.3421] <16> run_command: get_app_server_cred failed with error code: 131
16:55:37.201 [3421.3421] <2> vnet_pbxConnect_ex: pbxConnectExEx Succeeded
16:55:37.283 [3421.3421] <2> logconnections: PROXY CONNECT FROM 10.8.22.247.35650 TO 10.8.22.198.1556 fd = 4
16:55:37.283 [3421.3421] <2> logconnections: BPRD CONNECT FROM 127.0.0.1.41899 TO 127.0.0.1.41486 fd = 4
16:55:37.301 [3421.3421] <16> get_app_server_cred: Couldn't find mongodb01-27017 - get_all_app_server_creds failed
16:55:37.301 [3421.3421] <16> run_command: get_app_server_cred failed with error code: 131

 

get_app_server_cred: Couldn't find mongodb01-27017-get_all_app_server_creds failed

Does this mean that the backuphost cannot be confirmed to communicate with the MongoDB_configserverr?

Thank you for the information