Test Integration Are not working

I want to run test-generation.py and test-integration.py scripts on my server but it returns socket.error: [Errno 110] Connection timed out

Anton Tananaev5 years ago

The error message is pretty self-explanatory. Script could not connect to the server.

But The server is up and I can access it through the browser

And even the login method runs succefully

Anton Tananaev5 years ago

Well, you can try to convince your computer that it's wrong and everything is working, but I would rather focus on finding which ports are not accessible and why.

I'm using docker to run the app

Here's the port attribute of my container 0.0.0.0:5000-5150->5000-5150/tcp, 0.0.0.0:5000-5150->5000-5150/udp, 0.0.0.0:80->8082/tcp

And the port 5055 is open for TCP Connections

netstat -atu | grep 5055
tcp6       0      0 [::]:5055               [::]:*                  LISTEN     
udp6       0      0 [::]:5055               [::]:*                             

So the test-generation.py should work properly, Am I wrong ?

Anton Tananaev5 years ago

I don't use Docker, so don't know if it should, but it clearly doesn't. And only thing it does it connect to localhost:5055.

I'll try to launch the test-generator.py script from the server

If I launch it from the server it works as expected

It should have a relation with port forwarding

delonbest4 years ago

If you have chosen a random, but valid, IP address and port, socket.connect() will attempt to make a connection to that endpoint. By default, if no explicit timeout is set for the socket, it will block while doing so and eventually timeout, raising exception socket.error: [Errno 110] Connection timed out. The default timeout on my machine is 120 seconds.