scanoss / scanoss.py

The SCANOSS python package providing a simple, easy to consume library for interacting with SCANOSS APIs/Engine.
MIT License
27 stars 19 forks source link

TIMEOUT Connection Error when scanning large files (~200M) #22

Closed DRong1121 closed 1 year ago

DRong1121 commented 1 year ago

Currently, I have built my own OSSKB, installed the scan engine, and the API (with WAYUU).

I try to use the SCANOSS-PY command line tool to scan 200M code files. The command I have used is: scanoss-py scan --apiurl [http://192.168.6.163:4443/api/scan/direct --no-wfp-output -o /home/results/200M_CODE_163.json /home/projects/200M_CODE

However, I got the WARNING and the ERROR below:

image image

Before that, I tried to scan small files (~40K, ~20M, ~100M), and I got no WARNINGS and ERRORS. I double-checked my KB, engine, API, they are in work condition. So, what is the root cause of the Connection Error and Timeout Error? I am confused......

eeisegn commented 1 year ago

Hey,

The WAYUU API service code is now deprecated and we recommend switching to the new API.go implementation.

What version of the scanoss-py version are you using?

Do you have this deployed behind a Load Balancer? Do you see any errors in the WAYUU logs?

Thanks, SCANOSS.