Sometimes problems with PDF preview creation

cancel
Showing results for 
Search instead for 
Did you mean: 
nettania
Active Member II

Sometimes problems with PDF preview creation

Hi community,

I have installed and configured Alfresco on an ubuntu server as well as on an Windows server. On both system alfresco ist working fine except the fact that I have sometimes a problem with creating a Thumbnail/PDF view of a txt file, esspecially if I upload a new version.

The system informs me, that a preview could not be created and the catalina.out displays the following exception:

2020-01-22 13:30:17,180  INFO  [web.scripts.MimetypesQuery] [http-nio-8080-exec-4] Successfully retrieved mimetypes information from Alfresco.
 2020-01-22 13:30:17,631  ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-9] Exception from executeScript: 00220001 Wrapped Exception (with status template): 00220255 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 00220254 00220253 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/5edfaaf7-1f9e-46e7-9ae3-cfda85fc39a5
org.springframework.extensions.webscripts.WebScriptException: 00220001 Wrapped Exception (with status template): 00220255 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 00220254 00220253 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/5edfaaf7-1f9e-46e7-9ae3-cfda85fc39a5
	at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1139)
	at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:202)
	at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
	at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:595)
	at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:664)
	at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:435)
	at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:315)
	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
	at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
	at org.alfresco.repo.web.scripts.AlfrescoWebScriptServlet.service(AlfrescoWebScriptServlet.java:43)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:609)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.alfresco.scripts.ScriptException: 00220255 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 00220254 00220253 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/5edfaaf7-1f9e-46e7-9ae3-cfda85fc39a5
	at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:211)
	at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)
	at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)
	at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)
	at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
	at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:146)
	... 39 more
Caused by: org.alfresco.service.cmr.thumbnail.ThumbnailException: 00220254 00220253 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/5edfaaf7-1f9e-46e7-9ae3-cfda85fc39a5
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnailNode(ThumbnailServiceImpl.java:788)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.access$4(ThumbnailServiceImpl.java:772)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1$1.doWork(ThumbnailServiceImpl.java:427)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1$1.doWork(ThumbnailServiceImpl.java:1)
	at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1.execute(ThumbnailServiceImpl.java:423)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1.execute(ThumbnailServiceImpl.java:1)
	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:417)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:373)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:41)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:86)
	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
	at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:76)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
	at com.sun.proxy.$Proxy151.createThumbnail(Unknown Source)
	at org.alfresco.repo.jscript.ScriptNode.createThumbnail(ScriptNode.java:3100)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
	at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:65)
	at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_thumbnail_thumbnail_get_js_11._c_main_1(classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js:74)
	at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_thumbnail_thumbnail_get_js_11.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
	at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:87)
	at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_thumbnail_thumbnail_get_js_11._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js:115)
	at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_thumbnail_thumbnail_get_js_11.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:409)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3566)
	at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_thumbnail_thumbnail_get_js_11.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
	at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_thumbnail_thumbnail_get_js_11.exec(classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js)
	at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)
	at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)
	... 44 more
Caused by: org.alfresco.service.cmr.rendition.RenditionServiceException: 00220253 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/5edfaaf7-1f9e-46e7-9ae3-cfda85fc39a5
	at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.createOrUpdateRendition(AbstractRenderingEngine.java:1015)
	at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.switchToFinalRenditionNode(AbstractRenderingEngine.java:904)
	at org.alfresco.repo.rendition.executer.AbstractRenderingEngine$1.doWork(AbstractRenderingEngine.java:481)
	at org.alfresco.repo.rendition.executer.AbstractRenderingEngine$1.doWork(AbstractRenderingEngine.java:1)
	at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)
	at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeImpl(AbstractRenderingEngine.java:451)
	at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeImpl(AbstractRenderingEngine.java:394)
	at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:273)
	at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:856)
	at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:757)
	at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:581)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:41)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
	at com.sun.proxy.$Proxy54.executeAction(Unknown Source)
	at org.alfresco.repo.rendition.RenditionServiceImpl.executeRenditionAction(RenditionServiceImpl.java:414)
	at org.alfresco.repo.rendition.RenditionServiceImpl.render(RenditionServiceImpl.java:276)
	at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnailNode(ThumbnailServiceImpl.java:782)
	... 91 more

This exception occurs no matter which browser I use. The only possibility to solve it, is to delete the file and make a new upload.

I hope someone can give me a hint hwo to solve this problem.

Thanks,

Florian

 

9 Replies
kovalev
Active Member

Re: Sometimes problems with PDF preview creation

Hi @nettania ,

I have similar problems with ACS 6.1 Community on Ubuntu. I'm using dockerized solution. Actually, I have two kinds of problems:

  1. First, the same as you described with PDF preview generating. Have you already have a solution?
  2. The second, I often can not get  preview updated after document has been edited online and saved, for example with MS Office. Do you experience similar problems?

Thanks in advance for your reply 

Regards,
Andrey
angelborroy
Alfresco Employee

Re: Sometimes problems with PDF preview creation

Can you provide your configuration related to transformers in alfresco-global.properties?

Hyland Developer Evangelist
nettania
Active Member II

Re: Sometimes problems with PDF preview creation

Hello,

I did not find a solution yet, and I can cofirm you mentioned second problem, that after uploading a new version sometimes the creation of the preview fails, informing me, that the document cannot be displayed. The only solution I found, was to delete the document and create a new one. But this cannot be the only way.

Florian

nettania
Active Member II

Re: Sometimes problems with PDF preview creation

Hello,

thank you for your repsonse!

This is my Windows alfresco-global.properties configuration:

###############################
## Common Alfresco Properties #
###############################

# Otherwise alfresco war will stuck at "Initializing Spring root WebApplicationContext"
messaging.subsystem.autoStart=false

#
# Custom content and index data location
#
dir.root=E:\alfresco-data
dir.keystore=${dir.root}/keystore

#
# The location of the content store
#
dir.contentstore=E:\alfresco-contentstore/contentstore
dir.contentstore.deleted=E:\alfresco-contentstore/contentstore.deleted

#
# Sample database connection properties
#
db.username=alfresco_nettania
db.password=alfresco_nettania

#
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco_nettania
db.pool.max=275
db.pool.validate.query=SELECT 1

#
# External locations
#-------------
jodconverter.officeHome=C:/Program Files/LibreOffice
jodconverter.portNumbers=8101
jodconverter.enabled=true

#
# PDF renderer
#
alfresco-pdf-renderer.root=C:\\Alfresco6\\alfresco-pdf-renderer

#
# Windows specific environment variables (should not be set on unix) for ImageMagick
#
img.root=C:\\Program Files\\ImageMagick-7.0.8-Q16
img.coders=${img.root}\\modules\\coders
img.config=${img.root}
img.exe=${img.root}\\convert.exe

#swf.exe=C:\\SWFTools\\pdf2swf.exe

#
# Property to control whether schema updates are performed automatically.
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
# there are also auto-generated update scripts that will need to be executed.  After
# upgrading to a new version, this can be disabled.
#
#db.schema.update=true

#
# Server mode
# UNKNOWN TEST BACKUP PRODUCTION
system.serverMode=PRODUCTION

#
# Index Recovery Mode
#-------------
index.recovery.mode=AUTO


#
# URL Generation Parameters (The ${localname} token is replaced by the local server name)
#-------------
alfresco.context=alfresco
alfresco.host=files.nettania.net
alfresco.port=443
alfresco.protocol=https

share.context=share
share.host=files.nettania.net
share.port=443
share.protocol=https

# The following line is ussually only necessary, if alfresco runs behind a proxy/revers proxy.
# If there are problems with aos, try to enable or disable this setting.
aos.baseUrlOverwrite=https://files.nettania.net/alfresco/aos

# Default value of alfresco.rmi.services.host is 0.0.0.0 which means 'listen on all adapters'.
# This allows connections to JMX both remotely and locally.
#
alfresco.rmi.services.host=0.0.0.0

#Smart Folders Config Properties

smart.folders.enabled=true
smart.folders.model=alfresco/model/smartfolder-model.xml
smart.folders.model.labels=alfresco/messages/smartfolder-model

#
# License Location
#
dir.license.external=C:/Alfresco6

#
# Alfresco Search services
#
index.subsystem.name=solr6
solr.secureComms=none
solr.port=8983

The one of ubuntu is quiet similiar except, that the path to libre office is different.

Thank you for your help,

Florian

heiko_robert
Senior Member

Re: Sometimes problems with PDF preview creation

Unfortunatlely alfresco's stacktrace does not really help to solve such transformer issues.

I'd recommend to follow Content Transformation Debug to find out, what Alfresco's transformer(s) are trying to do and which command fails and why.

kovalev
Active Member

Re: Sometimes problems with PDF preview creation

Hi @angelborroy 

My transform settings are:

content.transformer.PdfBox.extractBookmarksText	true
content.transformer.retryOn.different.mimetype	true
local.transform.service.enabled 	        true
lucene.maxAtomicTransformationTime	        100
transformer.Archive.includeContents	        false
transformer.strict.mimetype.check	        true

Also, I made such a test:

  1. created new file in google docs and named it transform_test.docx
  2. checked out from google docs, updated browser page and got file name changed and contents displayed as expected
  3. opened this file in microsoft office right from preview page, edited and saved
  4. closed ms word
  5. updated web page with document preview - no changes
  6. whent to document list and updated web page - thumbnail updated showing latest contents
  7. opened document preview page - contents not updated

I put below trnsformation debug info on described case. May be this can clear what is going on.

 

284             24 Feb 2020 11:09:30
284             docx png  transform_test.docx 11.6 KB -- doclib -- ContentService.transform(...)
284             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
284             **a) [250] complex.JodConverter.Image<<Complex>>           169 ms
284               b) [400] complex.Any.Image<<Complex>>                    0 ms
284.1           docx png  transform_test.docx 11.6 KB complex.JodConverter.Image<<Complex>>
284.1.1         docx pdf  transform_test.docx 11.6 KB JodConverter.2Pdf<<FailoverComponent>>
284.1.1.1       docx pdf  transform_test.docx 11.6 KB JodConverter<<Proxy>>
284.1.2         pdf  png  <<TemporaryFile>> 6.6 KB complex.PDF.Image<<Failover>>
284.1.2.1       pdf  png  <<TemporaryFile>> 6.6 KB alfresco-pdf-renderer<<Proxy>>
284             Finished in 70 ms

283             24 Feb 2020 11:09:30
283             docx png  transform_test.docx 11.6 KB -- doclib -- ContentService.getTransformer(...)
283             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
283             **a) [250] complex.JodConverter.Image<<Complex>>           169 ms
283               b) [400] complex.Any.Image<<Complex>>                    0 ms
283             Finished in 1 ms Just checking if a transformer is available

282             24 Feb 2020 11:09:30
282             docx png  -- doclib -- ContentService.getMaxSourceSizeBytes() = unlimited
282             **a) [250] complex.JodConverter.Image<<Complex>>           169 ms
282               b) [400] complex.Any.Image<<Complex>>                    0 ms
282             Finished in 1 ms Just checking if a transformer is available

281             24 Feb 2020 11:09:30
281             docx txt  transform_test.docx 11.6 KB -- index -- SolrIndexer
281             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
281             **a) [120] TikaAuto           152 ms
281               b) [130] OOXML              0 ms
281.1           docx txt  transform_test.docx 11.6 KB TikaAuto
281             Finished in 16 ms

280             24 Feb 2020 11:09:30
280             docx txt  transform_test.docx 11.6 KB -- index -- SolrIndexer
280             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
280             **a) [120] TikaAuto           168 ms
280               b) [130] OOXML              0 ms
280.1           docx txt  transform_test.docx 11.6 KB TikaAuto
280             Finished in 62 ms

279             24 Feb 2020 11:09:00
279             docx pdf  transform_test.docx 5.9 KB -- pdf -- ContentService.transform(...)
279             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
279             **a) [110] JodConverter<<Proxy>> < 768 KB  123 ms
279.1           docx pdf  transform_test.docx 5.9 KB JodConverter<<Proxy>>
279             Finished in 59 ms

278             24 Feb 2020 11:08:57
278             docx pdf  Untitled Document.docx 5.9 KB -- pdf -- ContentService.getTransformer(...)
278             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
278             **a) [110] JodConverter<<Proxy>> < 768 KB  123 ms
278             Finished in 0 ms Just checking if a transformer is available

277             24 Feb 2020 11:08:52
277             docx pdf  Untitled Document.docx 13.5 KB -- pdf -- ContentService.transform(...)
277             workspace://SpacesStore/ac1a8c39-e4aa-42d6-870b-940b0c312403 
277             **a) [110] JodConverter<<Proxy>> < 768 KB  126 ms
277.1           docx pdf  Untitled Document.docx 13.5 KB JodConverter<<Proxy>>
277             Finished in 66 ms

Hope to see any suggestions.

 

Regards,
Andrey
alexeydel
Member II

Re: Sometimes problems with PDF preview creation

Hi, Andrey!

Did you manage to find any solution or workaround to this issue?

I have faced the same error and it is very easy to reproduce:

1. Create txt file - preview works as expected

2. Modify this txt file - preview works as expected

3. Modify this txt file for the second time - Could not load PDF content in Chrome, preview not updated in IE.

I am using Alfresco 6.1.1 on Ubuntu 18.04 LTS. 

Paraita
Member II

Re: Sometimes problems with PDF preview creation

Hi,

I have a similar error (I'm on Centos 7). ACS runs fine except that the PDF preview creation doesn't work for some of my documents (.docx). The problem seem to arise randomly as some docs might work, then after a while some of those same docs will display a 500 error similar to what you have.

kaynezhang
Advanced

Re: Sometimes problems with PDF preview creation

 

Which transformer are you using ? the legacy embedded  transformer or the new T-Engines
If you are using legacy transformers ,please add folloing to alfresco-global.properties
content.transformer.OpenOffice.extensions.docx.pdf.maxSourceSizeKBytes=100000
if you are using the new T-Engine ,please edit the json configure file
 {"sourceMediaType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",   "maxSourceSizeBytes": 786432,                   "targetMediaType": "application/pdf" },