This repository was archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on Nov 7, 2022. It is now read-only.
django.db.utils.OperationalError: database is locked #13
Copy link
Copy link
Open
Description
Traceback (most recent call last):
File "/Users/bashu/Projects/django-fineuploader/fineuploader/backends.py", line 108, in upload_complete
a.save()
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/base.py", line 718, in save
force_update=force_update, update_fields=update_fields)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/base.py", line 748, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/base.py", line 809, in _save_table
for f in non_pks]
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/base.py", line 809, in <listcomp>
for f in non_pks]
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/positions/fields.py", line 87, in pre_save
self.remove_from_collection(previous_instance)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/positions/fields.py", line 200, in remove_from_collection
queryset.filter(**{'%s__gt' % self.name: current}).update(**updates)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/query.py", line 693, in update
rows = query.get_compiler(self.db).execute_sql(CURSOR)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1383, in execute_sql
cursor = super().execute_sql(result_type)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1065, in execute_sql
cursor.execute(sql, params)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
return super().execute(sql, params)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "/Users/bashu/.virtualenvs/django-fineuploader/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 298, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: database is lockedMetadata
Metadata
Assignees
Labels
No labels