Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOG throws errors, won't work on localhost #2828

Closed
davodogster opened this issue Feb 18, 2021 · 13 comments
Closed

IOG throws errors, won't work on localhost #2828

davodogster opened this issue Feb 18, 2021 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@davodogster
Copy link

davodogster commented Feb 18, 2021

My actions before raising this issue

Deploy Complete:
image

image

image

I'm running cvat and nuctl in WSL2

Expected Behaviour

IOG Works and auto segments

Current Behaviour

Throws these errors:

image

Some of the nuclio pre trained models inside CVAT have worked for me before so that is not the issue.

Are you able to please fix this?

Cheers,

Sam

EDIT: It throws the same error when I deploy CVAT on localhost 8080 (instead of 7080) I just tried it.

@nmanovic
Copy link
Contributor

@davodogster , could you please send me logs of the IOG container? In the screenshot it is c3121fe...

@nmanovic nmanovic self-assigned this Feb 18, 2021
@nmanovic nmanovic added the bug Something isn't working label Feb 18, 2021
@nmanovic nmanovic added this to the 1.3.0-beta milestone Feb 18, 2021
@davodogster
Copy link
Author

davodogster commented Feb 18, 2021

@nmanovic Hope this helps. Let me know if you need anymore info.

image

image

EDIT: I must note, That container just keeps restarting, as you can probably tell from the log

@nmanovic
Copy link
Contributor

@davodogster , the error is shown in logs:

No such file or directory: .../IOG_PASCAL_SBD.pth

At the same time I see that in your first message the build was successful. Could you please run commands below?

docker exec -it c3121fe bash
cd /opt/nuclio/iog
du -h IOG_PASCAL_SBD.pth
conda activate iog
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"
echo "/download/ {print \$NF}" > confirm_code.awk
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk -f confirm_code.awk ./cookie`&id=${fileid}" -o ${filename}
du -h IOG_PASCAL_SBD.pth

Send all logs after commands above. The code above has to download IOG_PASCAL_SBD.pth from google drive. I believe on your machine it will fail silently.

@davodogster
Copy link
Author

davodogster commented Feb 21, 2021

Hi @nmanovic

The Container just keeps restarting so I am unable to bash into it. (That was a docker images command above, not docker container ls)
image
image

I will note that I had to use the curl "-k" arg for the model download in the .yaml file because otherwise I cannot download the .pth model due to a firewall/block.

Output on container deployment
image

@nmanovic
Copy link
Contributor

@davodogster , does it mean that you solve the problem using '-k' argument? Unfortunately, firewall is a complex topic. I'm not sure that we can solve it somehow (insecure connection isn't a valid solution for mainstream code). Do you have any common solutions in your mind which will cover your case as well?

@davodogster
Copy link
Author

hi @nmanovic I have to use -k to get the curl command to work, and the container to deploy, but it doesn't fix everything because the container just keeps restarting when I deploy it and it gives the error logs that I attached above.

@davodogster
Copy link
Author

davodogster commented Mar 1, 2021

Hi @nmanovic
Now I can get the container running and not restarting, But in the CVAT tool it still gives the same error as previously.

image

image

Nuclio is running here:
image

There are no logs this time (I checked in docker desktop)

image

@nmanovic nmanovic removed this from the 1.3.0-beta milestone Mar 8, 2021
@nmanovic nmanovic added this to the Backlog milestone Mar 8, 2021
@fjean
Copy link

fjean commented Mar 11, 2021

Any news on this issue? I have the same issue, and I found out that the error "Request failed with status code 500" happens because there is an exception KeyError at https://github.com/openvinotoolkit/cvat/blob/develop/serverless/pytorch/shiyinzhang/iog/nuclio/main.py#L23, there is no key pos_points. After verification, the only keys in data are points and image.

@nmanovic
Copy link
Contributor

@fjean , you need to update your instance till develop version.

docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
docker-compose up -d

@davodogster
Copy link
Author

@nmanovic and what about me?

@omognuni
Copy link

omognuni commented Mar 18, 2021

@davodogster I had same problem. I solved it by changing localhost port. Add port number in function.yaml port: (port number except 0). i added 32001 from nuclio doc

triggers:
   myHttpTrigger:
     maxWorkers: 1
     kind: 'http'
     workerAvailabilityTimeoutMilliseconds: 10000
     attributes:
       port: 32001 <----- add this
       maxRequestBodySize: 33554432 # 32MB

i don't know the reason but docker ps -a showed function port number 0.0.0.0:5819 ->8080/tcp, but it actually was using port number 0

@nmanovic
Copy link
Contributor

@davodogster , I cannot help to resolve local firewall problems. I will recommend to run commands from function.yaml without docker. If you can reproduce the issue without docker, ask your local administrator to setup your firewall properly.

@nmanovic
Copy link
Contributor

I hope the issue was resolved. Let's reopen it if we know how to reproduce. IOG works in my case without any problems. We are not able to help with local firewall configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants