"An error occurred while starting service 'updatemgr'" in vCenter server 8.x
search cancel

"An error occurred while starting service 'updatemgr'" in vCenter server 8.x

book

Article ID: 315459

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 8.0

Issue/Introduction

Update manager service fails to start in 8.x

Environment

VMware vCenter Server 8.x

Cause

/var/log/vmware/vmon/vmon.log:

YY-MM-DDT01:00:17.723Z In(05) host-9991 Received start request for updatemgr
YY-MM-DDT01:00:17.724Z In(05) host-9991 <updatemgr-prestart> Constructed command: /usr/bin/python /usr/lib/vmware-updatemgr-root/sbin/updatemgr-vmon-prestart.py
YY-MM-DDThh:mm:ss.535Z Wa(03) host-9991 <updatemgr> Service pre-start command's stderr: Failure to create vumuser role| error : YY-MM-DD hh:mm:ss,429 DEBUG : Initializing cache
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991 YY-MM-DD hh:mm:ss,430 DEBUG : Cache found in /var/cache/vsr/dbms/vpg_sync_registry_cache.json, loading
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991 YY-MM-DD hh:mm:ss,518 DEBUG : Shutting down the pool...
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991 Traceback (most recent call last):
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/vpg_sync_registry.py", line 292, in <module>
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     main()
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/vpg_sync_registry.py", line 284, in main
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     app.run()
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/__init__.py", line 582, in run
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     raise e
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/__init__.py", line 547, in run
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     (queries, auth_files) = registry.sync()
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/registry.py", line 225, in sync
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     self.__yaml_builtin_roles)
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/database.py", line 242, in sync_all_databases
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     yaml_builtin_roles)
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991   File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/namespace.py", line 261, in sync_db_namespaces
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991     raise Error("Schemas not found on db %s: %s" % (dbname, missing))
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991 lib.exception.Error: Schemas not found on db VCDB: vumdbc
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991
YY-MM-DDThh:mm:ss.535Z Wa(03)+ host-9991
YY-MM-DDThh:mm:ss.536Z Wa(03) host-9991 <updatemgr> Service pre-start command's stderr: Traceback (most recent call last):
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991   File "/usr/lib/vmware-updatemgr-root/sbin/updatemgr-vmon-prestart.py", line 91, in <module>
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991     sys.exit(main())
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991   File "/usr/lib/vmware-updatemgr-root/sbin/updatemgr-vmon-prestart.py", line 77, in main
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991     createVcdbRoleAndGrantPermission()
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991   File "/usr/lib/vmware-updatemgr-root/sbin/prestartUtils.py", line 328, in createVcdbRoleAndGrantPermission
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991     execute_cmd(cmd, "Failure to create vumuser role")
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991   File "/usr/lib/vmware-updatemgr/bin/vumUtils.py", line 821, in execute_cmd
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991     raise LoggedException(errmsg)
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991 vumUtils.LoggedException: Failure to create vumuser role
YY-MM-DDThh:mm:ss.536Z Wa(03)+ host-9991
YY-MM-DDThh:mm:ss.592Z Er(02) host-9991 <updatemgr> Service pre-start command failed with exit code 1.

 

/var/log/vmware/vmware-updatemgr/updatemgr-vmon-prestart.log :

YY-MM-DD hh:mm:ss,490 DEBUG : Getting connection on database VCDB
YY-MM-DD hh:mm:ss,491 DEBUG : Found connection in pool
YY-MM-DD hh:mm:ss,492 DEBUG : db hba_file: /storage/db/vpostgres/pg_hba.conf
YY-MM-DD hh:mm:ss,492 DEBUG : db ident_file: /storage/db/vpostgres/pg_ident.conf
YY-MM-DD hh:mm:ss,492 DEBUG : Getting connection on database VCDB
YY-MM-DD hh:mm:ss,493 DEBUG : Found connection in pool
YY-MM-DD hh:mm:ss,493 DEBUG : Handle ownership in yaml
YY-MM-DD hh:mm:ss,493 DEBUG : Getting connection on database VCDB
YY-MM-DD hh:mm:ss,493 DEBUG : Found connection in pool
YY-MM-DD hh:mm:ss,515 DEBUG : Getting connection on database VCDB
YY-MM-DD hh:mm:ss,515 DEBUG : Found connection in pool
YY-MM-DD hh:mm:ss,517 DEBUG : Getting connection on database VCDB
YY-MM-DD hh:mm:ss,517 DEBUG : Found connection in pool
YY-MM-DD hh:mm:ss,518 ERROR : during Generation of the diff: Schemas not found on db VCDB: vumdbc
YY-MM-DD hh:mm:ss,518 DEBUG : Shutting down the pool...
Traceback (most recent call last):
  File "/usr/lib/vmware/site-packages/vsr/db_tool/vpg_sync_registry.py", line 292, in <module>
    main()
  File "/usr/lib/vmware/site-packages/vsr/db_tool/vpg_sync_registry.py", line 284, in main
    app.run()
  File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/__init__.py", line 582, in run
    raise e
  File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/__init__.py", line 547, in run
    (queries, auth_files) = registry.sync()
  File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/registry.py", line 225, in sync
    self.__yaml_builtin_roles)
  File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/database.py", line 242, in sync_all_databases
    yaml_builtin_roles)
  File "/usr/lib/vmware/site-packages/vsr/db_tool/lib/namespace.py", line 261, in sync_db_namespaces
    raise Error("Schemas not found on db %s: %s" % (dbname, missing))
lib.exception.Error: Schemas not found on db VCDB: vumdbc

 

  • This usually happens when the vumdbc schema is missing from the database

 

Resolution

Please contact Broadcom Technical support and open a support request referencing this KB.