JIRA Calendar Read Timed Out

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Team Calendars is unable to create a JIRA calendar despite a functioning application link.

The following appears in the atlassian-confluence.log:

ERROR [http-8090-10] [extra.calendar3.calendarstore.JiraCalendarDataStore] doInTransaction Unable to get query options from linked JIRA application 6320c79b-dbbf-3058-803f-9babc606a878
– url: /confluence/rest/calendar-services/1.0/jira/6320c79b-dbbf-3058-803f-9babc606a878/query/options.json | userName: xxxx | referer:http://jira.yyyyy.com/confluence/calendar/mycalendar.action
com.atlassian.sal.api.net.ResponseException: java.net.SocketTimeoutException: Read timed out

This error is logged after selecting one of the Jira event types in the event creation popup.

Diagnosis

Visit the following URL and count the number of seconds it takes to process the request.

 http://<jira_base_url>/rest/ical/1.0/ical/config/query/options

If the request takes longer than 10 seconds you are affected by this issue, and you can proceed with the workaround.

Cause

The default timeout for a Team Calendars for Confluence request is 10 seconds. We are exceeding that request interval and seeing the "Read timed out" in the logs

Workaround

Add the flag below to your system properties. This extend the timeout to 30 seconds.

-Dcom.atlassian.confluence.extra.calendar3.jira.timeout.socket=30000

Reference Configuring System Properties to see how to do this for your particular instance

Notes

The cause of this issue is a scalability problem related to that particular endpoint. As the instance grows, it takes more time to respond which eventually exceeds the timeout. This is covered in the following bug report:

Last modified on Mar 21, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.