ScoutSuite icon indicating copy to clipboard operation
ScoutSuite copied to clipboard

GCP folder scan - OSError: [Errno 24] Too many open files

Open MichalMarchewka opened this issue 4 years ago • 3 comments

Hello, I am trying to implement the ScoutSuite tool on our production environment (Google Cloud Platform). I need to scan three different GCP folders which contains multiple projects:

  • folder 1 | 13 projects | scan successful
  • folder 2 | 8 projects | scan successful
  • folder 3 | ~200 projects | scan unsuccessful, error

The error message is "OSError: [Errno 24] Too many open files". I tried to implement the solution which changes the number of possible open files on Linux but it does not help. Is there any solution for this issue?

scoutsuite-error.txt

MichalMarchewka avatar Feb 18 '21 13:02 MichalMarchewka

https://github.com/nccgroup/ScoutSuite/wiki/FAQ#im-getting-a-oserror-errno-24-too-many-open-files-error isn't working?

x4v13r64 avatar Feb 19 '21 18:02 x4v13r64

Unfortunately not. Even when I run the scan specifying the service (eg "--service iam") the report is generated but it is not accessible via HTML (can't expand the categories).

Please note that this issue occurs if I setup ScoutSuite using virtualenv either just cloning the repo and manually installing all dependencies.

MichalMarchewka avatar Feb 23 '21 16:02 MichalMarchewka

Isn't that a separate issue though, namely https://github.com/nccgroup/ScoutSuite/issues/226?

x4v13r64 avatar Feb 23 '21 17:02 x4v13r64

Following up on https://github.com/nccgroup/ScoutSuite/issues/226.

fernando-gallego avatar Sep 12 '22 11:09 fernando-gallego

Have we fixed this in the code rather than increasing the ulimit?, there is only to certain extent we can increase the ulimit

MaheshMallikar avatar Apr 14 '23 06:04 MaheshMallikar