TestProject Forum
Powered by leading experts in the test automation community

Connectivity issue

When I try to make a new connection, this error appears:

2020-06-29 14:53:00.256 iHoZkjIEoUGDRfvFtiXeWQ INFO 9488 idle-entry i.t.a.d.a.A Account plan: Free
2020-06-29 14:53:00.256 iHoZkjIEoUGDRfvFtiXeWQ INFO 9488 idle-entry i.t.a.a Heartbeat State: Idle
2020-06-29 14:53:05.390 iHoZkjIEoUGDRfvFtiXeWQ ERROR 9488 idle-entry i.t.a.a.b.d Failed to report application state: Idle
java.util.concurrent.ExecutionException: javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Connect timed out
at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at io.testproject.agent.a.b.d.a(TestProjectAgent:870)
at io.testproject.agent.a.a(TestProjectAgent:596)
at io.testproject.agent.d.a.B.a(TestProjectAgent:124)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.testproject.agent.b.b.run(TestProjectAgent:33)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Connect timed out
at org.glassfish.jersey.client.internal.HttpUrlConnector$3.run(HttpUrlConnector.java:299)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:293)
at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:178)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:210)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
… 3 common frames omitted
Caused by: java.net.SocketTimeoutException: Connect timed out
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:339)
at java.base/java.net.Socket.connect(Socket.java:603)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:265)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:177)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:163)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1362)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1337)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:220)
at org.glassfish.jersey.client.internal.HttpUrlConnector$4.getOutputStream(HttpUrlConnector.java:385)
at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:200)
at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:194)
at org.glassfish.jersey.message.internal.CommittingOutputStream.write(CommittingOutputStream.java:228)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$UnCloseableOutputStream.write(WriterInterceptorExecutor.java:299)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:1848)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator.flush(UTF8JsonGenerator.java:1041)
at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:854)
at com.fasterxml.jackson.jaxrs.base.ProviderBase.writeTo(ProviderBase.java:650)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1130)
at org.glassfish.jersey.client.ClientRequest.writeEntity(ClientRequest.java:502)
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:388)
at org.glassfish.jersey.client.internal.HttpUrlConnector.access$000(HttpUrlConnector.java:96)
at org.glassfish.jersey.client.internal.HttpUrlConnector$3.run(HttpUrlConnector.java:297)
… 20 common frames omitted

Hello @carmelo.gascon
Can you please send the entire logs folder to support@testproject.io
Also what devices are you trying to connect and run the tests on?

Hi @ran.tzur,
The devices are: 1 Xiaomi mi A2, 1 Pixel 4, 1 Galaxy S7, 1 iPhone XR.
I’ve seen that after the error appears, the agent state continues in “Development”, it doesn’t return to “Ready”

logs

Hi @ran.tzur,
Update: without been doing anything (not even testing or develoing), the agent has restarted

(New) Logs

Hey carmelo!

Your issue is being taken care of by our development team.
We will contact you once we have updates for you! :pray:t4:

Hi @tzah.mazuz_prod,
for your info, I’ve installed agent 0.63.2 version, and it continues happening.

Logs

OK, i don’t have any updates on this yet.

Does this prevents you from working entirely with the Agent?

Hi @tzah.mazuz_prod,

At the moment no, we are doing tests separating the devices in mor computers to see if everything works better.

Hello @carmelo.gascon
This issues should be fixed with the new agent version 0.63.3
Please update your agent and let us know if the issue persists.

Hi @ran.tzur,
Today, the connectivity issues have appeared again.

It has happened to us in two different agents with two different devices. I have managed to launch one of them by restarting the computer / agent / terminal, but the other continues to fail.

Logs

Hello @carmelo.gascon
Thanks we will investigate.

hi @ran.tzur,
update: This is happening only in iPhone XR (we have 2 devices connected to 2 different agents).

Thanks @carmelo.gascon
What Version of iOS is it running?

Also you can try to restart your mobile device and agent, it should help.

Hi @ran.tzur,
The devices have iOS 13.4.1.
after restarting the device the agent has reconnected, it’s the only thing I hadn’t done (we had restarted the computer, the agent …), I write it down for troubleshooting
Regards

Hi @ran.tzur,
Update: after a couple of minutes, the connection with the devices is lost again, to be achieved again without doing anything. There is something strange here… :pensive:

Log_1
Log_2

Thanks @carmelo.gascon
We are on it with high priority.

Hi @ran.tzur,
We’ve seen that there is an agent update (0.63.4), we’ve update the agent, but the issue still appears.

logs

Hi @ran.tzur,
have you been able to make any progress?
Can I help you with something?

Hello @carmelo.gascon we are on it and we will update you tomorrow.