Homeland 安装报错 Failed to open TCP connection to elasticsearch:9200 (getaddrinfo: Name does not resolve)

memoryliang-github · 2020年06月30日 · 2133 次阅读

具体错误提示如下:请问如何解决


#>

/usr/local/lib/ruby/2.7.0/net/http.rb:960:in initialize' /usr/local/lib/ruby/2.7.0/net/http.rb:960:inopen' /usr/local/lib/ruby/2.7.0/net/http.rb:960:in block in connect' /usr/local/lib/ruby/2.7.0/timeout.rb:95:inblock in timeout' /usr/local/lib/ruby/2.7.0/timeout.rb:105:in timeout' /usr/local/lib/ruby/2.7.0/net/http.rb:958:inconnect' /usr/local/lib/ruby/2.7.0/net/http.rb:943:in do_start' /usr/local/lib/ruby/2.7.0/net/http.rb:932:instart' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:152:in request_via_request_method' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:137:inrequest_with_wrapped_block' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:128:in perform_request' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:70:inblock in call' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/adapter.rb:60:in connection' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:68:incall' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in build_response' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/connection.rb:492:inrun_request' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/elasticsearch-transport-7.6.0/lib/elasticsearch/transport/transport/http/faraday.rb:27:in block in perform_request' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/elasticsearch-transport-7.6.0/lib/elasticsearch/transport/transport/base.rb:274:inperform_request' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/elasticsearch-transport-7.6.0/lib/elasticsearch/transport/transport/http/faraday.rb:24:in perform_request' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/elasticsearch-transport-7.6.0/lib/elasticsearch/transport/client.rb:163:inperform_request' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/elasticsearch-api-7.6.0/lib/elasticsearch/api/actions/index.rb:64:in index' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/elasticsearch-model-7.1.0/lib/elasticsearch/model/indexing.rb:377:inindex_document' /home/app/homeland/app/jobs/search_indexer.rb:25:in perform' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/execution.rb:40:inblock in perform_now' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:112:in block in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.3/lib/i18n.rb:313:inwith_locale' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/translation.rb:9:in block (2 levels) in <module:Translation>' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:ininstance_exec' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:in block in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/core_ext/time/zones.rb:66:inuse_zone' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/timezones.rb:9:in block (2 levels) in <module:Timezones>' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:ininstance_exec' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:in block in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/logging.rb:25:inblock (4 levels) in module:Logging' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:180:in block in instrument' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications/instrumenter.rb:24:ininstrument' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/notifications.rb:180:in instrument' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/logging.rb:24:inblock (3 levels) in module:Logging' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/logging.rb:45:in block in tag_logger' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/tagged_logging.rb:80:inblock in tagged' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/tagged_logging.rb:28:in tagged' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/tagged_logging.rb:80:intagged' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/logging.rb:45:in tag_logger' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/logging.rb:21:inblock (2 levels) in module:Logging' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:in instance_exec' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:inblock in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:139:in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/execution.rb:39:inperform_now' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/execution.rb:25:in block in execute' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:112:inblock in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/railtie.rb:43:in block (4 levels) in <class:Railtie>' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:inwrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/reloader.rb:72:in block in wrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:84:inwrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/reloader.rb:71:in wrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/railtie.rb:42:inblock (3 levels) in class:Railtie' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:in instance_exec' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:121:inblock in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:139:in run_callbacks' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/execution.rb:23:inexecute' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activejob-6.0.3.1/lib/active_job/queue_adapters/sidekiq_adapter.rb:42:in perform' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:196:inexecute_job' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:164:in block (2 levels) in process' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/middleware/chain.rb:133:ininvoke' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:163:in block in process' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:136:inblock (6 levels) in dispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/job_retry.rb:111:in local' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:135:inblock (5 levels) in dispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/rails.rb:43:in block in call' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:inwrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/reloader.rb:72:in block in wrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:inwrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.1/lib/active_support/reloader.rb:71:in wrap' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/rails.rb:42:incall' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:131:in block (4 levels) in dispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:257:instats' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:126:in block (3 levels) in dispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/job_logger.rb:13:incall' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:125:in block (2 levels) in dispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/job_retry.rb:78:inglobal' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:124:in block in dispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/logger.rb:10:inwith' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/job_logger.rb:33:in prepare' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:123:indispatch' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:162:in process' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:78:inprocess_one' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:68:in run' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:15:inwatchdog' /home/app/homeland/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:24:in `block in safe_thread'

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号