Home > other >  Can't start searchkick reindex
Can't start searchkick reindex

Time:04-01

I can’t start reindexing, and can’t connect the elasticsearch from rails app.

pry(main)> Searchkick.server_version
ETHON: Libcurl initialized
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
Faraday::ConnectionFailed: URL using bad/illegal format or missing URL
from /Users/superchel/.rvm/gems/ruby-2.7.5/gems/typhoeus-1.4.0/lib/typhoeus/adapters/faraday.rb:106:in `block in request'

but curl connects without problems

% curl localhost:9200/_cat/health 1648594087 22:48:07 elasticsearch_superchel green 1 1 3 3 0 0 0 0 - 100.0%

please tell me what is the problem? my system MacOS Monterey M1 chip

CodePudding user response:

Have you configured your search server URL? From https://github.com/ankane/searchkick#deployment

For the search server, Searchkick uses ENV["ELASTICSEARCH_URL"] for Elasticsearch and ENV["OPENSEARCH_URL"] for OpenSearch.

CodePudding user response:

the problem was solved by updating the ethon gem from 0.12.0 to 0.15.0 version

bundle update ethon
  • Related