Hi Roberto,
this looks like the error to me (in worker-medium-stderr.log):
kosenuc:~# docker exec -it mayan-edms /bin/bash -c "cat
/var/log/mayan/worker-medium-stderr.log"
/usr/local/lib/python2.7/dist-packages/celery/platforms.py:812:
RuntimeWarning: You are running the worker with
superuse r
privileges, which is
absolutely not recommended!
Please specify a different user using the -u option.
User information: uid=0 euid=0 gid=0 egid=0
uid=uid, euid=euid, gid=gid, egid=egid,
documents.models <5276> [ERROR] "save() Error creating new document version
for document "Betriebsrente.pdf"; Expected
o bject ID (14 0)
does not match actual (13 0); xref table not zero-indexed."
[2017-07-02 16:24:54,309: ERROR/Worker-1] Error creating new document
version for document "Betriebsrente.pdf";
Expected object ID
(14 0) does not match actual (13 0); xref table not zero-indexed.
sources.models <5276> [CRITICAL] "upload_document() Unexpected exception
while trying to create new document
"Betriebsre nte.pdf"
from source "Default"; Expected object ID (14 0) does not match actual (13
0); xref table not zero-indexed."
[2017-07-02 16:24:54,310: CRITICAL/Worker-1] Unexpected exception while
trying to create new document
"Betriebsrente.pdf "
from source "Default"; Expected object ID (14 0) does not match actual (13
0); xref table not zero-indexed.
[2017-07-02 16:24:54,322: ERROR/MainProcess] Task
sources.tasks.task_upload_document[3116acd6-6c8e-418f-b08f-ee2cb2e8e05
b] raised unexpected: PdfReadError('Expected object ID (14 0) does not
match actual (13 0); xref table not
zero-indexed. ',)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line
240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line
438, in __protected_call__
return self.run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/sources/tasks.py", line
68, in task_upload_document
tag_ids=tag_ids
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/sources/models.py", line
88, in upload_document
file_object=file_object, _user=user
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 252, in new_version
document_version.save(_user=_user)
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 423, in save
self.fix_orientation()
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 472, in fix_orientation
degrees = page.detect_orientation()
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 713, in detect_orientation
page_number=self.page_number
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/converter/backends/python.py",
line 75, in detect_orientation
result = pdf.getPage(page_number - 1).get('/Rotate')
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/pdf.py", line 1176,
in getPage
self._flatten()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/pdf.py", line 1505,
in _flatten
catalog = self.trailer["/Root"].getObject()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/generic.py", line
516, in __getitem__
return dict.__getitem__(self, key).getObject()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/generic.py", line
178, in getObject
return self.pdf.getObject(self).getObject()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/pdf.py", line 1604,
in getObject
% (indirectReference.idnum, indirectReference.generation, idnum,
generation))
PdfReadError: Expected object ID (14 0) does not match actual (13 0); xref
table not zero-indexed.
documents.models <5276> [ERROR] "save() Error creating new document version
for document "Betriebsrente.pdf"; Expected
o bject ID (14 0)
does not match actual (13 0); xref table not zero-indexed."
[2017-07-02 16:44:37,408: ERROR/Worker-1] Error creating new document
version for document "Betriebsrente.pdf";
Expected object ID
(14 0) does not match actual (13 0); xref table not zero-indexed.
sources.models <5276> [CRITICAL] "upload_document() Unexpected exception
while trying to create new document
"Betriebsre nte.pdf"
from source "Default"; Expected object ID (14 0) does not match actual (13
0); xref table not zero-indexed."
[2017-07-02 16:44:37,409: CRITICAL/Worker-1] Unexpected exception while
trying to create new document
"Betriebsrente.pdf "
from source "Default"; Expected object ID (14 0) does not match actual (13
0); xref table not zero-indexed.
[2017-07-02 16:44:37,417: ERROR/MainProcess] Task
sources.tasks.task_upload_document[49864198-bcfd-4c75-a803-c97f168cb29
5] raised unexpected: PdfReadError('Expected object ID (14 0) does not
match actual (13 0); xref table not
zero-indexed. ',)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line
240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line
438, in __protected_call__
return self.run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/sources/tasks.py", line
68, in task_upload_document
tag_ids=tag_ids
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/sources/models.py", line
88, in upload_document
file_object=file_object, _user=user
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 252, in new_version
document_version.save(_user=_user)
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 423, in save
self.fix_orientation()
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 472, in fix_orientation
degrees = page.detect_orientation()
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/documents/models.py",
line 713, in detect_orientation
page_number=self.page_number
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/converter/backends/python.py",
line 75, in detect_orientation
result = pdf.getPage(page_number - 1).get('/Rotate')
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/pdf.py", line 1176,
in getPage
self._flatten()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/pdf.py", line 1505,
in _flatten
catalog = self.trailer["/Root"].getObject()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/generic.py", line
516, in __getitem__
return dict.__getitem__(self, key).getObject()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/generic.py", line
178, in getObject
return self.pdf.getObject(self).getObject()
File "/usr/local/lib/python2.7/dist-packages/PyPDF2/pdf.py", line 1604,
in getObject
% (indirectReference.idnum, indirectReference.generation, idnum,
generation))
PdfReadError: Expected object ID (14 0) does not match actual (13 0); xref
table not zero-indexed.
Does this help?
Thank you in advance.
Regards
Mirco
Am Montag, 3. Juli 2017 05:02:45 UTC+2 schrieb Roberto Rosario:
>
> Try:
>
> docker logs mayan-edms
>
> If that doesn't show any errors, try:
>
> docker exec -it mayan-edms /bin/bash -c "tail /var/log/mayan/*"
>
> for a more verbose output. Paste here any error that appears.
>
> On Sunday, July 2, 2017 at 12:42:04 PM UTC-4, Mirco Hansen wrote:
>>
>> Hi,
>>
>> I still got the issue (like in 2.3) that Mayan does not read my config.
>> The file is located here:
>> /var/lib/docker/volumes/mayan_data/_data/settings/local.py and has the
>> following content:
>> from __future__ import absolute_import
>>
>> from .base import *
>>
>> SECRET_KEY = 'xxx'
>> ALLOWED_HOSTS = ['*']
>>
>> DOCUMENTS_LANGUAGE_CHOICES = (('eng', 'English'), ('deu', 'Deutsch'))
>> DOCUMENTS_LANGUAGE = 'deu'
>> MAYAN_COMMON_PAGINATE_BY=50
>>
>> The language settings and pagination is not working. If I run docker
>> exec -it mayan-edms cat /var/lib/mayan/settings/local.py it shows me the
>> same file.
>>
>> Since upgrading to 2.4 I have the problem that I can not upload any
>> documents via the web formular. I go through the wizard (selecting doctype,
>> adding metadata and selecting language) and if I drag and drop the document
>> into the form it looks like it is uploaded and a checkmark appears. But
>> there is no OCR running (CPU is idle) and the document is not listed in the
>> tag page or the "latest documents" list.
>>
>> Where can I have a look into Mayans logs inside the container? Where are
>> they stord so I can try find out whats wrong.
>>
>> Thanks in advance!
>>
>> Regards
>> Mirco
>>
>>
--
---
You received this message because you are subscribed to the Google Groups
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.