deepdetect icon indicating copy to clipboard operation
deepdetect copied to clipboard

TCP error 104

Open vd3d opened this issue 5 years ago • 4 comments

Hi,

Problem description

I have a DD instance running on Debian with docker (CPU only), but when calling the "predict" endpoint I receive a TCP error code 104 ( Connection reset by peer).

I test on my local machine and it seems to work !

Here is the request on the predict API

{
    "service":"imageserv",
    "parameters":{
        "input":{
            "width":224,
            "height":224
        },
        "output":{
            "best":3
        },
        "mllib":{
            "gpu":false
        }
    },
    "data":[
        "https://cdn.socloze.com/cdn/e_b3ddc575-2b50-40e2-a214-a221d657683e/024e005788a53365323b39f6ec313ea2.jpg"
    ]
}

Observations

Even in the worst case, I should receive an error... the DD server should not close the connection, right ?

I checked the logs and sometimes I got this, without any additional info:

l5sm0 [2020-08-25 16:54:50.150] [api] [error] 10.0.4.219 "POST /services/imageserv" 500 2

Notices

Error 104 :

This can happen if the other side crashes and then comes back up or if it calls close() on the socket while there is data from you in transit, and is an indication to you that some of the data that you previously sent may not have been received.

vd3d avatar Aug 25 '20 17:08 vd3d

Hi, you'd need to post your API calls, etc as requested in the issue template. Thanks!

beniz avatar Aug 25 '20 17:08 beniz

Done. Sorry ;-)

vd3d avatar Aug 25 '20 17:08 vd3d

Still any idea of the problem ?

vd3d avatar Aug 28 '20 06:08 vd3d

You really need to post all docker and API calls, output logs, etc... so someone can try to reproduce to help you. Otherwise if you put yourself in our seat, it is difficult to understand what you are doing here. So it works on your laptop, but doesn't elsewhere ? Have you checked you have the same memory etc...

beniz avatar Aug 30 '20 09:08 beniz