{"action":"created","issue":{"url":"https://api.github.com/repos/Undev/redmine_elasticsearch/issues/17","labels_url":"https://api.github.com/repos/Undev/redmine_elasticsearch/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Undev/redmine_elasticsearch/issues/17/comments","events_url":"https://api.github.com/repos/Undev/redmine_elasticsearch/issues/17/events","html_url":"https://github.com/Undev/redmine_elasticsearch/issues/17","id":56624438,"number":17,"title":"reindex_all causes NoMethodError: undefined method `split' on nil:NilClass.","user":{"login":"sammcj","id":862951,"avatar_url":"https://avatars.githubusercontent.com/u/862951?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcj","html_url":"https://github.com/sammcj","followers_url":"https://api.github.com/users/sammcj/followers","following_url":"https://api.github.com/users/sammcj/following{/other_user}","gists_url":"https://api.github.com/users/sammcj/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcj/subscriptions","organizations_url":"https://api.github.com/users/sammcj/orgs","repos_url":"https://api.github.com/users/sammcj/repos","events_url":"https://api.github.com/users/sammcj/events{/privacy}","received_events_url":"https://api.github.com/users/sammcj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-05T03:54:40Z","updated_at":"2015-02-05T09:12:45Z","closed_at":null,"body":"* Redmine 2.6.0\r\n* Debian 7\r\n* Ruby 1.9.1 (Also tried on our default which is Rubinius 2.4.1)\r\n\r\n```\r\nroot@dev-redmine:/var/vhost/dev-redmine 1 # ELASTICSEARCH_URL='int-elastic-01:9200' bundle exec rake redmine_elasticsearch:reindex_all RAILS_ENV=production --trace\r\nLoading Rails environment for Resque\r\n** Invoke redmine_elasticsearch:reindex_all (first_time)\r\n** Invoke environment (first_time)\r\n** Execute environment\r\n** Execute redmine_elasticsearch:reindex_all\r\nRecreate index for all available search types\r\nrake aborted!\r\nNoMethodError: undefined method `split' for nil:NilClass\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializable.rb:46:in `get_namespace'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializable.rb:36:in `namespace'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:231:in `association_options_for_serializer'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:226:in `build_serializer'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:240:in `serialize'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:181:in `block in associations'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:167:in `each'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:167:in `each_with_object'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:167:in `associations'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:285:in `serializable_object'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializable.rb:16:in `block in as_json'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.19/lib/active_support/notifications.rb:125:in `instrument'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializable.rb:55:in `instrument'\r\n/var/lib/gems/1.9.1/gems/active_model_serializers-0.9.3/lib/active_model/serializable.rb:10:in `as_json'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.19/lib/active_support/json/encoding.rb:47:in `block in encode'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.19/lib/active_support/json/encoding.rb:77:in `check_for_circular_references'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.19/lib/active_support/json/encoding.rb:46:in `encode'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.19/lib/active_support/json/encoding.rb:31:in `encode'\r\n/var/lib/gems/1.9.1/gems/activesupport-3.2.19/lib/active_support/core_ext/object/to_json.rb:16:in `to_json'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/serializer_service.rb:5:in `serialize_to_json'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/app/elastic/application_search.rb:13:in `to_indexed_json'\r\n/var/lib/gems/1.9.1/gems/tire-0.6.2/lib/tire/index.rb:531:in `convert_document_to_json'\r\n/var/lib/gems/1.9.1/gems/tire-0.6.2/lib/tire/index.rb:232:in `block in bulk'\r\n/var/lib/gems/1.9.1/gems/tire-0.6.2/lib/tire/index.rb:176:in `map'\r\n/var/lib/gems/1.9.1/gems/tire-0.6.2/lib/tire/index.rb:176:in `bulk'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:52:in `block in update_search_klass_for_project'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.19/lib/active_record/relation/batches.rb:72:in `find_in_batches'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:51:in `update_search_klass_for_project'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:20:in `block (2 levels) in reindex_all'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:19:in `each'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:19:in `block in reindex_all'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:43:in `call'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:43:in `block in for_each_parent_project'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.19/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.19/lib/active_record/relation/batches.rb:21:in `each'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.19/lib/active_record/relation/batches.rb:21:in `block in find_each'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.19/lib/active_record/relation/batches.rb:72:in `find_in_batches'\r\n/var/lib/gems/1.9.1/gems/activerecord-3.2.19/lib/active_record/relation/batches.rb:20:in `find_each'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:41:in `for_each_parent_project'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/redmine_elasticsearch/indexer_service.rb:18:in `reindex_all'\r\n/var/vhost/dev-redmine/plugins/redmine_elasticsearch/lib/tasks/index.rake:18:in `block (2 levels) in <top (required)>'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'\r\n/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'\r\n/usr/local/bin/rake:23:in `load'\r\n/usr/local/bin/rake:23:in `<main>'\r\nTasks: TOP => redmine_elasticsearch:reindex_all\r\n```\r\n\r\nI can see the index in elasticsearch but it doesn't contain much:\r\n\r\n```\r\n{\r\n    •    _index: redmineapp_production\r\n    •    _type: parent_project\r\n    •    _id: 1\r\n    •    _version: 1\r\n    •    _score: 1\r\n    •    _source: {\r\n    ◦    id: 1\r\n    ◦    is_public: true\r\n    ◦    status_id: 1\r\n    ◦    enabled_module_names: [\r\n    ▪    issue_tracking\r\n    ▪    wiki\r\n    ▪    repository\r\n    ▪    time_tracking\r\n    ▪    calendar\r\n    ◦    ]\r\n    ◦    route_key: abc\r\n    •    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Undev/redmine_elasticsearch/issues/comments/73015522","html_url":"https://github.com/Undev/redmine_elasticsearch/issues/17#issuecomment-73015522","issue_url":"https://api.github.com/repos/Undev/redmine_elasticsearch/issues/17","id":73015522,"user":{"login":"nodecarter","id":241181,"avatar_url":"https://avatars.githubusercontent.com/u/241181?v=3","gravatar_id":"","url":"https://api.github.com/users/nodecarter","html_url":"https://github.com/nodecarter","followers_url":"https://api.github.com/users/nodecarter/followers","following_url":"https://api.github.com/users/nodecarter/following{/other_user}","gists_url":"https://api.github.com/users/nodecarter/gists{/gist_id}","starred_url":"https://api.github.com/users/nodecarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodecarter/subscriptions","organizations_url":"https://api.github.com/users/nodecarter/orgs","repos_url":"https://api.github.com/users/nodecarter/repos","events_url":"https://api.github.com/users/nodecarter/events{/privacy}","received_events_url":"https://api.github.com/users/nodecarter/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T09:12:45Z","updated_at":"2015-02-05T09:12:45Z","body":"Hi @sammcj !"}}