#178 new
rduz

getting the right drb version of acts_as_ferret for rails 2.1.1

Reported by rduz | October 18th, 2010 @ 09:31 PM

I can't seem to get the correct version of acts_as_ferret installed for Rails 2.1.1. Production uses mongrel, and is throwing the fairly well known error:

File Not Found Error occured at <except.c>:117 in xpop_context Error occured in fs_store.c:329 - fs_open_input

tried to open "/srv/rails/brokersifs/releases/20101018181741/index/production/resourceitem/_x.cfs" but it doesn't exist: <No such file or directory>

From my reading, I need to get it to use the Drb version. So, I configured the config/ferret_server.yml file, and updated my monit_config to start it. I can confirm it got started on the port that I wanted, but the same error above continued to occur.

Further reading suggests that I need to install a newer version. So, I installed via
script/plugin install git://github.com/jkraemer/acts_as_ferret.git, and I notice there is now a script/ferret_server, which errors out:

rduz@BIDSK0064U:~/rails/brokersifs$ script/ferret_server --debug start
Rails.root: /home/rduz/rails/brokersifs
Rails.env: development
undefined method join' for "/home/rduz/rails/brokersifs":String<br/> /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/server/config.rb:36:inabs_config_file_path' /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/server/config.rb:24:in initialize' /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/server/server.rb:30:innew' /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/server/server.rb:30:in initialize' script/ferret_server:74:innew'
script/ferret_server:74

The old ferret_start doesn't seem to work either:
rduz@BIDSK0064U:~/rails$ cd brokersifs
rduz@BIDSK0064U:~/rails/brokersifs$ script/ferret_start
/home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:275: warning: parenthesize argument(s) for future version /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/class_methods.rb:152: warning: parenthesize argument(s) for future version /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/local_index.rb:74: warning: parenthesize argument(s) for future version /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:275: warning: parenthesize argument(s) for future version /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': no such file to load -- rails (MissingSourceFile)

from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
from /home/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
from /home/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
from /home/rduz/rails/brokersifs/vendor/plugins/acts_as_ferret/lib/acts_as_ferret/railtie.rb:2
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/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
 ... 8 levels...
from /home/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:261:in `load_missing_constant'
from /home/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:468:in `const_missing'
from /home/rduz/rails/brokersifs/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:480:in `const_missing'
from script/ferret_start:25

What is the proper method to run acts_as_ferret in drb mode under rails 2.1.1? I don't mind installing an older version of acts_as_ferret at this point just to get the site working again.

Thank you.

Regards,
Rich

Comments and changes to this ticket

  • dcbdxvbbu

    dcbdxvbbu September 8th, 2018 @ 07:17 AM

    Here is some drb methods which helps you in your work. I want to tell you how you can make your working better after read whole thesis services blog. That is the best way to get knowledge about the drb which is new for you.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages