Thank you Roberto! Indeed, there were some formatting problems in the supervisor config. With those fixes and a couple other tweaks, now I've got the system stood up.
I am able to perform most operations and can upload documents, but the OCR and thumbnail/page preview jobs seem to be failing. In the logs (and in the OCR Errors view) I see a lot of mentions of 'NoneType' object has no attribute 'mode'
but am having a hard time tracking down the culprit. Perhaps I have the wrong version of a dependency or another incomplete configuration?
Here's an excerpt from the mayan-worker-fast stderr log:
Code: Select all
[2018-09-24 13:06:22,498: ERROR/Worker-1] Error creating page cache file "page-cache-1f938865-660c-4e5b-816c-e85318447dc9-71-43"; 'NoneType' object has no attribute 'mode'
[2018-09-24 13:06:22,500: ERROR/MainProcess] Task documents.tasks.task_generate_document_page_image[e373751a-0c89-46a7-9d2a-b1bb3e228d86] raised unexpected: AttributeError("'NoneType' object has no attribute 'mode'",)
Traceback (most recent call last):
File "/opt/mayan-edms/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/mayan-edms/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/mayan-edms/lib/python2.7/site-packages/mayan/apps/documents/tasks.py", line 86, in task_generate_document_page_image
return document_page.generate_image(*args, **kwargs)
File "/opt/mayan-edms/lib/python2.7/site-packages/mayan/apps/documents/models.py", line 843, in generate_image
image = self.get_image(transformations=transformation_list)
File "/opt/mayan-edms/lib/python2.7/site-packages/mayan/apps/documents/models.py", line 949, in get_image
page_image = converter.get_page()
File "/opt/mayan-edms/lib/python2.7/site-packages/mayan/apps/converter/classes.py", line 193, in get_page
new_mode = self.image.mode
AttributeError: 'NoneType' object has no attribute 'mode'
I'll be happy to feedback about my experience on FreeBSD and I was thinking I could write a guide for FreeBSD/FreeNAS jail installation and setup once everything's good to go. So far so good, the interface is very snappy and assuming I can get all the features working I think FreeNAS is a great place for a Mayan EDMS installation to live.
Thanks, Roberto, for being so helpful to a noob!