acd_cli icon indicating copy to clipboard operation
acd_cli copied to clipboard

sqlite3.OperationalError: database is locked

Open gebn opened this issue 9 years ago • 0 comments

I've seen the following error several times about 30 minutes into a large upload:

16-09-21 18:48:40.497 [ERROR] [acd_cli] - Traceback (most recent call last):0s
  File "/.../bin/acd_cli.py", line 246, in wrapped
  t_val = f(*args, **kwargs)
  File "/.../bin/acd_cli.py", line 510, in upload_file
  turn upload_complete(r, path, hasher.get_result(), local_size, rsf)
  File "/.../bin/acd_cli.py", line  Fi, in upload_complete
    cache.insert_node(node)
  File "/.../lib/python3.5/site-packages/acdcli/cache/sync.py", line 80, in insert_node
                                         self.insert_nodes([node])
  File "/.../lib/python3.5/site-packages/acdcli/cache/sync.py", line 72, in insert_nodes
                                         self.insert_files(files)
  File "/.../lib/python3.5/site-packages/acdcli/cache/sync.py", line 117, in insert_files
                                         f['status']
sqlite3.OperationalError: database is locked

I can confirm nothing is messing around with the database behind acd_cli's back, and even if it was, the failure should probably be made more graceful.

Python 3.5.2 acd_cli 0.3.2

gebn avatar Sep 24 '16 16:09 gebn