A similar error is observed when checking the status of the sosrest service.
systemctl status sosrest.service -l
mm dd Hr:min:sec sosrest[1861]: During handling of the above exception, another exception occurred:
mm dd Hr:min:sec sosrest[1861]: Traceback (most recent call last):
mm dd Hr:min:sec sosrest[1861]: File "framework/workflowhandler.py", line 154, in get_workflow_status
mm dd Hr:min:sec sosrest[1861]: File "framework/dbinterface/db_api.py", line 415, in db_to_json
mm dd Hr:min:sec sosrest[1861]: framework.dbinterface.db_api.DBException: Converting from db to json failed
mm dd Hr:min:sec sosrest[1861]: During handling of the above exception, another exception occurred:
mm dd Hr:min:sec sosrest[1861]: Traceback (most recent call last):
mm dd Hr:min:sec sosrest[1861]: File "sosapi/controllers/statusapi2.py", line 72, in sos_status
mm dd Hr:min:sec sosrest[1861]: File "framework/workflowhandler.py", line 166, in get_workflow_status
mm dd Hr:min:sec sosrest[1861]: AssertionError: Convert from db to json failed
A similar error is observed in the vcf-sos.log
/var/log/vmware/vcf/sddc-support/vcf-sos.log:
mm dd Hr:min:sec
ERROR [vcf_sos] [db_api.py::return_a_session::70::MainThread] DB commit failedmm dd Hr:min:sec
INFO [vcf_sos] [db_api.py::return_a_session::73::MainThread] Closing sessionmm dd Hr:min:sec
ERROR [vcf_sos] [db_api.py::db_to_json::413::MainThread] Converting to JSON from db failedmm dd Hr:min:sec
ERROR [vcf_sos] [db_api.py::db_to_json::414::MainThread] Traceback (most recent call last): File "/opt/vmware/sddc-support/services/../framework/../dependency/sqlalchemy/engine/base.py", line 1968, in _exec_single_context
self.dialect.do_execute(
File "/opt/vmware/sddc-support/services/../framework/../dependency/sqlalchemy/engine/default.py", line 920, in do_execute
cursor.execute(statement, parameters)
sqlite3.DatabaseError: database disk image is malformed
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
One of the required files for the sosrest service is out of sync.
Potential causes:
This requires changes in SDDC manager database. Please raise a Support Case with Broadcom to receive further assistance.
Note: Snapshot of SDDC Manager is required before implying changes.