Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Jira_REST Plugin problem


#1

Hello,

we have a problem with pushing test result to jira

we are using latest version of jira (5.2.x) hosted on our servers

We get this error message.

“Plugin “Jira_REST” returned an error: connect() timed out!”

and this is the system log

[HttpException] connect() timed out!

Details:
File: /var/www/sys/helpers/ex.php
Line: 23
Status Code: 500
Host: xxxxxxxxxxxxxx
Uri: /index.php?/defects/ajax_prepare_push (POST)

Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
PHP: 5.3.10-1ubuntu3.6
Server: Linux 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64

status_id: 1
assignedto:
comment:
attachments:
version:
elapsed: 1s
defects:
custom_devices: 1
project_id: 1
test_ids: 44
_token: 737e32bb511e1014cedd5672bd8d23da
_version: 2.7.1.2102

Trace:
at ex::raise (ex.php:23)
at ex::raise (http.php:195)
at http::request_ex (Jira_REST.php:1107)
at Jira_REST_api->_send_request (Jira_REST.php:1083)
at Jira_REST_api->_send_command (Jira_REST.php:815)
at Jira_REST_api->get_projects (Jira_REST.php:519)
at Jira_REST_defect_plugin->prepare_field (defects.php:323)
at Defects_controller->_prepare_form (defects.php:365)
at Defects_controller->ajax_prepare_push (controller.php:109)
at Controller->_invoke_web (controller.php:67)
at Controller->_invoke (gizmo.php:108)
at require_once (index.php:106)


#2

Hello Enver,

Thanks for your posting. Please make sure that the address you have entered in TestRail for your Jira server is correct and that the network/firewall allows your TestRail server to access Jira (as the defect plugin requires a direct connection from TestRail to Jira). The error message indicates a network related issue ("[HttpException] connect() timed out!"). Do you have an IT person that could help with this?

Thanks again and please let me know in case you have any further questions.

Regards,
Tobias