Failed to register VRMS - password authentication failed for user vrmsdb
search cancel

Failed to register VRMS - password authentication failed for user vrmsdb

book

Article ID: 312695

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:


ERROR
Operation Failed
A general system error occurred: Failed to register VRMS.
Operation ID: c2ddab96-c602-4003-aa01-23210e4133b3
4/6/23, 11:36:55 AM -0400


/var/log/vmware/dr/drconfig.log -

2023-04-06T15:36:37.765Z info drconfig[03266] [SRM@6876 sub=DrConfigConfigurationManager opID=2974680f-0ee5-46e3-9b52-e41a752145a8-isReconfigureRequired] ReadVrmsCurrentConfig: Reading VRMS Configuration.
2023-04-06T15:36:37.765Z verbose drconfig[03266] [SRM@6876 sub=Default opID=2974680f-0ee5-46e3-9b52-e41a752145a8-isReconfigureRequired] Loading configuration /opt/vmware/hms/conf/hms-configuration.xml
2023-04-06T15:36:55.392Z error drconfig[03265] [SRM@6876 sub=ConfigureVrmsOp opID=1ed45751-26b5-425c-9bbe-c9396d6dd3d5-configure:b637] command:
--> /usr/bin/python /opt/vmware/share/htdocs/service/hms/cgi/hms-dr.py --cmd saveembeddedconf --ls https://vcenter.production.net:443/lookupservice/sdk --lsthumbprint 88:36:EA:19:50:25:B6:A8:2C:51:8C:23:58:23:96:DA:3E:2A:33:5A:79:3A:DF:65:D9:D5:84:42:8B:5F:83:C9 --ssoadmin [email protected] --vcip vcenter.production.net --vcport 80 --vcthumbprint 88:36:EA:19:50:25:B6:A8:2C:51:8C:23:58:23:96:DA:3E:2A:33:5A:79:3A:DF:65:D9:D5:84:42:8B:5F:83:C9 --servername vcenter --hmshost vcenter.production.com --hmsport 8043 --self-moid vm-4005 --adminmail [email protected] --secmail [email protected] --strict-certs 1
--> stdout:
--> {"error": "Bad exit code: 1"}
-->
--> stderr:
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> psql.bin: FATAL: password authentication failed for user "vrmsdb"
--> Failed to start 'hms-vpostgres' service after 60 attempts! Aborting...
-->
--> Error: value not found
-->
--> Traceback (most recent call last):
-->  File "/opt/vmware/share/htdocs/service/hms/cgi/hms-dr.py", line 55, in main
-->   cmd.validate()
-->  File "/opt/vmware/share/htdocs/service/hms/cgi/commands.py", line 706, in validate
-->   embdb.check_schema()
-->  File "/opt/vmware/share/htdocs/service/hms/cgi/embdb.py", line 76, in check_schema
-->   commands.execute([__TOOL__, '--check', '-y'])
-->  File "/opt/vmware/share/htdocs/service/hms/cgi/commands.py", line 325, in execute
-->   raise Exception('Bad exit code: %d' % proc.returncode)
--> Exception: Bad exit code: 1
-->
2023-04-06T15:36:55.392Z info drconfig[03265] [SRM@6876 sub=ConfigureVrmsOp opID=1ed45751-26b5-425c-9bbe-c9396d6dd3d5-configure:b637] Exiting ConfigureVrms
2023-04-06T15:36:55.392Z error drconfig[03265] [SRM@6876 sub=ConfigureVrmsOp opID=1ed45751-26b5-425c-9bbe-c9396d6dd3d5-configure:b637] Operation failed
--> (vmodl.fault.SystemError) {
-->  faultCause = (vmodl.MethodFault) null,
-->  faultMessage = <unset>,
-->  reason = "Failed to register VRMS."
-->  msg = ""
--> }
--> [context]zKq7AVECAAQAAFE5JgEMZHJjb25maWcAAE3cHGxpYnZtYWNvcmUuc28AAWa+DGRyLWNvbmZpZ3VyYXRvcgABvDsFASMGEAFFBxAByLQPAe1cDAAdaTEAcoUxAF65QgKHfwBsaWJwdGhyZWFkLnNvLjAAA+81D2xpYmMuc28uNgA=[/context]
--> [backtrace begin] product: VMware vCenter Site Recovery Manager, version: 8.5.0, build: build-19282257, tag: drconfig, cpu: x86_64, os: linux, buildType: release
--> backtrace[03] libvmacore.so[0x001CDC4D]
--> backtrace[04] dr-configurator[0x000CBE66]
--> backtrace[05] dr-configurator[0x00053BBC]
--> backtrace[06] dr-configurator[0x00100623]
--> backtrace[07] dr-configurator[0x00100745]
--> backtrace[08] dr-configurator[0x000FB4C8]
--> backtrace[09] dr-configurator[0x000C5CED]
--> backtrace[10] libvmacore.so[0x0031691D]
--> backtrace[11] libvmacore.so[0x00318572]
--> backtrace[12] libvmacore.so[0x0042B95E]
--> backtrace[13] libpthread.so.0[0x00007F87]
--> backtrace[14] libc.so.6[0x000F35EF]
--> [backtrace end]

2023-04-06T15:36:55.393Z info drconfig[03265] [SRM@6876 sub=ConfigureVrmsOp opID=1ed45751-26b5-425c-9bbe-c9396d6dd3d5-configure:b637] Exiting Start
2023-04-06T15:36:55.393Z verbose drconfig[03266] [SRM@6876 sub=DrConfigConfigurationManager ctxID=e39894ce opID=1ed45751-26b5-425c-9bbe-c9396d6dd3d5-configure:b637] OnError: Configuration task failed
--> (vmodl.fault.SystemError) {
-->  faultCause = (vmodl.MethodFault) null,
-->  faultMessage = <unset>,
-->  reason = "Failed to register VRMS."
-->  msg = ""
--> }


Environment

VMware vSphere Replication 8.x

Cause


EMB_DB_PASSWORD shows 'unused' instead of a valid password. 

EMB_DB_INSTALL_DIR='/opt/vmware/vpostgres/current'
#EMB_DB_TYPE='PostgreSQL'#EMB_DB_SERVER='127.0.0.1'
#EMB_DB_PORT='5432'
EMB_DB_INSTANCE='vrmsdb'
EMB_DB_USER='vrmsdb'
EMB_DB_PASSWORD='unused'
EMB_DB_STORAGE='/var/lib/vrmsdb'
EMB_DB_MAX_CONNECTIONS='150'

Resolution


Redeploy vSphere Replication appliance