Upon instantiating a DAO, Drive checks if the db file is healthy or if it can be fixed. If not, it tries to restore a backup.
The method that restores the backup tries to get the lock of the DAO to prevent accesses to the db while writing. However, the lock doesn't exist yet, so an exception is thrown here.
AttributeError: 'ManagerDAO' object has no attribute '_lock' File "nxdrive/engine/dao/sqlite.py", line 180, in restore_backup DatabaseError: file is not a database File "nxdrive/engine/dao/sqlite.py", line 146, in __init__ File "nxdrive/engine/dao/utils.py", line 66, in fix_db File "nxdrive/engine/dao/utils.py", line 22, in is_healthy
- is caused by
-
NXDRIVE-1484 Backup manager and engine databases
- Resolved