cancel
Showing results for 
Search instead for 
Did you mean: 

Word document conversion fails

ryo39
Confirmed Champ
Confirmed Champ

Hello, I am using ACS 6.0.2.
I found that some of the uploaded Docx files can be previewed and some are not. I made a minimal set that reproduces it. The okng.zip in the link below contains two Docx files.
okng.zip 

The only difference between ok.docx and ng.docx is the presence or absence of the top one letter. Both are about 20KB in size.
I can preview ok.docx, but ng.docx fails content conversion(I put the log in the zip file).
When I ran the soffice.bin command directly, both were able to convert to PDF as below.

alfresco-content-services-community-full/libreoffice/program/soffice.bin --headless --convert-to pdf ok.docx
alfresco-content-services-community-full/libreoffice/program/soffice.bin --headless --convert-to pdf ng.docx
It seems that there is a problem via socket.
Is there such a case?

Best regards,
ryo

1 ACCEPTED ANSWER

ryo39
Confirmed Champ
Confirmed Champ

Hi, Eddy.

Thank you for trying to reproduce my  problem.
My installation was done by alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin.
The reason why it fails to convert was the contained libreoffice 5.2.1.2 in the environment is bit old. So I updated it to 6.4.3.2 and  it solved my problems.

Best,

ryo

View answer in original post

4 REPLIES 4

ryo39
Confirmed Champ
Confirmed Champ

Has anyone ever failed to convert such a small file?

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ryo39,

I've just uploaded your sample files w/o issue - see screenshot. 

I'm running Community 6.2 on a Mac - see below:

Alfresco Share v6.2.0
(r7791ffba8f0b22f1ef9fa25ba17400c4657068e3-b9, Aikau 1.0.101.19, Spring Surf 6.2.0, 
Spring WebScripts 7.10, Freemarker 2.3.28, Rhino 1.7.11, Yui 2.9.0-alfresco-20141223) Alfresco Community v6.2.0 (r05dbaf43-b368) schema 13001
 
My log files for these uploads are as follows:
2020-05-04 16:07:22,590 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [ajp-nio-127.0.0.1-8009-exec-1] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
2020-05-04 16:07:23,807 INFO  [org.alfresco.repo.content.transform.FailoverContentTransformer] [pool-2-thread-2] Transformation was successful
2020-05-04 16:07:23,853 INFO  [org.alfresco.repo.content.transform.FailoverContentTransformer] [pool-2-thread-2] Transformation was successful
2020-05-04 16:07:24,080 INFO  [org.alfresco.repo.content.transform.FailoverContentTransformer] [pool-2-thread-1] Transformation was successful
2020-05-04 16:07:24,109 INFO  [org.alfresco.repo.content.transform.FailoverContentTransformer] [pool-2-thread-1] Transformation was successful
I can both preview and open the documents.
 
What is your environment?
 
Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

ryo39
Confirmed Champ
Confirmed Champ

Hi, Eddy.

Thank you for trying to reproduce my  problem.
My installation was done by alfresco-content-services-community-full-installer-6.0.2.1-ea-linux-x64.bin.
The reason why it fails to convert was the contained libreoffice 5.2.1.2 in the environment is bit old. So I updated it to 6.4.3.2 and  it solved my problems.

Best,

ryo

EddieMay
World-Class Innovator
World-Class Innovator

hi @ryo39,

Great news that you resolved the issue - also, thanks for reporting how you fixed it, useful to everyone.

Cheers, 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!