CAP services are not enabled in SDDC Manager
systemctl status cap-workflow-engine.service
INFO: http://127.0.0.1:15051/capengine/api/v1/workflows is not accessible, retry after 10 seconds
INFO: URL: http://127.0.0.1:15051/capengine/api/v1/workflows
ERROR: RC: , OUT: ERR: HTTPConnectionPool(host='127.0.0.1', port=15051): Max retries exceeded with url: /capengine/api/v1/workflows (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x######10>: Failed to establish a new connection: [Errno 111] Connection refused')) NoneType: None
INFO: http://127.0.0.1:15051/capengine/api/v1/workflows is not accessible, retry after 10 seconds
NFO: URL: http://127.0.0.1:15051/capengine/api/v1/workflows
ERROR: RC: , OUT: ERR: HTTPConnectionPool(host='127.0.0.1', port=15051): Max retries exceeded with url: /capengine/api/v1/workflows (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x######10>: Failed to establish a new connection: [Errno 111] Connection refused')) NoneType: None
NFO: http://127.0.0.1:15051/capengine/api/v1/workflows is not accessible, retry after 10 seconds
INFO: URL: http://127.0.0.1:15051/capengine/api/v1/workflows
ERROR: RC: , OUT: ERR: HTTPConnectionPool(host='127.0.0.1', port=15051): Max retries exceeded with url: /capengine/api/v1/workflows (Caused by NewConnectionError('<urllib3.connect with data OrderedDict([('upgradeId', 'f2e3####-####-####-####-########3631'), ('resourceId', ''), ('upgradeStatusCode', 'COMPLETED_WITH_FAILURE'), ('progress', 0), ('error', OrderedDict([('errorCode', 2), ('errorDescription', 'http://127.0.0.1:15051/capengine/api/v1/workflows is not accessible')])), ('startTime', 1724776678), ('endTime', 1724777010)])
yyy-mm-dd hh-mm-ss,154: ERROR:
Traceback (most recent call last):
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/cap_platform_setup.py.copy", line 362, in <module> cap_upgraded, cap_header = wrapper.upgrade_cap(CAP_PLATFORM_SETUP_LIBRARY_PATH)
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/../../wrapper.py", line 574, in upgrade_cap return self.is_cap_service_running(cap_header), cap_header
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/../../wrapper.py", line 319, in is_cap_service_running errmsg=error_message)
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/../../wrapper.py", line 187, in update_status raise Exception
Exception
INFO: URL: http://localhost/lcm/about
INFO: Updated /var/log/vmware/vcf/lcm/thirdparty/upgrades/17de####-####-####-####-########5564/vcf-platform/cap-platform-setup/cap_platform_setup.status status file with data OrderedDict([('upgradeId', 'f2e3####-####-####-####-########3631'), ('resourceId', '8fb9####-####-####-####-########fd26'), ('upgradeStatusCode', 'COMPLETED_WITH_FAILURE'), ('progress', 0), ('error', OrderedDict([('errorCode', 2), ('errorDescription', 'http://127.0.0.1:15051/capengine/api/v1/workflows is not accessible')])), ('startTime', 1724776678), ('endTime', 1724777010)])
ERROR: CAP services are not enabled in SDDC Manager
INFO:
INFO: RC: 1, OUT:
INFO: ERR: Traceback (most recent call last):
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/cap_platform_setup.py.copy", line 362, in <module> cap_upgraded, cap_header = wrapper.upgrade_cap(CAP_PLATFORM_SETUP_LIBRARY_PATH)
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/../../wrapper.py", line 574, in upgrade_cap return self.is_cap_service_running(cap_header), cap_header
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/../../wrapper.py", line 319, in is_cap_service_running errmsg=error_message)
File "/var/log/vmware/vcf/lcm/thirdparty/bundles/1836####-####-####-####-########72d9/thirdparty/cap-platform-setup/bin/../../wrapper.py", line 187, in update_status raise Exception
workflowconfig.go:286: Workflow JSON Object: &{Name:cap-update-revert ExecOrder:[snapshot-check lvm-revert revert-update-changes file-sync-service-setup] TaskExtensionPath: RebootRequired:false TaskList:[{Name:snapshot-check PluginPath:/usr/lib/vmware-capengine/coreplugins/snapshotcheck.so ScriptPath: ScriptArgs:[] IsResumable:false MaxRetryCount:3 ErrorHandlerName: IsReserved:true IsExtensionTask:false} {Name:lvm-revert PluginPath:/usr/lib/vmware-capengine/coreplugins/lvmrevert.so ScriptPath: ScriptArgs:[] IsResumable:false MaxRetryCount:3 ErrorHandlerName: IsReserved:true IsExtensionTask:false} {Name:revert-update-changes PluginPath:/usr/lib/vmware-capengine/coreplugins/revertupdate.so ScriptPath: ScriptArgs:[] IsResumable:false MaxRetryCount:3 ErrorHandlerName: IsReserved:true IsExtensionTask:false} {Name:file-sync-service-setup PluginPath:/usr/lib/vmware-capengine/coreplugins/root_file_sync.so ScriptPath: ScriptArgs:[] IsResumable:false MaxRetryCount:3 ErrorHandlerName: IsReserved:true IsExtensionTask:false}] ErrorHandlers:map[]}
database.go:464: Executing Query: [SELECT _id, workflowId, name, taskOrder, createdTime, lastModifiedTime, isTaskDeleted FROM ERROR_HANDLER WHERE workflowId = ?] with parameters [%!s(int=10)]
main.go:24: Invalid workflows found.
main.go:25: Failed to start Common Appliance Platform Workflow Engine
VMware Cloud Foundation 4.5.1
When the workflow is altered , the new binary path(s) is not consistent with path referred in altered workflow. Due to which, it would fail to start cap workflow engine.
rm -rf /storage/lifecycle/capengine/workflow.db
rpm -ql Vmware-capengine
rm -rf /usr/lib/vmware-capengine/
rm -rf /usr/lib/vmware-capupdate/
tdnf --disablerepo=* remove Vmware-capengine Vmware-capupdate
rm -rf /etc/vmware/cap/
rm -rf /usr/lib/vmware-capengine/
rpm -i Vmware-capengine-1.0.0.3-10001489.x86_64.rpm
rpm -i Vmware-capupdate-1.0.0.3-10001489.x86_64.rpm
systemctl start cap-workflow-engine.service
systemctl status cap-workflow-engine.service