SOS Support Bundle creation fails with the error "sqlite3.OperationalError: database is locked"root@sddc[ /home/vcf ]# /opt/vmware/sddc-support/sos --health-check --domain-name ALL --zipTraceback (most recent call last):File "./sos.py", line 933, in <module>File "./sos.py", line 99, in __init__File "utils/util.py", line 96, in __init__File "utils/cache.py", line 30, in __init__File "/opt/vmware/sddc-support/framework/../dependency/diskcache/core.py", line 478, in __init__self.reset(key, value, update=False)File "/opt/vmware/sddc-support/framework/../dependency/diskcache/core.py", line 2433, in reset((old_value,),) = sql(sqlite3.OperationalError: database is lockedException ignored in: <function SoS.__del__ at 0x7f4c8964b910>Traceback (most recent call last):File "./sos.py", line 881, in __del__AttributeError: 'SoS' object has no attribute 'progress_bar'
When the SDDC-Manager backup operation and the SoS log collection operations are performed simultaneously, SQLite only supports a single concurrent writer, a lock is placed on the database file during operations. If the sosrest service (the API layer for SOS) has a hung process, a stale task, or an ungraceful exit, it maintains an active lock on the database
su -
systemctl restart sosrest
systemctl status sosrest