Timeout when Jenkins pushes to testlink with attachements

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Timeout when Jenkins pushes to testlink with attachements

Post by tristanisrael »

Hi,

My testlink version is version 1.9.13

I'm using jenkins with testlink plugin to execute tests and push the result to Testlink. Until the past week it's been working like a charm, meaning that the execution of the test plan was set OK/KO for each test case, including the JUNIT XML file attachement into testlink.

Now I have to disable the inclusion of the attachement from Jenkins otherwise the XML/RPC call is aborted due to timeout and the following error:

Code: Select all

Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse server's response: Expected methodResponse element, got br
	at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:188)
	at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
	at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
	at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
	at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90)
then

Code: Select all

Caused by: org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Service Unavailable
	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:94)
	at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:152)
	at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
	at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
	at br.eti.kinoshita.testlinkjavaapi.BaseService.executeXmlRpcCall(BaseService.java:90)
Do you have any idea about what's happening ?
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Re: Timeout when Jenkins pushes to testlink with attachement

Post by tristanisrael »

OK I found the problem, here it is:
- the temporary folder contained 63209 files tl-*.log
- when the function uploadExecutionAttachment() was called, it tried to create a temporary file but it was very long (call to php function tempnam()).

Then the call goes to timeout.

Should I file a bug ? I don't know if the problem is related to the removal of temporary files or other errors. Maybe a purge should be programmed (internally or externally from testlink)
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Timeout when Jenkins pushes to testlink with attachement

Post by fman »

If you are able to reproduce using OUR PHP Clients (is the only way Dev Team tests API), fill an issue on mantis.

ANyway it will be better is you upgrade to 1.9.14 (will not fix this, but a lot of other things)
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Re: Timeout when Jenkins pushes to testlink with attachement

Post by tristanisrael »

Ok I'll try to reproduce with php API.
I cannot upgrade to 1.9.14 as I already downgraded from 1.9.14 due to bugs (test cases going from one testsuite to another randomly).
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Timeout when Jenkins pushes to testlink with attachement

Post by fman »

if you do not report issue you have experience on 1.9.14 who is going to solve it ?
if you report issue on 1.9.13, first thing I will request is upgrade to 1.9.14 and reproduce it
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Re: Timeout when Jenkins pushes to testlink with attachement

Post by tristanisrael »

I understand but I'm in a design and building phase. I was not able to report because I had to downgrade recently and clean the database.
I won't be able to upgrade once again because of the bug but (when I'll have more time) I'll do a new installation on another server with 1.9.14. And I'll reproduce the bug with the test cases in order to report an issue.

Regards
Post Reply