SHARE
TWEET

Untitled

a guest Aug 14th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2019-08-14T08:33:18.314679400Z mayan.apps.common.middleware.error_logging <47> [ERROR] "process_exception() line 18 Exception caught by request middleware; <WSGIRequest: POST '/api/workflows/'>, duplicate key value violates unique constraint "document_states_workflow_internal_name_2fd8e536_uniq"
  2. 2019-08-14T08:33:18.314708600Z DETAIL:  Key (internal_name)=() already exists.
  3. 2019-08-14T08:33:18.314714600Z "
  4. 2019-08-14T08:33:18.314719500Z Traceback (most recent call last):
  5. 2019-08-14T08:33:18.314724500Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
  6. 2019-08-14T08:33:18.314729900Z     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  7. 2019-08-14T08:33:18.314735000Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
  8. 2019-08-14T08:33:18.314758800Z     return view_func(*args, **kwargs)
  9. 2019-08-14T08:33:18.314765000Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
  10. 2019-08-14T08:33:18.314770100Z     return self.dispatch(request, *args, **kwargs)
  11. 2019-08-14T08:33:18.314786100Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/views.py", line 494, in dispatch
  12. 2019-08-14T08:33:18.314791700Z     response = self.handle_exception(exc)
  13. 2019-08-14T08:33:18.314796600Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/views.py", line 454, in handle_exception
  14. 2019-08-14T08:33:18.314801800Z     self.raise_uncaught_exception(exc)
  15. 2019-08-14T08:33:18.314806600Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/views.py", line 491, in dispatch
  16. 2019-08-14T08:33:18.314811700Z     response = handler(request, *args, **kwargs)
  17. 2019-08-14T08:33:18.314816600Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/generics.py", line 244, in post
  18. 2019-08-14T08:33:18.314821700Z     return self.create(request, *args, **kwargs)
  19. 2019-08-14T08:33:18.314844600Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/mixins.py", line 21, in create
  20. 2019-08-14T08:33:18.314849900Z     self.perform_create(serializer)
  21. 2019-08-14T08:33:18.314854800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/mixins.py", line 26, in perform_create
  22. 2019-08-14T08:33:18.314859900Z     serializer.save()
  23. 2019-08-14T08:33:18.314864800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/serializers.py", line 214, in save
  24. 2019-08-14T08:33:18.314869900Z     self.instance = self.create(validated_data)
  25. 2019-08-14T08:33:18.314874800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/document_states/serializers.py", line 286, in create
  26. 2019-08-14T08:33:18.314880000Z     validated_data
  27. 2019-08-14T08:33:18.314886100Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/serializers.py", line 917, in create
  28. 2019-08-14T08:33:18.314891300Z     instance = ModelClass.objects.create(**validated_data)
  29. 2019-08-14T08:33:18.314896200Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
  30. 2019-08-14T08:33:18.314901300Z     return getattr(self.get_queryset(), name)(*args, **kwargs)
  31. 2019-08-14T08:33:18.314924400Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/query.py", line 394, in create
  32. 2019-08-14T08:33:18.314930300Z     obj.save(force_insert=True, using=self.db)
  33. 2019-08-14T08:33:18.314935200Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/document_states/models.py", line 173, in save
  34. 2019-08-14T08:33:18.314940400Z     result = super(Workflow, self).save(*args, **kwargs)
  35. 2019-08-14T08:33:18.314945300Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/base.py", line 808, in save
  36. 2019-08-14T08:33:18.314950400Z     force_update=force_update, update_fields=update_fields)
  37. 2019-08-14T08:33:18.314955300Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/base.py", line 838, in save_base
  38. 2019-08-14T08:33:18.314960400Z     updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  39. 2019-08-14T08:33:18.314973800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/base.py", line 924, in _save_table
  40. 2019-08-14T08:33:18.314979300Z     result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  41. 2019-08-14T08:33:18.314984300Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/base.py", line 963, in _do_insert
  42. 2019-08-14T08:33:18.315005800Z     using=using, raw=raw)
  43. 2019-08-14T08:33:18.315011800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
  44. 2019-08-14T08:33:18.315016900Z     return getattr(self.get_queryset(), name)(*args, **kwargs)
  45. 2019-08-14T08:33:18.315022200Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/query.py", line 1079, in _insert
  46. 2019-08-14T08:33:18.315027500Z     return query.get_compiler(using=using).execute_sql(return_id)
  47. 2019-08-14T08:33:18.315032500Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1112, in execute_sql
  48. 2019-08-14T08:33:18.315037600Z     cursor.execute(sql, params)
  49. 2019-08-14T08:33:18.315042500Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
  50. 2019-08-14T08:33:18.315047600Z     return self.cursor.execute(sql, params)
  51. 2019-08-14T08:33:18.315169800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
  52. 2019-08-14T08:33:18.315222200Z     six.reraise(dj_exc_type, dj_exc_value, traceback)
  53. 2019-08-14T08:33:18.315229800Z   File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
  54. 2019-08-14T08:33:18.315234900Z     return self.cursor.execute(sql, params)
  55. 2019-08-14T08:33:18.315239800Z IntegrityError: duplicate key value violates unique constraint "document_states_workflow_internal_name_2fd8e536_uniq"
  56. 2019-08-14T08:33:18.315245100Z DETAIL:  Key (internal_name)=() already exists.
  57. 2019-08-14T08:33:18.315250000Z
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top