I'm getting a 504 Gateway Time-out when I try to export to PDF.
this is the stack trace:
08-Nov-2020 15:40:07.040 WARNING [Catalina-utility-2] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-6] (id=) has been active for [64,184] milliseconds (since [11/8/20 3:39 PM]) to serve the same request for [****/spaces/flyingpdf/pdfpageexport.action?pageId=327726] and may be stuck (configured threshold for this StuckThreadDetectionValve is  seconds). There is/are  thread(s) in total that are monitored by this Valve and may be stuck.
at email@example.com/java.net.PlainSocketImpl.socketConnect(Native Method)
at firstname.lastname@example.org/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at email@example.com/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at firstname.lastname@example.org/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at email@example.com/java.net.SocksSocketImpl.connect(Unknown Source)
this leads to the assumption that the export is too big to execute in a timely manner leading to a timeout. Probably (while not sure) this is related to a memory shortage but it needs further inspection.
Does this happen recently "at once" or did you upgrade Confluence before?
Could you please share some basic specs about your instance (number of spaces/pages/users + amount of memory assigned to the JVM would be helpful)?.
Please also review the following article if it matches:
In case you could provide more details a Confluence-versed user here on Community might be able to advise with more details.
Thank you for the response.
I looked over this article and there is no problem with the server memory.
I also changed the configurations for the timeout in Nginx on the server and it still fails (after long minutes)
The current Confluence setup is on a new server but the old setup was running on a similar server but I didn't have those issues with the export.
Is it in your case also given that the PDF is correctly stored in temp folder (despite the UI is showing an error) as documented in this bug?
Are there error messages in logs that correspond to the information put in the bug report?
A more general question: which version of Confluence is it exactly you are running?
The temp folder does not contain the PDF:
as for the logs, this is the only log I can see:
11-Nov-2020 12:37:19.288 WARNING [Catalina-utility-2] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-2] (id=) has been active for [66,948] milliseconds (since [11/11/20 12:36 PM]) to serve the same request for [https://URL/spaces/flyingpdf/pdfpageexport.action?pageId=2850818] and may be stuck (configured threshold for this StuckThreadDetectionValve is  seconds). There is/are  thread(s) in total that are monitored by this Valve and may be stuck.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events