Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Large scan files #73

Open
mcsmith2150 opened this issue Jan 15, 2021 · 6 comments
Open

Large scan files #73

mcsmith2150 opened this issue Jan 15, 2021 · 6 comments

Comments

@mcsmith2150
Copy link

What changes can I make to increase the file size to scan. I am uploading 300mb file to scan and scanner stops working

@volodymyrsmirnov
Copy link
Owner

Hello,

As mentioned in README, you can control timeouts and file size limitations via environment variables.

Edit docker-compose.yaml and add following environment variables:

  1. FILE_SIZE_LIMIT=52428800 to the api service where 52428800 is the maximum file size in bytes.
  2. MAX_SCANNING_TIME=60 to all scanners where 60 is the maximum duration scanner can scan the file.

Hope that helps.

@mcsmith2150
Copy link
Author

mcsmith2150 commented Jan 27, 2021 via email

@volodymyrsmirnov
Copy link
Owner

I'll try tonight and let you know. Meanwhile, could you please confirm if that happens with a particular file or any file bigger than 200 MB?

As to the environment variables, you should add them in docker-compose.yaml for api and all scanners unless you are rebuilding docker-compose file from scratch.

@mcsmith2150
Copy link
Author

mcsmith2150 commented Jan 27, 2021 via email

@mcsmith2150
Copy link
Author

Good Afternoon,

I just wanted to let you know I made the changes:
Edit docker-compose.yaml and add following environment variables:

FILE_SIZE_LIMIT=52428800 to the api service where 52428800 is the maximum file size in bytes.
MAX_SCANNING_TIME=60 to all scanners where 60 is the maximum duration scanner can scan the file.

I even changed the 52428800 to 0 so it would not verify file size but when I try to scan a file that is 200MB the bar stops half way and I even increased the MAX_SCANNING_TIME=20000 and still have issues, let me know if there is anything I can do to scan.

@h45h-1nclud3
Copy link

Maybe try to do the following after adding the changes

docker-compose build --no-cache

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants