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

plugin stopped to work. #7

Closed
rudivandrunen-spronq opened this issue Mar 8, 2014 · 1 comment
Closed

plugin stopped to work. #7

rudivandrunen-spronq opened this issue Mar 8, 2014 · 1 comment
Assignees
Labels

Comments

@rudivandrunen-spronq
Copy link

Hi undev,

As a RoR rookie I installed a.o. your elasticsearch pulgin (and resque) (and redis, and elastisearch), and it all worked, until I installed some other plugins, Now the production.log shows when doing a search, something like:

Started GET "/redmine/search?utf8=%E2%9C%93&q=test" for xxx.xxx.xxx.xxx at 2014-03-08 21:07:38 +0100
Processing by SearchController#index as HTML
Parameters: {"utf8"=>"✓", "q"=>"test"}
Current user: rudi (id=1)
Completed 500 Internal Server Error in 8.0ms

NoMethodError (undefined method allowed_to_search_query' for #<Class:0x000000080f9120>): activerecord (3.2.16) lib/active_record/dynamic_matchers.rb:55:inmethod_missing'

...

and a lot more.... I get a 500 error in the GUI :-)
checked: elasticsearch: running.

tried to reindex:

bitnami@redmine:/opt/bitnami/apps/redmine/htdocs$ bundle exec rake redmine_elasticsearch:reindex_all RAILS_ENV=production --trace
Loading Rails environment for Resque
** Invoke redmine_elasticsearch:reindex_all (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine_elasticsearch:reindex_all
Recreate index for all available search types
rake aborted!
undefined method update_mapping' for #<Class:0x0000000679f008> /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.16/lib/active_record/dynamic_matchers.rb:55:inmethod_missing'

.....

checked installation:
bundle install

Using rake (10.1.1)
Using i18n (0.6.9)
Using multi_json (1.8.4)
Using activesupport (3.2.16)
Using builder (3.0.0)
Using activemodel (3.2.16)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.16)
Using mime-types (1.25.1)
Using polyglot (0.3.4)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (3.2.16)
Using active_model_serializers (0.8.1)
Using arel (3.0.3)
Using tzinfo (0.3.38)
Using activerecord (3.2.16)
Using activeresource (3.2.16)
Using bundler (1.3.5)
Using rack-ssl (1.3.3)
Using json (1.8.1)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.16)
Using rails (3.2.16)
Using acts-as-taggable-on (2.4.1)
Using ansi (1.4.3)
Using climate_control (0.0.3)
Using cocaine (0.5.3)
Using coderay (1.1.0)
Using haml (4.0.5)
Using hashr (0.0.22)
Using htmlentities (4.3.1)
Using jquery-rails (2.0.3)
Using jquery-ui-rails (4.2.0)
Using kaminari (0.15.1)
Using method_decorators (0.9.4)
Using mono_logger (1.1.0)
Using mysql2 (0.3.13)
Using net-ldap (0.3.1)
Using paperclip (3.5.4)
Using ruby-openid (2.3.0)
Using rack-openid (1.4.2)
Using rack-protection (1.5.2)
Using rack-raw-upload (1.1.1)
Using redis (3.0.7)
Using redis-namespace (1.4.1)
Using redmine_acts_as_taggable_on (1.0.0)
Using sinatra (1.4.4)
Using vegas (0.1.11)
Using resque (1.25.2)
Using rest-client (1.6.7)
Using sass (3.2.14)
Using sass-rails (3.2.6)
Using rich (1.4.6)
Using rmagick (2.13.2)
Using tire (0.6.2)
Using ya2yaml (0.31)
Your bundle is complete!
Gems in the groups development and test were not installed.
Use bundle show [gemname] to see where a bundled gem is installed.

seems ok...

Redmine setup:

Environment:
Redmine version 2.4.2.stable
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.4
Cvs 1.12.13
Git 1.8.3
Filesystem
Redmine plugins:
redmine_ckeditor 1.0.16
redmine_custom_css 0.1.2
redmine_dashboard 2.1
redmine_elasticsearch 0.1.1
redmine_knowledgebase 3.0.2
redmine_resque 0.0.2
redmine_tags 2.1.0
scrum2b 2.0

Any idea where to look (again: I'm a rookie...) ??
maybe I need to uninstall, reinstall the plugin, how do I do that ?

Thanks again,

Rudi

@nodecarter
Copy link
Contributor

Hi @rudivandrunen-oelan!
The problem was in adding new search_type by redmine_knowledgebase plugin.
Now problem is fixed. You should update redmine_elasticsearch plugin.
If you have cloned this plugin from github then you can update plugin by going to plugin folder and checkout the latest version:

cd YOUR_REDMINE_ROOT/plugins/redmine_elasticsearch
git pull origin master

After that you should restart redmine and resque worker.

@nodecarter nodecarter self-assigned this Mar 9, 2014
@nodecarter nodecarter added the bug label Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants