Closed LuisSerrano closed 13 years ago
Hello Luis,
this plugin does not require db:migrate really.
Has you installed ruby bindings for xapian?
If you restart web server and access on search page what appears in production.log?
I have installed xapian-omega (and all the complements) and the library libxapian-ruby1.8
/home/redmine103/vendor/plugins/redmine_xapian/lib/xapian_search.rb:6: undefined method notice' for #<ActiveSupport::BufferedLogger:0xb240af8> (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /home/redmine103/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in
require'
from /home/redmine103/vendor/plugins/redmine_xapian/lib/acts_as_searchable.rb:18
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /home/redmine103/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in require' from /home/redmine103/vendor/plugins/redmine_xapian/init.rb:11:in
evaluate_init_rb'
from /home/redmine103/script/../config/../vendor/rails/railties/lib/rails/plugin.rb:158:in evaluate_init_rb' from /home/redmine103/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings'
from /home/redmine103/script/../config/../vendor/rails/railties/lib/rails/plugin.rb:154:in evaluate_init_rb' from /home/redmine103/script/../config/../vendor/rails/railties/lib/rails/plugin.rb:48:in
load'
from /home/redmine103/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in load' from /home/redmine103/script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in
load_plugins'
from /home/redmine103/script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in each' from /home/redmine103/script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in
load_plugins'
from /home/redmine103/script/../config/../vendor/rails/railties/lib/initializer.rb:369:in load_plugins' from /home/redmine103/script/../config/../vendor/rails/railties/lib/initializer.rb:165:in
process'
from /home/redmine103/script/../config/../vendor/rails/railties/lib/initializer.rb:113:in send' from /home/redmine103/script/../config/../vendor/rails/railties/lib/initializer.rb:113:in
run'
from /home/redmine103/config/environment.rb:20
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /home/redmine103/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' from /home/redmine103/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
new_constants_in'
from /home/redmine103/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' from /home/redmine103/vendor/rails/railties/lib/commands/server.rb:84 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/redmine103/script/server:3
Luis,
yes, it is a little bug. You should change line number 6 on file redmine_xapian/lib/xapian_search.rb:
this line: Rails.logger.notice "No Ruby bindings for Xapian installed"
with this: Rails.logger.info "No Ruby bindings for Xapian installed"
But I think your redmine is unable to find xapian library. After line changing restart web server and look for new messages on production.log.
Thanks, I dont'have this error, but now when I try to make a search I have another bug:
Processing SearchController#index (for 192.168.0.18 at 2010-12-14 08:12:53) [GET] Parameters: {"action"=>"index", "id"=>"red", "q"=>"probar", "controller"=>"search"}
NameError (uninitialized constant XapianSearch::Xapian):
app/controllers/search_controller.rb:77:in index' app/controllers/search_controller.rb:76:in
each'
app/controllers/search_controller.rb:76:in index' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in
service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in
start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in
start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in
each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in
start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendering /home/redmine103/public/500.html (500 Internal Server Error
If you run this command you get this error?
$ ruby -e "require 'xapian'" -e:1:in `require': no such file to load -- xapian (LoadError) from -e:1
If you see this error reinstall libxapian-ruby1.8 package and run the command again. Something is wrong with installation.
I installed the libxapian-ruby1.8 and xapian-omega and have the same problem. Shall i install more propsed packages listed (antiword libwpd-tools unrtf xpdf-utils catdoc libwps-tools catdvi djvulibre-bin) ?
repo-srv:/redmine# apt-get install libxapian-ruby1.8 Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut Lese Status-Informationen ein... Fertig Vorgeschlagene Pakete: xapian-doc Die folgenden NEUEN Pakete werden installiert: libxapian-ruby1.8 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 14 nicht aktualisiert. Es müssen 205kB an Archiven heruntergeladen werden. Nach dieser Operation werden 840kB Plattenplatz zusätzlich benutzt. Hole:1 http://ftp.de.debian.org lenny/main libxapian-ruby1.8 1.0.7-3.1 [205kB] Es wurden 205kB in 7s geholt (26,4kB/s) Wähle vormals abgewähltes Paket libxapian-ruby1.8. (Lese Datenbank ... 43154 Dateien und Verzeichnisse sind derzeit installiert.) Entpacke libxapian-ruby1.8 (aus .../libxapian-ruby1.8_1.0.7-3.1_amd64.deb) ... Richte libxapian-ruby1.8 ein (1.0.7-3.1) ... repo-srv:/redmine# apt-get install xapian-omega Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut Lese Status-Informationen ein... Fertig Vorgeschlagene Pakete: antiword libwpd-tools unrtf xpdf-utils catdoc libwps-tools catdvi djvulibre-bin Die folgenden NEUEN Pakete werden installiert: xapian-omega 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 14 nicht aktualisiert. Es müssen 256kB an Archiven heruntergeladen werden. Nach dieser Operation werden 897kB Plattenplatz zusätzlich benutzt. Hole:1 http://ftp.de.debian.org lenny/main xapian-omega 1.0.7-3+lenny1 [256kB] Es wurden 256kB in 0s geholt (991kB/s) Wähle vormals abgewähltes Paket xapian-omega. (Lese Datenbank ... 43232 Dateien und Verzeichnisse sind derzeit installiert.) Entpacke xapian-omega (aus .../xapian-omega_1.0.7-3+lenny1_amd64.deb) ... Verarbeite Trigger für man-db ... Richte xapian-omega ein (1.0.7-3+lenny1) ... repo-srv:/redmine# rake db:migrate_plugins RAILS_ENV=production (in /usr/local/lib/redmine-trunk) rake aborted! undefined method `notice' for #ActiveSupport::BufferedLogger:0x7f4864d4bd50
(See full trace by running task with --trace)
repo-srv:/redmine# rake db:migrate_plugins RAILS_ENV=production --trace
(in /usr/local/lib/redmine-trunk)
* Invoke db:migrate_plugins (first_time)
* Invoke environment (first_time)
\ Execute environment
rake aborted!
undefined method notice' for #<ActiveSupport::BufferedLogger:0x7ff6778d2d98> /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/lib/xapian_search.rb:6 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
require'
/usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/lib/acts_as_searchable.rb:18
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in require' /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/init.rb:11:in
evaluate_init_rb'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in evaluate_init_rb' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in evaluate_init_rb' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in
load'
/usr/local/lib/redmine-trunk/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in load' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in
load_plugins'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in each' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in
load_plugins'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in load_plugins' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in
process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in send' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in
run'
/usr/local/lib/redmine-trunk/config/environment.rb:20
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in require' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4 /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in invoke_prerequisites' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
repo-srv:/redmine#
In 1.1.2 if ruby bindings for xapian are not found the plugin is not registered and an error message is logged on redmine log.
I' not sure what you mean with ur comment but if you would say that i need to start up redmine altough the intsallation via "rake db:migrate_plugins RAILS_ENV=production --trace" shows error i did this and the i get an rails error when accessing our redmine server url. The log shows following message then: (I have to remove the xapian plugin from the plugisn folder to make the server work again)
* Exception NoMethodError in PhusionPassenger::Railz::ApplicationSpawner (undefined method notice' for #<ActiveSupport::BufferedLogger:0x7f5703a84c40>) (process 18581): from /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/lib/xapian_search.rb:6 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
require'
from /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/lib/acts_as_searchable.rb:18
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in require' from /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/init.rb:11:in
evaluate_init_rb'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in evaluate_init_rb' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in evaluate_init_rb' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in
load'
from /usr/local/lib/redmine-trunk/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in load' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in
load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in each' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in
load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in load_plugins' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in
process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in
run'
from /usr/local/lib/redmine-trunk/config/environment.rb:20
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:318:in preload_application' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:267:in
initialize_server'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/utils.rb:323:in report_app_init_status' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:246:in
initialize_server'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:194:in start_synchronously' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:163:in
start'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:222:in start' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:262:in
spawn_rails_application'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:126:in lookup_or_add' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:256:in
spawn_rails_application'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:80:in synchronize' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:79:in
synchronize'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:154:in
spawn_application'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:287:in handle_spawn_application' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in
send'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in main_loop' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:196:in
start_synchronously'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/bin/passenger-spawn-server:61
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
Rails Error: Unable to access log file. Please ensure that /usr/local/lib/redmine-trunk/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
* Exception NoMethodError in PhusionPassenger::Railz::ApplicationSpawner (undefined method notice' for #<ActiveSupport::BufferedLogger:0x7f5703a28788>) (process 18581): from /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/lib/xapian_search.rb:6 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
require'
from /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/lib/acts_as_searchable.rb:18
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in require' from /usr/local/lib/redmine-trunk/vendor/plugins/redmine_xapian/init.rb:11:in
evaluate_init_rb'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in evaluate_init_rb' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in evaluate_init_rb' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in
load'
from /usr/local/lib/redmine-trunk/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in load' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in
load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in each' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in
load_plugins'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in load_plugins' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in
process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in
run'
from /usr/local/lib/redmine-trunk/config/environment.rb:20
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:318:in preload_application' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:267:in
initialize_server'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/utils.rb:323:in report_app_init_status' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:246:in
initialize_server'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:194:in start_synchronously' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:163:in
start'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/railz/application_spawner.rb:222:in start' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:262:in
spawn_rails_application'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:126:in lookup_or_add' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:256:in
spawn_rails_application'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:80:in synchronize' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server_collection.rb:79:in
synchronize'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:255:in spawn_rails_application' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:154:in
spawn_application'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/spawn_manager.rb:287:in handle_spawn_application' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in
send'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:352:in main_loop' from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/lib/phusion_passenger/abstract_server.rb:196:in
start_synchronously'
from /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/bin/passenger-spawn-server:61
cforce:
Yes, is a little issue showing an error message when plugin is unable to locate xapian bindings for ruby. I've already fixed it in new version. You can download it.
In the new version, if the plugin can not locate xapian library the plugin is not registered in redmain and an error message is logged on rails log.
The real problem in your installation is why the plugin is unable to locate xapian library i you have installed it.
I was able to analyze the needed libs and depencies deeper and i think i found the solution! Your docummntation is missing some important hints ( this is working for debian lenny)
Thats my complete list of needed packages and cmds
cd /redmine apt-get install bxapian-ruby1.8 xapian-omega libxapian-dev xpdf antiword gem install xapian-full ruby script/plugin install http://github.com/xelkano/redmine_xapian.git (or download and extract tar or zip file.) rake db:migrate_plugins RAILS_ENV=“production” Restart web server rake db:migrate_plugins RAILS_ENV=production --trace
For Full extension support i also instaled this packages:
apt-get install xpdf unzip antiword catdoc libwpd8c2a libwps-0.1-1 gzip unrtf catdvi djview djview3
The "gem install xapian-full" needs to be done for Debian Squeeze too!
Please point this out in the readme, was nearly giving up then I found cforce comments in the closed Issues (Quite hard to find). Nevertheless, now that it is working, thanks a lot for the effort you put into this.
Hello, I have a problem when I try to import your plugin:
redmine@redmineserver:/home/redmine103$ sudo rake db:migrate_plugins RAILS_ENV="production" (in /home/redmine103) rake aborted! undefined method `notice' for #ActiveSupport::BufferedLogger:0xb4223bc
Are you aware of this problem?
Thanks for your help