Empty PDF files OpenEmm 2019

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Empty PDF files OpenEmm 2019

Post by Andrey » Sat Feb 01, 2020 8:53 pm

Hi!
Please help me to resolve the issue.
In the /home/openemm/temp/Preview - there are a lot of zero length PDF files.
Also the mailing preview banners and PDF file export did not work.
Hope this log can help

Code: Select all

2020-02-01 21:31:48,948: ERROR [http-nio-8080-exec-5] com.agnitas.emm.core.workflow.service.GenerationPDFService - generatePDF: java.lang.Exception: Preview generation via wkhtmltopdf was unsuccessful: 
/usr/local/bin/wkhtmltopdf
-s
A4
-O
Portrait
-T
25mm
-B
12mm
--print-media-type
--enable-smart-shrinking
--user-style-sheet
/home/openemm/temp/Preview/preview_8205675948026269304.css
http://censored/mailingsend.do;jsessionid=2F7ECBB2C6F946A985B0909241F7C956?action=16&mailingID=10&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false
/home/openemm/temp/Preview/preview_8012257107176238274.pdf
java.lang.Exception: Preview generation via wkhtmltopdf was unsuccessful: 
/usr/local/bin/wkhtmltopdf
-s
A4
-O
Portrait
-T
25mm
-B
12mm
--print-media-type
--enable-smart-shrinking
--user-style-sheet
/home/openemm/temp/Preview/preview_8205675948026269304.css
http://censored/mailingsend.do;jsessionid=2F7ECBB2C6F946A985B0909241F7C956?action=16&mailingID=10&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false
/home/openemm/temp/Preview/preview_8012257107176238274.pdf
	at com.agnitas.emm.core.workflow.service.GenerationPDFService.generatePDF(GenerationPDFService.java:109)
	at com.agnitas.emm.core.workflow.service.GenerationPDFService.generatePDF(GenerationPDFService.java:52)
	at com.agnitas.web.ComMailingSendAction.execute(ComMailingSendAction.java:593)
	at com.agnitas.web.perm.DelegatingActionProxySecured.execute(DelegatingActionProxySecured.java:120)
	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	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 com.agnitas.web.filter.Struts1SecurityFilter.doFilter(Struts1SecurityFilter.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:154)
	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:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:643)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
2020-02-01 21:51:06,280: WARN  [http-nio-8080-exec-3] com.agnitas.web.ComUserFormExecuteAction - Error viewing form-not-found message
java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at com.agnitas.web.ComUserFormExecuteAction.handleFormNotFound(ComUserFormExecuteAction.java:156)
	at com.agnitas.web.ComUserFormExecuteAction.execute(ComUserFormExecuteAction.java:118)
	at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
	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 com.agnitas.web.filter.Struts1SecurityFilter.doFilter(Struts1SecurityFilter.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:154)
	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:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:643)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
2020-02-01 22:14:54,046: WARN  [http-nio-8080-exec-2] com.agnitas.web.ComUserFormExecuteAction - Error viewing form-not-found message
java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at com.agnitas.web.ComUserFormExecuteAction.handleFormNotFound(ComUserFormExecuteAction.java:156)
	at com.agnitas.web.ComUserFormExecuteAction.execute(ComUserFormExecuteAction.java:118)
	at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
	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 com.agnitas.web.filter.Struts1SecurityFilter.doFilter(Struts1SecurityFilter.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:154)
	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:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:643)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
My version of OpenEmm 2019:

Code: Select all

= OpenEMM Installer v19.10.001 =
================================
Root mode: On
Host: OpenEmm
Runtime Version: 19.10.009.016
Manual Version: Unknown
OpenEMM Version: 19.10.000.133
System-Url: http://censored
OpenEMMBackend Version: 19.10.000.128

OpenEMM status:
Operating System (OS): CentOS 7
Python version: 2.7.5 (default, Aug  7 2019, 00:51:29)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Sendmail Version: 0.10.4
Postfix Version: 2.10.1
DB client version: /usr/bin/mysql  Ver 15.1 Distrib 10.2.22-MariaDB, for Linux (x86_64) using  EditLine wrapper
Database Connection: OK
Database version: MariaDB 10.2.22-MariaDB
OpenEMM database structure exists (Version 19.10.002)
Currently running database threads ratio (Current: 1, Maximum: 11): 0.091
Database table emm_db_errorlog_tbl: OK
Jobqueue status: OK
No DKIM keys
Java version: 1.8.0_232 (OpenJDK)
Java JCE Unlimited-Key-Strength: OK
Tomcat version: 9.0.24.0
Wkhtml version: wkhtmltopdf 0.12.5 (with patched qt)
OpenEMMApplication is running (Tomcat ProcessID: 19529, started at: 21:08 4:22)
OpenEMMBackend running: mailout, update, trigger, generate, mta, pickdist, slrtscn, direct-path, bav-update, bavd, bav, mlcontrol
OpenEMMBackend ok: once
Please any suggestions?

maschoff
Site Admin
Posts: 2262
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Empty PDF files OpenEmm 2019

Post by maschoff » Sun Feb 02, 2020 6:42 pm

Please describe what you did in the EMM GUI to produce this error.
OpenEMM Maintainer

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF files OpenEmm 2019

Post by Andrey » Mon Feb 03, 2020 9:50 am

Yes, sure. Just tried.
1. Open the mailing
2. Preview HTML with images
3. Save As PDF
The Log below

Code: Select all

2020-02-03 11:37:31,834: ERROR [http-nio-8080-exec-17] com.agnitas.emm.core.workflow.service.GenerationPDFService - generatePDF: java.lang.Exception: Preview generation via wkhtmltopdf was unsuccessful: 
/usr/local/bin/wkhtmltopdf
-s
A4
-O
Portrait
-T
25mm
-B
12mm
--print-media-type
--enable-smart-shrinking
--user-style-sheet
/home/openemm/temp/Preview/preview_7638199158859043426.css
http://censored/mailingsend.do;jsessionid=7271A6F799BD199CFADB1E534936EBF1?action=16&mailingID=10&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false
/home/openemm/temp/Preview/preview_2827622921223818861.pdf
java.lang.Exception: Preview generation via wkhtmltopdf was unsuccessful: 
/usr/local/bin/wkhtmltopdf
-s
A4
-O
Portrait
-T
25mm
-B
12mm
--print-media-type
--enable-smart-shrinking
--user-style-sheet
/home/openemm/temp/Preview/preview_7638199158859043426.css
http://censored/mailingsend.do;jsessionid=7271A6F799BD199CFADB1E534936EBF1?action=16&mailingID=10&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false
/home/openemm/temp/Preview/preview_2827622921223818861.pdf
	at com.agnitas.emm.core.workflow.service.GenerationPDFService.generatePDF(GenerationPDFService.java:109)
	at com.agnitas.emm.core.workflow.service.GenerationPDFService.generatePDF(GenerationPDFService.java:52)
	at com.agnitas.web.ComMailingSendAction.execute(ComMailingSendAction.java:593)
	at com.agnitas.web.perm.DelegatingActionProxySecured.execute(DelegatingActionProxySecured.java:120)
	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	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 com.agnitas.web.filter.Struts1SecurityFilter.doFilter(Struts1SecurityFilter.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:154)
	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:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:643)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
The file preview_2827622921223818861.pdf - is exist in the folder /home/openemm/temp/Preview/ with zero length.
The file /home/openemm/temp/Preview/preview_7638199158859043426.css also exist with the text within

Code: Select all

body {
        display: inline-block !important;
        width: 100% !important;
}

maschoff
Site Admin
Posts: 2262
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Empty PDF files OpenEmm 2019

Post by maschoff » Mon Feb 03, 2020 1:33 pm

Hm, I tried it and it just worked fine for me. Is your log taken from catalina.out?
OpenEMM Maintainer

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF files OpenEmm 2019

Post by Andrey » Mon Feb 03, 2020 3:36 pm

maschoff wrote:
Mon Feb 03, 2020 1:33 pm
Is your log taken from catalina.out?
The logs from OpenEmm system - Administration-->System Status-->Show EMM Logfile

Also tried to PDF any webpage from ssh console - the file generated ok.

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF files OpenEmm 2019

Post by Andrey » Wed Feb 05, 2020 9:11 pm

Hi,

I tried to start the PDF generation from the shell.

Code: Select all

[root@OpenEmm logs]# /usr/local/bin/wkhtmltopdf "http://censored/mailingsend.do;jsessionid=25CF78682B52DC78CB4D2CD6522BDBC0?action=16&mailingID=13&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false" preview_84635755916988815041111.pdf
Loading pages (1/6)
Error: Failed to load http://censored/mailingsend.do;jsessionid=25CF78682B52DC78CB4D2CD6522BDBC0?action=16&mailingID=13&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false, with network status code 1 and http status code 0 - Connection refused
Error: Failed loading page http://censored/mailingsend.do;jsessionid=25CF78682B52DC78CB4D2CD6522BDBC0?action=16&mailingID=13&previewFormat=1&previewSize=1&previewCustomerID=1&noImages=false (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: ConnectionRefusedError
The page "http://censored/mailingsend.do;jsession ... ages=false" looks good from the external browser.

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF files OpenEmm 2019 [resolved]

Post by Andrey » Sat Feb 22, 2020 7:01 pm

Founded the server's lack of storage place.
After adding the free space and changing the database user from openemm_user to simple openemm, and cleaning the temp/preview/ folder - the PDF start generated!
The issue can be closed!
Thank you for interest!

maschoff
Site Admin
Posts: 2262
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Empty PDF files OpenEmm 2019

Post by maschoff » Sat Feb 22, 2020 7:09 pm

With storage space you mean disk space? Did you get an error message indicating a lack of space? If so, what was the message and wehere did it appear? I might add this to the documentation.
OpenEMM Maintainer

t.polten
Posts: 1
Joined: Thu Feb 27, 2020 3:30 pm

Re: Empty PDF files OpenEmm 2019

Post by t.polten » Thu Feb 27, 2020 3:58 pm

Hi, I'm facing the same misbehaviour on a fresh installation of the preconfigured appliance (OVA). Either wkhtmltopdf and wkhtmltoimage are throwing errors (emm-error.log):

When trying to export preview to pdf:

Code: Select all

2020-02-27 15:38:05,125: ERROR [pool-12-thread-1] com.agnitas.util.preview.impl.PreviewImageServiceImpl - Error generating preview
java.lang.Exception: Preview generation via wkhtmltoimage failed: 
/usr/local/bin/wkhtmltoimage
--quality
50
http://hidden.fq.dn/mailingsend.do;jsessionid=EF854A7E5095D84897E8587C039A0D09?action=16&mailingID=8&previewFormat=1&previewCustomerID=1&previewDay=0&previewMonth=0&previewYear=0
/home/openemm/temp/Preview/preview_2931707592969141995.png
	at com.agnitas.util.preview.impl.PreviewImageServiceImpl.renderDocumentWithWkhtml(PreviewImageServiceImpl.java:159)
	at com.agnitas.util.preview.impl.PreviewImageServiceImpl.generatePreview(PreviewImageServiceImpl.java:107)
	at com.agnitas.util.preview.impl.PreviewImageServiceImpl$MailingPreviewTask.run(PreviewImageServiceImpl.java:366)
	at com.agnitas.util.preview.impl.PreviewImageGenerationQueueImpl$WrapperTask.run(PreviewImageGenerationQueueImpl.java:95)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
When saving html content (editing / saving content works fine, but this exception is raised in logs at the moment of saving):

Code: Select all

2020-02-27 15:52:55,817: ERROR [pool-12-thread-2] com.agnitas.util.preview.impl.PreviewImageServiceImpl - Error generating preview
java.lang.Exception: Preview generation via wkhtmltoimage failed: 
/usr/local/bin/wkhtmltoimage
--quality
50
http://hidden.fq.dn/mailingsend.do;jsessionid=EF854A7E5095D84897E8587C039A0D09?action=16&mailingID=8&previewFormat=1&previewCustomerID=1&previewDay=0&previewMonth=0&previewYear=0
/home/openemm/temp/Preview/preview_4903863927874562041.png
	at com.agnitas.util.preview.impl.PreviewImageServiceImpl.renderDocumentWithWkhtml(PreviewImageServiceImpl.java:159)
	at com.agnitas.util.preview.impl.PreviewImageServiceImpl.generatePreview(PreviewImageServiceImpl.java:107)
	at com.agnitas.util.preview.impl.PreviewImageServiceImpl$MailingPreviewTask.run(PreviewImageServiceImpl.java:366)
	at com.agnitas.util.preview.impl.PreviewImageGenerationQueueImpl$WrapperTask.run(PreviewImageGenerationQueueImpl.java:95)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Output file (preview_2931707592969141995.png) is empty (0 bytes). Wkhtmltopdf / wkhtmltoimage are working when used in shell as user openemm:

Code: Select all

[openemm@hidden~]$ wkhtmltoimage --quality 50 http://google.com /home/openemm/temp/Preview/google.png         Loading page (1/2)
Rendering (2/2)
Done
[openemm@hidden~]$ ls -l /home/openemm/temp/Preview/google.png
-rwxrwxrwx. 1 openemm openemm 37717 Feb 27 15:43 /home/openemm/temp/Preview/google.png
OpenEMM config:

Code: Select all

================================
= OpenEMM Installer v19.10.001 =
================================
Host: hidden
Runtime Version: 19.10.009.012
Manual Version: Unknown
OpenEMM Version: 19.10.000.133
System-Url: http://hidden.fq.dn
OpenEMMBackend Version: 19.10.000.128
wktohtmlxxx-packages are ok, I think:

Code: Select all

[openemm@hidden ~]$ /usr/local/bin/wkhtmltoimage -V
wkhtmltoimage 0.12.5 (with patched qt)
Any help would be appreciated. Thanks!

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF files OpenEmm 2019

Post by Andrey » Mon Mar 02, 2020 4:19 pm

Hi,

I have initially about 7GB of the total disk space. After installing the system and all apps from manual and starting the mailing - the free space soon filled up and the mails start not generating.
I'll rebooted the server and founded that the MySQL did not start, so only after some time I cleaned some huge logs and successfully added up to 30GB disk storage.
Also I've changed the database user name to the default - openemm .
So the recommendation about the disk space would be great.
maschoff wrote:
Sat Feb 22, 2020 7:09 pm
With storage space you mean disk space? Did you get an error message indicating a lack of space? If so, what was the message and wehere did it appear? I might add this to the documentation.
Have found some errors in the mariadb log

Code: Select all

2020-02-22 14:35:46 139906774087424 [ERROR] mysqld: Disk full (/var/tmp/#sql_543_0.MAI); waiting for someone to free some space... (
errno: 28 "No space left on device")
Also have some errors like

Code: Select all

2020-02-22 14:35:02 139906774701824 [Warning] Aborted connection 16 to db: 'openemm' user: 'openemm_user' host: 'localhost' (Got an
error reading communication packets)
I can send other log if any required.

maschoff
Site Admin
Posts: 2262
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Empty PDF files OpenEmm 2019

Post by maschoff » Tue Mar 03, 2020 6:40 pm

Thanks for your feedback, We will check how to extend the docs to cover this issue.
OpenEMM Maintainer

Andrey
Posts: 15
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF files OpenEmm 2019

Post by Andrey » Thu Mar 05, 2020 2:53 pm

Thank you for support!
maschoff wrote:
Tue Mar 03, 2020 6:40 pm
Thanks for your feedback, We will check how to extend the docs to cover this issue.
If it possible to implement the free space indicator on the dashboard or before sending the large amount of mails or etc. to prevent disk full problem? Would be great)

maschoff
Site Admin
Posts: 2262
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Empty PDF files OpenEmm 2019

Post by maschoff » Mon Mar 09, 2020 6:03 pm

I think the system status menu would be the right place to show the free disk space. We will put it on our roadmap.
OpenEMM Maintainer

Post Reply