Homeland 安装 homeland 打开域名显示服务访问异常,是用的 docker 方式安装

ladypiapia · 2017年08月21日 · 最后由 bzd 回复于 2017年10月23日 · 1700 次阅读

求解答一下

sudo make reindex

huacnlee 回复

现在出现这种错误

huacnlee 回复

问题是出在 elasticsearch?还是因为我内存不够的原因,我是 1 核 1G 的。。。。。2 核 4G 的配置也太高了吧

相同的问题

sudo make reindex 也报错,求解答 @huacnlee

[root@localhost homeland-docker]# sudo make reindex
Reindex ElasticSearch...
Starting homelanddocker_elasticsearch_1 ... 
Starting homelanddocker_memcached_1 ... 
Starting homelanddocker_memcached_1 ... done
Starting homelanddocker_redis_1 ... done
[!!!] Index does not exist (Elasticsearch::Transport::Transport::Errors::NotFound)
rake aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [text] declared on field [title]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [topic]: No handler for type [text] declared on field [title]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [text] declared on field [title]"}},"status":400}
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:202:in `__raise_transport_error'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:319:in `perform_request'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/client.rb:131:in `perform_request'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-api-5.0.4/lib/elasticsearch/api/namespace/common.rb:21:in `perform_request'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-api-5.0.4/lib/elasticsearch/api/actions/indices/create.rb:86:in `create'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-model-5.0.1/lib/elasticsearch/model/indexing.rb:232:in `create_index!'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-model-5.0.1/lib/elasticsearch/model/importing.rb:116:in `import'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/elasticsearch-rails-5.0.1/lib/elasticsearch/rails/tasks/import.rb:63:in `block (3 levels) in <top (required)>'
/var/www/homeland/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
Tasks: TOP => elasticsearch:import:model
(See full trace by running task with --trace)
make: *** [reindex] Error 1
需要 登录 后方可回复, 如果你还没有账号请 注册新账号