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

pgsync 3.1.0 dose not support some elasticsearch connection #523

Open
tangye1234 opened this issue Jan 10, 2024 · 3 comments
Open

pgsync 3.1.0 dose not support some elasticsearch connection #523

tangye1234 opened this issue Jan 10, 2024 · 3 comments

Comments

@tangye1234
Copy link

PGSync version: 3.1.0

Postgres version: any

Elasticsearch/OpenSearch version: 7.x

Redis version: any

Python version: 3.10

Problem Description:
when bootstrap
bootstrap keeps saying elasticsearch is not a supported server, but pgsync 3.0.0 dose not have this problem

Error Message (if any):

root@98a8c96750a1:/app# bootstrap
Traceback (most recent call last):
  File "/usr/local/bin/bootstrap", line 75, in <module>
    main()
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/bin/bootstrap", line 60, in main
    sync: Sync = Sync(
  File "/usr/local/lib/python3.10/site-packages/pgsync/singleton.py", line 36, in __call__
    cls._instances[key] = super(Singleton, cls).__call__(
  File "/usr/local/lib/python3.10/site-packages/pgsync/sync.py", line 88, in __init__
    self.search_client: SearchClient = SearchClient()
  File "/usr/local/lib/python3.10/site-packages/pgsync/search_client.py", line 48, in __init__
    self.__client.info()["version"]["number"].split(".")[0]
  File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/utils.py", line 402, in wrapped
    return api(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/__init__.py", line 2278, in info
    return self.perform_request(  # type: ignore[return-value]
  File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/_base.py", line 331, in perform_request
    raise UnsupportedProductError(
elasticsearch.UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product

P.S.
I use a self signed secure elastic search 7.x

@grindarius
Copy link

I am having this problem too trying to get elasticsearch 7.10 working (latest version supported by AWS OpenSearch)

@toluaina
Copy link
Owner

  • are you using Elasticsearch or OpenSearch.
  • what version are you using here.
  • For OpenSearch you would need to defined an environment variable OPENSEARCH=True

@tangye1234
Copy link
Author

  • are you using Elasticsearch or OpenSearch.
  • what version are you using here.
  • For OpenSearch you would need to defined an environment variable OPENSEARCH=True

Im using Elastic search 7.x

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

3 participants