File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 734, in **protected_call**
return self.run(*args, **kwargs)
File "/doccano/backend/data_import/celery_tasks.py", line 63, in import_dataset
dataset.save(user, batch_size=settings.IMPORT_BATCH_SIZE)
File "/doccano/backend/data_import/datasets.py", line 89, in save
examples.save()
File "/doccano/backend/data_import/pipeline/examples.py", line 20, in save
examples = Example.objects.bulk_create(self.examples)
File "/doccano/backend/examples/managers.py", line 6, in bulk_create
super().bulk_create(objs, batch_size=batch_size, ignore_conflicts=ignore_conflicts)
File "/usr/local/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 579, in bulk_create
returned_columns = self._batched_insert(
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1467, in _batched_insert
self._insert(
File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1434, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1621, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 91, in **exit**
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.8/site-packages/django/db/backends
3条答案
按热度按时间zmeyuzjn1#
你会写你的环境吗?谢谢!
bkhjykvo2#
AWS
koaltpgm3#
完整的错误信息如下: