Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3.OperationalError: database is locked #423

Open
gebn opened this issue Sep 24, 2016 · 0 comments
Open

sqlite3.OperationalError: database is locked #423

gebn opened this issue Sep 24, 2016 · 0 comments

Comments

@gebn
Copy link

gebn commented Sep 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant