Hi,
Sometimes our artists report this database error. Seems to be quite random. Most of the time it's not locked but sometimes it is. Maybe it makes sense to implement some try-fail-retry mechanism when modifying the cache?
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\apps\app_store\tk-nuke-writenode\v0.1.10\python\tk_nuke_writenode\handler.py", line 384, in on_compute_path_gizmo_callback
render_path = self.compute_path(node, True)
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\apps\app_store\tk-nuke-writenode\v0.1.10\python\tk_nuke_writenode\handler.py", line 357, in compute_path
fields.update(self._app.context.as_template_fields(template))
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\core\python\tank\context.py", line 394, in as_template_fields
if self.entity and len(self.entity_locations) == 0:
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\core\python\tank\context.py", line 248, in entity_locations
paths = self.__tk.paths_from_entity(self.entity["type"], self.entity["id"])
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\core\python\tank\api.py", line 371, in paths_from_entity
path_cache = PathCache(self.pipeline_configuration)
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\core\python\tank\path_cache.py", line 37, in init
self._init_db(db_path)
File "\\fsrv-stgt-01\tools\STANDALONE\Shotgun\toolkit\studio\install\core\python\tank\path_cache.py", line 78, in _init_db
""")
sqlite3.OperationalError: database is locked
Best Regards,
Henry