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

[ingestion bug] File collector fails with "operation not permitted" #1934

Open
pxp928 opened this issue May 29, 2024 · 0 comments
Open

[ingestion bug] File collector fails with "operation not permitted" #1934

pxp928 opened this issue May 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pxp928
Copy link
Collaborator

pxp928 commented May 29, 2024

Describe the bug
Running the file collector on a large dataset (100,000+) causes it to fail with the following error:

{"level":"error","ts":1716911281.6153402,"caller":"cmd/files.go:162","msg":"collector ended with error: error walking path: <private>, err: error reading file: <private>, err: <private>: operation not permitted","guac-version":"v0.6.0","documentHash":"sha256:6d9cb98ae7d595ed48b4b2156000c521019972d1d9f8119467470c0ebd6782a1","stacktrace":"github.com/guacsec/guac/cmd/guaccollect/cmd.initializeNATsandCollector.func2\n\t/home/runner/work/guac/guac/cmd/guaccollect/cmd/files.go:162\ngithub.com/guacsec/guac/pkg/handler/collector.Collect\n\t/home/runner/work/guac/guac/pkg/handler/collector/collector.go:111\ngithub.com/guacsec/guac/cmd/guaccollect/cmd.initializeNATsandCollector.func3\n\t/home/runner/work/guac/guac/cmd/guaccollect/cmd/files.go:173"}

Running it single-threaded via:

find . -name "*.json" -exec guaccollect .... "{}" \;

does not cause this issue.

Expected behavior
File collector should not fail when ingesting a large dataset

GUAC version
v0.6.0

@pxp928 pxp928 added bug Something isn't working trust issues describing providing additional information so that consumers can trust GUAC's results and removed trust issues describing providing additional information so that consumers can trust GUAC's results labels May 29, 2024
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

1 participant