Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout export PDF

Deleted user May 14, 2020

Hello,

I'm currently on a eval-license to test if confluence is for my needs.

So far all works as expected. I face currently only on issue.

Export to PDF is unusable. I try to export a very simple page, only a few lines of text on it. Most times it run in a timeout(180 seconds), sometimes it works, but took also very long time(2 minutes)

On the server i see at beginning a short spike for a few seconds on CPU, then idle. So it can't be CPU bounded.

Export to Word works immediately.

Running on

Confluence 7.4

VM (KVM) with 4 vCPUs 8 GB Memory

Centos 8.1

OpenJDK Java 11.

In front of confluence runs a nginx as reverseproxy.


Any idea, if it a configuration problem, or a bug?

1 answer

0 votes
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020

Hi @[deleted] !

Could you please find the log entries associated with the process of export and post them here?

Under the System information there should be a line indicating where your log files might be at.

Deleted user May 14, 2020

Hi,

here the a part of  the output from the error-page. The hole stacktrace is to long for here. I see only the timeout problems in the log. The complete log output are to much for here to post. Maybe one problem in my case is, it use the Datacenter process, which i will definitely not use. I'll go only for the 10 User license.

Cause

java.lang.RuntimeException: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. The page "RSPAMD - howto reset statistics and reboot bayes training" took too long to convert. <a href="https://docs.atlassian.com/confluence/docs-74/PDF+export+in+Confluence+Data+Center">Learn more</a>
at com.atlassian.confluence.extra.flyingpdf.impl.ExportPageAsPdfAction.doExecute(ExportPageAsPdfAction.java:56)

caused by: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. The page "RSPAMD - howto reset statistics and reboot bayes training" took too long to convert. <a href="https://docs.atlassian.com/confluence/docs-74/PDF+export+in+Confluence+Data+Center">Learn more</a>
at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxXmlToPdfConverter.convertXhtmlToPdf(SandboxXmlToPdfConverter.java:101)

caused by: com.atlassian.confluence.util.sandbox.SandboxTimeoutException: Sandbox request has been killed because it exceeded time limit of 180 seconds
at com.atlassian.confluence.impl.util.sandbox.SandboxProcess.tryToThrowSpecificException(SandboxProcess.java:227)

caused by: java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)

Deleted user May 14, 2020

Hi, can here only provide a short of the output due to length limitation here.

 

java.lang.RuntimeException: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. The page "RSPAMD - howto reset statistics and reboot bayes training" took too long to convert. <a href="https://docs.atlassian.com/confluence/docs-74/PDF+export+in+Confluence+Data+Center">Learn more</a>
at com.atlassian.confluence.extra.flyingpdf.impl.ExportPageAsPdfAction.doExecute(ExportPageAsPdfAction.java:56)

caused by: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. The page "RSPAMD - howto reset statistics and reboot bayes training" took too long to convert. <a href="https://docs.atlassian.com/confluence/docs-74/PDF+export+in+Confluence+Data+Center">Learn more</a>
at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxXmlToPdfConverter.convertXhtmlToPdf(SandboxXmlToPdfConverter.java:101)

caused by: com.atlassian.confluence.util.sandbox.SandboxTimeoutException: Sandbox request has been killed because it exceeded time limit of 180 seconds
at com.atlassian.confluence.impl.util.sandbox.SandboxProcess.tryToThrowSpecificException(SandboxProcess.java:227)

caused by: java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)

Deleted user May 14, 2020

Hi @Grigory Salnikov,

short output from the error-page. Attachement here not possible, so it would be to much to put the complete logfiles here or even parts of it.

 

java.lang.RuntimeException: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. The page "RSPAMD - howto reset statistics and reboot bayes training" took too long to convert. <a href="https://docs.atlassian.com/confluence/docs-74/PDF+export+in+Confluence+Data+Center">Learn more</a>
at com.atlassian.confluence.extra.flyingpdf.impl.ExportPageAsPdfAction.doExecute(ExportPageAsPdfAction.java:56)

caused by: com.atlassian.confluence.importexport.ImportExportException: We couldn't complete your export. The page "RSPAMD - howto reset statistics and reboot bayes training" took too long to convert. <a href="https://docs.atlassian.com/confluence/docs-74/PDF+export+in+Confluence+Data+Center">Learn more</a>
at com.atlassian.confluence.extra.flyingpdf.sandbox.SandboxXmlToPdfConverter.convertXhtmlToPdf(SandboxXmlToPdfConverter.java:101)

caused by: com.atlassian.confluence.util.sandbox.SandboxTimeoutException: Sandbox request has been killed because it exceeded time limit of 180 seconds
at com.atlassian.confluence.impl.util.sandbox.SandboxProcess.tryToThrowSpecificException(SandboxProcess.java:227)

caused by: java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)

Deleted user May 14, 2020

Hi @Grigory Salnikov 

somehow it hard to post here some stacktraces...

i got in the error page mainly the following

caused by: com.atlassian.confluence.util.sandbox.SandboxTimeoutException: Sandbox request has been killed because it exceeded time limit of 180 seconds
at com.atlassian.confluence.impl.util.sandbox.SandboxProcess.tryToThrowSpecificException(SandboxProcess.java:227)

caused by: java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)

 

much longer in the log-files.

Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2020
Deleted user May 20, 2020

Hi,

haven't deeper dived in this problem. I replaced the license with a server-license instead of the datacenter one(was by created by accident). Now it works as expected fast.

There might be something special to configure to setup the datacenter version correct. But this is out of my scope.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events