-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ValueError: unknown reasons (During run application on EC2 RedHat) #248
Comments
That's an odd error, can you maybe see if it's reproducible in a centos docker container so I can debug it a little easier? |
On Win 10 everything works good. |
So, I installed locally vm with centos and pulled your docker file, then run command and it works |
On EC2 RedHat thru docker works too. But I just do not have permissions to use docker on our RedHat EC2, thats an issue too. |
UPDATE:
Co-authored-by: Dylan Ayrey dxa4481@rit.edu
|
@RepositoryOfCode I don't know what trufflehog3 is, but it's not maintained by me |
I got it . I do not know, maybe an issue because I installed trufflehog from pip3, not from pip, when i installed it from pip i see the error : Could not find a version that satisfies the requirement GitPython==3.0.6 (from trufflehog) (from versions : 0.1.7 etc) And another error: Thats why i installed it from pip3. Maybe thats a reason of ValueError |
I think that's unrelated. I had to drop python2 support a little while ago since GitPython had backwards incompatible changes |
Maybe any ideas why i have ValueError on RedHat EC2? ) |
No it's a mystery. If you keep the ticket open I'll spin up an EC2 and test it when I get some time. One thing to try is just cloning the code locally on the ec2 and seeing if the error is thrown. And if it is maybe add print statements on line 351 to figure out what's going on with |
Ok, I will keep it open |
Hey there, we've just released the next major version of TruffleHog! It is a complete rewrite that scans more data sources and now supports detecting and verifying over 600 credentials. https://trufflesecurity.com/blog/introducing-trufflehog-v3 We're no longer maintaining v2 so I am closing this issue. |
If anyone can help I will be appreciate!
Describe the bug
Having an error during running the app on EC2 RedHat :
ValueError: unknown reasons
I installed on redhat ec2 instance trufflehog. By default there python 2.7 and 3.6
Trufflehog was installed from pip3.
pip3 freeze shows that everything installed :
gitdb==4.0.5
gitdb2==4.0.2
GitPython==3.0.6
smmap==3.0.5
truffleHog==2.2.1
truffleHogRegexes==0.0.7
After installation and running next command ( just to check does it work or not)
trufflehog --regex --entropy=False https://github.com/dxa4481/truffleHog.git
( I got next error) :
Traceback (most recent call last):
File "/usr/local/bin/trufflehog", line 11, in
sys.exit(main())
File "/usr/local/lib64/python3.6/site-packages/truffleHog/truffleHog.py", line 93, in main
surpress_output=False, branch=args.branch, repo_path=args.repo_path, path_inclusions=path_inclusions, path_exclusions=path_exclusions, allow=allow)
File "/usr/local/lib64/python3.6/site-packages/truffleHog/truffleHog.py", line 351, in find_strings
diff_hash = hashlib.md5((str(prev_commit) + str(curr_commit)).encode('utf-8')).digest()
ValueError: unknown reasons
The text was updated successfully, but these errors were encountered: