On the SDDC Manager UI, the tasks panel shows many tasks (e.g. SDDC-Manager Backup tasks or/and adding ESXi host in cluster, etc ) as "Fetching task info...".
A similar error is observed in the /var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log file in SDDC appliance:
mm dd Hr:min:sec ERROR [common,#################,####] [c.v.e.s.t.services.TaskCollector,http-nio-127.0.0.1-7100-exec-212] collect() failedorg.springframework.web.client.HttpClientErrorException$BadRequest: 400 : "{"errorCode":"GET_BACKUP_FAILED_INVALID_ID","arguments":[],"message":"Failed to retrieve backup workflow, invalid id","referenceToken":"#####"}"
The cause of this issue could be the file /opt/vmware/vcf/sddc-support/status.json is corrupted, deleted, or modified.
Note: Before proceeding, ensure to take a backup/ snapshot of the SDDC Manager appliance.
Follow the below mentioned steps to verify that the pending tasks are of SDDC Manager Backup:
Example: Run "curl http://localhost/operationsmanager/backups/tasks/#######-####-####-####-########". It should fail with the error code "GET_BACKUP_FAILED_INVALID_ID".
To workaround the issue, delete all SDDC Manager Backup tasks in the task_metadata, so that the Tasks panel does not pull these tasks details.
Note: As the SDDCMANAGER_BACKUP tasks will be deleted from the task registry, there will be no SDDCMANAGER_BACKUP tasks that are executed till now in the task panel.
systemctl restart commonsvcs