Preview Error - even though file size has been increased

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
rgopal
Member II

Preview Error - even though file size has been increased

I have uploaded an 8MB Powerpoint file .PPT - I have increased the JOD converter file size limits as well - however I still am not able to preview the file. The version of Alfresco is Alfresco Community V 5.2

Given below is the error message in Catalina.out and also the file size limits in alfresco-global.properties

2019-04-09 08:25:00,956 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-9] Exception from executeScript: 03090001 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js
org.springframework.extensions.webscripts.WebScriptException: 03090001 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js
at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:176)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:512)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)
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 javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538)

Alfresco Global Properties file size settings

### External executable locations ###
ooo.exe=/opt/alfresco/libreoffice/program/soffice.bin
ooo.enabled=true
ooo.port=8100
img.root=/opt/alfresco/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
alfresco-pdf-renderer.root=/opt/alfresco/common/alfresco-pdf-renderer
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer

jodconverter.enabled=true
jodconverter.officeHome=/opt/alfresco/libreoffice
jodconverter.portNumbers=8200
content.transformer.JodConverter.extensions.xlsm.pdf.maxSourceSizeKBytes=1536
content.transformer.JodConverter.extensions.pptm.pdf.maxSourceSizeKBytes=10096
content.transformer.JodConverter.extensions.xls.pdf.maxSourceSizeKBytes=10240
content.transformer.JodConverter.extensions.sldm.pdf.maxSourceSizeKBytes=4096
content.transformer.JodConverter.extensions.xltx.pdf.maxSourceSizeKBytes=1536
content.transformer.JodConverter.extensions.potx.pdf.maxSourceSizeKBytes=8096
content.transformer.JodConverter.extensions.docx.pdf.maxSourceSizeKBytes=8068
content.transformer.JodConverter.extensions.xlsx.pdf.maxSourceSizeKBytes=1536
content.transformer.JodConverter.extensions.pptx.pdf.maxSourceSizeKBytes=10096
content.transformer.JodConverter.extensions.xlam.pdf.maxSourceSizeKBytes=1536
content.transformer.JodConverter.extensions.ppt.pdf.maxSourceSizeKBytes=16144
content.transformer.JodConverter.extensions.docm.pdf.maxSourceSizeKBytes=8768
content.transformer.JodConverter.extensions.xltm.pdf.maxSourceSizeKBytes=1536
content.transformer.JodConverter.extensions.dotx.pdf.maxSourceSizeKBytes=768
content.transformer.JodConverter.extensions.xlsb.pdf.maxSourceSizeKBytes=1536
content.transformer.JodConverter.extensions.sldx.pdf.maxSourceSizeKBytes=4096
content.transformer.JodConverter.extensions.ppsm.pdf.maxSourceSizeKBytes=8096
content.transformer.JodConverter.extensions.potm.pdf.maxSourceSizeKBytes=4096
content.transformer.JodConverter.extensions.txt.pdf.maxSourceSizeKBytes=5120
content.transformer.JodConverter.extensions.ppam.pdf.maxSourceSizeKBytes=4096
content.transformer.JodConverter.extensions.dotm.pdf.maxSourceSizeKBytes=768
content.transformer.JodConverter.extensions.doc.pdf.maxSourceSizeKBytes=10240
content.transformer.JodConverter.extensions.vsd.pdf.maxSourceSizeKBytes=4096
content.transformer.JodConverter.extensions.vsdx.pdf.maxSourceSizeKBytes=4096
content.transformer.JodConverter.extensions.ppsx.pdf.maxSourceSizeKBytes=9096

4 Replies

Re: Preview Error - even though file size has been increased

Did you test with different PPT files? There are some files that cannot be converted to PDF and it doesn't depend on the size but on the format.

Software Engineer in Alfresco Search Team.
rgopal
Member II

Re: Preview Error - even though file size has been increased

For some files get the message "Could not load PDF Content" - some files are being viewed even now. 

roberto_gamiz
Established Member II

Re: Preview Error - even though file size has been increased

Maybe you will find more info if you activate the log for transformation process:

log4j.logger.org.alfresco.repo.content.transform.TransformerDebug=debug

brain1961
Member II

Re: Preview Error - even though file size has been increased

I'm having a similar problem. I am on Community - 5.2.0. If I upload a powerpoint that is 3 mb or smaller, the preview works fine but if that same powerpoint is 4 mb or larger, the preview fails. I've added "content.transformer.JodConverter.extensions.pptx.pdf.maxSourceSizeKBytes=8096" to the  alfresco-global.properties file and restarted Alfresco but it didn't help. Am I placing this in the worng place. I'm a noob. Any help would be greatly appreciated. 

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

dir.root=/opt/alfresco-community/alf_data
dir.contentstore=/mnt/alf_data/contentstore
dir.contentstore.deleted=/mnt/alf_data/contentstore.deleted

alfresco.context=alfresco
alfresco.host=xxx.xxx.xxx.xx
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=xxx.xxx.xxx.xx
share.port=8080
share.protocol=http

### database connection properties ###
db.driver=org.postgresql.Driver
db.username=removed
db.password=removed
db.name=removed
db.url=jdbcSmiley Tongueostgresql://localhost:5432/${db.name}
# Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.
db.pool.max=275
db.pool.validate.query=SELECT 1

# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=UNKNOWN

### FTP Server Configuration ###
ftp.port=21

### RMI registry port for JMX ###
alfresco.rmi.services.port=50500

### External executable locations ###
ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin
ooo.enabled=true
ooo.port=8100
img.root=/opt/alfresco-community/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
alfresco-pdf-renderer.root=/opt/alfresco-community/common/alfresco-pdf-renderer
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer

jodconverter.enabled=true
jodconverter.officeHome=/opt/alfresco-community/libreoffice
jodconverter.portNumbers=8100

# Configuration of max size for transformations.
content.transformer.JodConverter.extensions.pptx.pdf.maxSourceSizeKBytes=8096
content.transformer.JodConverter.extensions.ppt.pdf.maxSourceSizeKBytes=8096

### Initial admin password ###
alfresco_user_store.adminpassword=removed

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=/opt/alfresco-community

### Solr indexing ###
index.subsystem.name=solr4
dir.keystore=${dir.root}/keystore
solr.host=localhost
solr.port.ssl=8443

### Allow extended ResultSet processing
security.anyDenyDenies=false

### Smart Folders Config Properties ###
smart.folders.enabled=false

### Remote JMX (Default: disabled) ###
alfresco.jmx.connector.enabled=false