cancel
Showing results for 
Search instead for 
Did you mean: 

Document Preview does not display the latest version of a document

pcharsle
Confirmed Champ
Confirmed Champ

We are using Alfresco 5.1. The Document Preview successfully displays the first version of an uploaded document. However, when we upload a new version, the preview continues to display the original version.

Upon uploading a new version, Alfresco displays an informational message telling the user that they need to refresh their browser in order for the preview to show the new version. However, even after refreshing the browser multiple times, the old version is still displayed.

No error messages are displayed in the log files and we have verified that even when accessed by a different user from a different browser, the old version is still displayed.

How can we make the Document preview show the latest version?

1 ACCEPTED ANSWER

We've now submitted a support case for this issue

View answer in original post

18 REPLIES 18

angelborroy
Community Manager Community Manager
Community Manager

It seems that your LibreOffice service is down, check this https://www.contentreich.de/alfresco-handling-libreoffice-not-responding 

Hyland Developer Evangelist

Thanks for your response. We use the jodconverter to launch 3 office processes. We restarted Alfresco and now the preview is working correctly. Its concerning that this type of problem can occur without warning. See the snippet from the log file during startup below. They seemed to all be running correctly both before and after the restart (although they seem to take 2 attempts to start)

Since we are using the jodconverter, I'm not sure that we can use the OfficeWatchDog solution as well?

2016-10-19 19:38:17,311  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]

2016-10-19 19:38:17,506  WARN  [alfresco.util.AbstractTriggerBean] [localhost-startStop-1] Job openOfficeConnectionTesterTrigger is not enabled

2016-10-19 19:38:17,807  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete

2016-10-19 19:38:17,809  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'OOoJodconverter' subsystem, ID: [OOoJodconverter, default]

Oct 19, 2016 7:38:17 PM org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>

INFO: ProcessManager implementation is LinuxProcessManager

Oct 19, 2016 7:38:17 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: Using original OpenOffice command: [/usr/lib/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8100;urp;, -env:UserInstallation=file:///tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8100, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]

Oct 19, 2016 7:38:17 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8100'

Oct 19, 2016 7:38:17 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: started process; pid = 10314

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.ManagedOfficeProcess$6 attempt

WARNING: office process died with exit code 81; restarting it

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: Using original OpenOffice command: [/usr/lib/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8100;urp;, -env:UserInstallation=file:///tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8100, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8100'

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: started process; pid = 10324

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.OfficeConnection connect

INFO: connected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: Using original OpenOffice command: [/usr/lib/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8101;urp;, -env:UserInstallation=file:///tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8101, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]

Oct 19, 2016 7:38:19 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8101,tcpNoDelay=1' and profileDir '/tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8101'

Oct 19, 2016 7:38:20 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: started process; pid = 10338

Oct 19, 2016 7:38:20 PM org.artofsolving.jodconverter.office.ManagedOfficeProcess$6 attempt

WARNING: office process died with exit code 81; restarting it

Oct 19, 2016 7:38:20 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: Using original OpenOffice command: [/usr/lib/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8101;urp;, -env:UserInstallation=file:///tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8101, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]

Oct 19, 2016 7:38:20 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8101,tcpNoDelay=1' and profileDir '/tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8101'

Oct 19, 2016 7:38:20 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: started process; pid = 10348

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeConnection connect

INFO: connected: 'socket,host=127.0.0.1,port=8101,tcpNoDelay=1'

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: Using original OpenOffice command: [/usr/lib/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8102;urp;, -env:UserInstallation=file:///tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8102, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8102,tcpNoDelay=1' and profileDir '/tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8102'

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: started process; pid = 10362

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.ManagedOfficeProcess$6 attempt

WARNING: office process died with exit code 81; restarting it

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: Using original OpenOffice command: [/usr/lib/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=8102;urp;, -env:UserInstallation=file:///tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8102, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: starting process with acceptString 'socket,host=127.0.0.1,port=8102,tcpNoDelay=1' and profileDir '/tmp/tomcat7-tmp/.jodconverter_socket_host-127.0.0.1_port-8102'

Oct 19, 2016 7:38:21 PM org.artofsolving.jodconverter.office.OfficeProcess start

INFO: started process; pid = 10373

Oct 19, 2016 7:38:22 PM org.artofsolving.jodconverter.office.OfficeConnection connect

INFO: connected: 'socket,host=127.0.0.1,port=8102,tcpNoDelay=1'

2016-10-19 19:38:22,250  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'OOoJodconverter' subsystem, ID: [OOoJodconverter, default] complete

bhagyas
Champ on-the-rise
Champ on-the-rise

pcharsle _​ We have encountered the same issue with the latest versions of Alfresco Community edition and are working on a fix. What version of Alfresco are you using?

We are using Alfresco Enterprise 5.1.1. Since we can find no clues in the log files. We are checking regularly to ensure versioning is working and if not, we restart Alfresco. This is not ideal!

loftux
Star Contributor
Star Contributor

Here is the issue and our proposed solution:

[ALF-21761] Preview not updated after new versions, AOS and manual upload - Alfresco JIRA

I suggest you file a support case (if you haven't already) and point them to this issue.

Hi Peter, Thanks for your reply. I am not sure if this is the same issue since we are not using AOS and the problem is not consistent. Currently, the preview is displaying the latest version and for this reason we haven't yet submitted a support case. However, as soon as the problem reoccurs we will submit a case and point them to your fix.

loftux
Star Contributor
Star Contributor

The issue was originally created as if only applying to AOS, but further testing revealed that it applies to whenever a new version is created.

Note that previews may work with the first version created, but fail on later versions.

We've now submitted a support case for this issue

rdorani
Champ in-the-making
Champ in-the-making

Peter Löfgren‌ and Others, I have just logged this post, is there any way you guys could help me out please :

The document preview just shows the first version of the document unless i press control + F5 and then it shows the right version , I can download the right version by pressing the download button ...

Your help is much appreciated .