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

unable to connect to elasticsearch #367

Open
sumukhchitloor opened this issue Jan 15, 2023 · 4 comments
Open

unable to connect to elasticsearch #367

sumukhchitloor opened this issue Jan 15, 2023 · 4 comments

Comments

@sumukhchitloor
Copy link

Hey,
I've followed the installation steps and guide given in the wiki page but when ever I try to run the ohp.py I'm getting the "unable to connect to elasticsearch" error elastic search is working on my local machine

image

@kuttykut3
Copy link

Have you solved this error? I have the same error now and can't find a solution.. Need help

@sumukhchitloor
Copy link
Author

Have you solved this error? I have the same error now and can't find a solution.. Need help

No :(

@laladee
Copy link

laladee commented Mar 9, 2023

@kuttykut3 @sumukhchitloor
There was a bug at:
https://github.com/OWASP/Python-Honeypot/blob/master/core/compatible.py#L91-L92

You need to replace the second argument with api_database_http_auth

        connection = elasticsearch.Elasticsearch(
            hosts=api_config["api_database"],
            http_auth=api_config["api_database_http_auth"]
        )

@snehadiwakar
Copy link

what version of elastic search do you have installed?

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

No branches or pull requests

4 participants