VCSA without FQDN failed to restore from backup
search cancel

VCSA without FQDN failed to restore from backup

book

Article ID: 312478

calendar_today

Updated On: 03-27-2025

Products

VMware vCenter Server

Issue/Introduction

 

  • On VCSA, no FQDN is configured, hostname is localhost
  • When restore failed, in applmgmt.log:

[YYYY-MM-DDTHH:MM:SS] [49703]DEBUG:vmware.appliance.update.update_state:In State._get using state file /etc/applmgmt/appliance/software_update_state.conf
[YYYY-MM-DDTHH:MM:SS] [49703]DEBUG:vmware.vapi.bindings.skeleton:Setting execution ctx for the new thread
[YYYY-MM-DDTHH:MM:SS] [49703]INFO:vmware.vapi.lib.thread_pool:Thread-3 caught exception: <class 'com.vmware.vapi.std.errors_provider.NotAllowedInCurrentState'>
[YYYY-MM-DDTHH:MM:SS] [49703]INFO:vmware.vapi.lib.thread_pool:Traceback (most recent call last):
   File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/lib/thread_pool.py", line 148, in _worker
    *work_item.args, **work_item.kwargs)
   File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 302, in _invoke_method
    result = method(**method_args)
   File "/usr/lib/applmgmt/supportbundle/py/vmware/appliance/supportbundle/vapi_supportbundle_impl.py", line 134, in create
    vapiNotAllowedInCurrentState(TASK_RUNNING_ERROR)
   File "/usr/lib/applmgmt/base/py/vmware/vherd/base/vapi_errors.py", line 66, in vapiNotAllowedInCurrentState
    raise ErrorFactory.new_not_allowed_in_current_state(messages=messages)
 com.vmware.vapi.std.errors_provider.NotAllowedInCurrentState: {messages : [{'id': 'com.vmware.appliance.supportbundle.task_running', 'default_message': 'Another support bundle generation task is already in progress.', 'args': []}], data : None, error_type : NOT_ALLOWED_IN_CURRENT_STATE}

  • Login VCSA VAMI page, there is one button of "Setup vCenter Server"

Resolution

Procedure below can be applied to recover VCSA:

  • Login VCSA with command line
  • Modify /etc/hosts file with content below:

# Begin /etc/hosts (network card version)

127.0.0.1   localhost.localdomain
127.0.0.1   localhost
<VCSA IP>   localhost
<VCSA IP>   vsphere.local
# End /etc/hosts (network card version)

  • Reboot VCSA
  • Login VCSA port 5480 VAMI page, click "Setup vCenter Server" button and input SSO username and password, after 10 - 20 mins, configuration completes then both VAMI page and VCSA services recovered.