Hello, first I would like to say thank you for the work done with mayan, however I encountered a problem that I cannot resolve, in I installed mayan with portnainer, version 4.5.9 and in this version of mayan when I upload a document, I cannot view the document and in logs I get the error: RuntimeError: can’t start new thread. I don’t know if anyone can please help me with this problem.
I am attaching my mayan logs for more understanding
File "/usr/lib/python3.11/threading.py", line 957, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
[2024-03-06 14:00:12,529: ERROR/ForkPoolWorker-9] Error creating new document file for document "MON_CV.pdf"; can't start new thread
Traceback (most recent call last):
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/document_file_model_mixins.py", line 96, in _create
result = self._save(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/events/decorators.py", line 22, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/document_file_models.py", line 133, in _save
DocumentFile._execute_hooks(
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/model_mixins.py", line 10, in _execute_hooks
result = hook(**kwargs)
^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/document_signatures/hooks.py", line 9, in hook_create_embedded_signature
EmbeddedSignature.objects.create(document_file=instance)
File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/query.py", line 453, in create
obj.save(force_insert=True, using=self.db)
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/document_signatures/models.py", line 164, in save
verify_result = Key.objects.verify_file(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/django_gpg/managers.py", line 127, in verify_file
verify_result = GPGBackend.get_instance().verify_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/django_gpg/backends/python_gnupg.py", line 134, in verify_file
return self.gpg_command(
^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/django_gpg/backends/python_gnupg.py", line 89, in gpg_command
gpg = gnupg.GPG(
^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/gnupg.py", line 887, in __init__
self._collect_output(p, result, stdin=p.stdin)
File "/opt/mayan-edms/lib/python3.11/site-packages/gnupg.py", line 1026, in _collect_output
rr.start()
File "/usr/lib/python3.11/threading.py", line 957, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
mayan.apps.documents.tasks.document_file_tasks <132> [CRITICAL] "task_document_file_create() line 121 Unexpected exception when uploading new file for document: MON_CV.pdf; can't start new thread."
[2024-03-06 14:00:12,533: CRITICAL/ForkPoolWorker-9] Unexpected exception when uploading new file for document: MON_CV.pdf; can't start new thread.
[2024-03-06 14:00:12,606: ERROR/ForkPoolWorker-9] Task mayan.apps.documents.tasks.document_file_tasks.task_document_file_create[c34e5ece-3bec-4f8c-9809-1d21f43d8885] raised unexpected: RuntimeError("can't start new thread")
Traceback (most recent call last):
File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/tasks/document_file_tasks.py", line 113, in task_document_file_create
document_file.save(skip_introspection=True)
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/document_file_models.py", line 201, in save
result = self._create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/events/decorators.py", line 22, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/document_file_model_mixins.py", line 96, in _create
result = self._save(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/events/decorators.py", line 22, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/document_file_models.py", line 133, in _save
DocumentFile._execute_hooks(
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/documents/models/model_mixins.py", line 10, in _execute_hooks
result = hook(**kwargs)
^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/document_signatures/hooks.py", line 9, in hook_create_embedded_signature
EmbeddedSignature.objects.create(document_file=instance)
File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/django/db/models/query.py", line 453, in create
obj.save(force_insert=True, using=self.db)
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/document_signatures/models.py", line 164, in save
verify_result = Key.objects.verify_file(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/django_gpg/managers.py", line 127, in verify_file
verify_result = GPGBackend.get_instance().verify_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/django_gpg/backends/python_gnupg.py", line 134, in verify_file
return self.gpg_command(
^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/django_gpg/backends/python_gnupg.py", line 89, in gpg_command
gpg = gnupg.GPG(
^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/gnupg.py", line 887, in __init__
self._collect_output(p, result, stdin=p.stdin)
File "/opt/mayan-edms/lib/python3.11/site-packages/gnupg.py", line 1026, in _collect_output
rr.start()
File "/usr/lib/python3.11/threading.py", line 957, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
[2024-03-06 14:00:48 +0000] [202] [INFO] Autorestarting worker after current request.
[2024-03-06 14:00:48 +0000] [202] [INFO] Worker exiting (pid: 202)
[2024-03-06 14:00:51 +0000] [265] [INFO] Booting worker with pid: 265