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

Error: Failed to initialize resource limits: Operation not permitted (os error 1) #170

Closed
kobenys opened this issue Apr 11, 2024 · 2 comments
Labels
bug Something isn't working ux Related to the user experience, invocation, or CLI

Comments

@kobenys
Copy link

kobenys commented Apr 11, 2024

Noseyparker scan action produce this result -
./noseyparker scan --datastore data .
Error: Failed to initialize resource limits: Operation not permitted (os error 1)

Without scan action it starts well -
./noseyparker
Nosey Parker is a command-line program that finds secrets and sensitive information in textual data and Git history.

Usage: noseyparker [OPTIONS] <COMMAND>
...

@kobenys kobenys added the bug Something isn't working label Apr 11, 2024
@bradlarsen
Copy link
Collaborator

@kobenys thanks for the report! What platform are you running on?

Adjusting the resource limits — specifically, increasing the open file limit — is done early on to avoid possible crashes later when using a high degree of parallelism and working with a large number of inputs. It's not essential to Nosey Parker operation.

I'll fix this. If attempting to adjust the resource limits at startup fails, a warning should be printed and the operation should attempt to continue on.

@bradlarsen
Copy link
Collaborator

This is fixed on main now, and will be included in the next Nosey Parker release (v0.18.0, in the next several weeks). From there, it should get picked up in Homebrew.

@bradlarsen bradlarsen added the ux Related to the user experience, invocation, or CLI label Apr 11, 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 ux Related to the user experience, invocation, or CLI
Projects
None yet
Development

No branches or pull requests

2 participants