Dear All,
Allow me to continue the monologue, as I am., by now, pretty sure that it 
is a bug.
Here is what I did:
I modified the TEMPORARY_DIRECTORY defaults in local_settings.py as follows:
#COMMON_TEMPORARY_DIRECTORY = '/tmp'
COMMON_TEMPORARY_DIRECTORY = '/usr/local/edms_[my instance]/mayan/media/tmp'
The reason was to have better control over file expire, etc. - a simple 
cron job would do the deed, or so I thought.
With the above settings, I get exactly one page converted, and shown in the 
page listing of the uploaded document.
If I switch to the defaults, things do work as expected:
COMMON_TEMPORARY_DIRECTORY = '/tmp'
#COMMON_TEMPORARY_DIRECTORY = '/usr/local/edms_[my 
instance]/mayan/media/tmp'
I then wondered, whether there may be something wrong in the 
TEMPORARY_DIRECTORY variable handling inside office_converter.py, ad 
brutally hardcoded my custom temp path for diagnostic purposes, yet to on 
avail.
Is it possible that during the string of commands used for document 
conversion, a different command just insists on /tmp (the default 
TEMPORARY_DIRECTORY) , so that libreoffice loses the connection to 
intermediate files?
Hope this helps digging out one of those rare bugs with Mayan EDMS :-).
Thanks a lot, Everyone -
Chris

On Saturday, 11 October 2014 22:03:01 UTC+3, Christoph H. Larsen wrote:
>
> Hmmm... seems nobody else has this problem. Or is my configuration too odd 
> (FreeBSD & friends)?
>
>
> On Tuesday, 7 October 2014 13:20:02 UTC+3, Christoph H. Larsen wrote:
>>
>> Dear Crowd,
>> Just wondering, as this seems to be a rather basic problem - has anybody 
>> else experienced this? I am running Mayan-EDMS on FreeBSD 10, with all 
>> recent updates, GraphicMagick and LibreOffice 4.2.5. Any thoughts, why 
>> uploaded .doc and .odt files only see their first page loaded into the DMS?
>> Thanks a lot -
>> Chris
>>
>> On Saturday, 4 October 2014 12:23:08 UTC+3, Christoph H. Larsen wrote:
>>>
>>> Just an addendum on the significance of this finding, which I have not 
>>> been able to sort out to date:
>>> While some documents should be uploaded into the DMS as unchangeable 
>>> .pdf files, others, such as standard operating procedures, are to be edited 
>>> to a minimal extend, like changing headers (address of implementing 
>>> institution, name of the person in-charge, etc.). This is especially 
>>> important, if the SOPs are distributed centrally by, for instance a 
>>> government authority. So, no getting away without .doc or raher .odt 
>>> formats. However, Mayan EDMS shows me only the very first page of the .doc 
>>> or .odt document, where .pdf version are displayed in full. Hence i guess 
>>> that it is a LibreOffice issue. ???
>>> Any ideas, help? Thank you so much,
>>> Chris
>>>
>>> On Friday, 3 October 2014 15:11:43 UTC+3, Christoph H. Larsen wrote:
>>>>
>>>> Dear All,
>>>>
>>>> The heading describes my findings: for instance, a six-ages document, 
>>>> manually converted to .pdf using LibreOffice, and uploaded to Mayan EDMS, 
>>>> gives the expected results, whereas the original document (.odt or .odc), 
>>>> uploaded to Mayan EDMS only shows the first page.
>>>> There are no error messages in the log, as it seems:
>>>> [03/Oct/2014 15:04:05] "GET /documents/list/recent/ HTTP/1.0" 200 21879
>>>> [03/Oct/2014 15:04:06] "GET 
>>>> /api/v0/documents/documents/5/image/?size=50x50&rotation=0&version=5&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 884
>>>> [03/Oct/2014 15:04:06] "GET 
>>>> /api/v0/documents/documents/5/image/?size=50x50&rotation=0&version=5&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 884
>>>> [03/Oct/2014 15:04:08] "GET /sources/create/from/local/multiple/ 
>>>> HTTP/1.0" 200 16020
>>>> [03/Oct/2014 15:04:13] "POST /sources/create/from/local/multiple/ 
>>>> HTTP/1.0" 200 19019
>>>> [03/Oct/2014 15:04:19] "POST /sources/create/from/local/multiple/ 
>>>> HTTP/1.0" 200 20737
>>>> [03/Oct/2014 15:04:33] "POST /sources/create/from/local/multiple/ 
>>>> HTTP/1.0" 302 0
>>>> [03/Oct/2014 15:04:33] "GET 
>>>> /sources/upload/document/new/interactive/?metadata4_value=&metadata8_id=9&metadata0_value=&metadata7_value=&metadata1_id=8&metadata5_value=&metadata3_value=&document_type_id=1&metadata2_id=6&metadata9_id=5&metadata3_id=12&metadata0_id=4&metadata9_value=0.01&metadata6_value=&metadata6_id=13&metadata5_id=11&metadata2_value=&metadata4_id=7&metadata8_value=&metadata1_value=2014-10-03&metadata7_id=10
>>>>  
>>>> HTTP/1.0" 200 17414
>>>> [03/Oct/2014 15:04:56] "POST 
>>>> /sources/upload/document/new/interactive/?metadata4_value=&metadata8_id=9&metadata0_value=&metadata7_value=&metadata1_id=8&metadata5_value=&metadata3_value=&document_type_id=1&metadata2_id=6&metadata9_id=5&metadata3_id=12&metadata0_id=4&metadata9_value=0.01&metadata6_value=&metadata6_id=13&metadata5_id=11&metadata2_value=&metadata4_id=7&metadata8_value=&metadata1_value=2014-10-03&metadata7_id=10
>>>>  
>>>> HTTP/1.0" 302 0
>>>> [03/Oct/2014 15:04:56] "GET 
>>>> /sources/upload/document/new/interactive/?metadata4_value=&metadata8_id=9&metadata0_value=&metadata7_value=&metadata1_id=8&metadata5_value=&metadata3_value=&document_type_id=1&metadata2_id=6&metadata9_id=5&metadata3_id=12&metadata0_id=4&metadata9_value=0.01&metadata6_value=&metadata6_id=13&metadata5_id=11&metadata2_value=&metadata4_id=7&metadata8_value=&metadata1_value=2014-10-03&metadata7_id=10
>>>>  
>>>> HTTP/1.0" 200 17820
>>>> [03/Oct/2014 15:05:07] "GET /documents/list/recent/ HTTP/1.0" 200 22099
>>>> [03/Oct/2014 15:05:07] "GET 
>>>> /api/v0/documents/documents/18/image/?size=50x50&rotation=0&version=18&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 768
>>>> [03/Oct/2014 15:05:07] "GET 
>>>> /api/v0/documents/documents/5/image/?size=50x50&rotation=0&version=5&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 884
>>>> [03/Oct/2014 15:05:07] "GET 
>>>> /api/v0/documents/documents/18/image/?size=50x50&rotation=0&version=18&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 768
>>>> [03/Oct/2014 15:05:07] "GET 
>>>> /api/v0/documents/documents/5/image/?size=50x50&rotation=0&version=5&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 884
>>>> [03/Oct/2014 15:05:11] "GET /documents/18/view/ HTTP/1.0" 200 21145
>>>> [03/Oct/2014 15:05:11] "GET 
>>>> /api/v0/documents/documents/18/image/?size=160x120&rotation=0&version=18&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 2096
>>>> [03/Oct/2014 15:05:12] "GET 
>>>> /api/v0/documents/documents/18/image/?size=160x120&rotation=0&version=18&page=1&zoom=100
>>>>  
>>>> HTTP/1.0" 200 2096
>>>> I am using the laest stable version of Mayan EDMS (obtained via PIP), 
>>>> PostgreSQL 9.3, FreeBSD 9 (with all updates) and headless LibreOfice 
>>>> version 4.2.5 with GraphicMagick 1.3.20.
>>>> Any idea, where I may have messed up?
>>>> Thanks a lot,
>>>> Chris
>>>>
>>>

-- 

--- 
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.

Reply via email to