Displaying 20 results from an estimated 4000 matches similar to: "Partial Class Definition if Ferret Server Not Running"
2007 Oct 03
3
The ferret logs
Hi.
We''ve had some problems with ferret not being able to load our classes
(stack trace below for the curious).
I nailed it down to a deployment issue, where an old instance of ferret
drb was running. I don''t understand the details quite yet, but the
result was the the old ferret was never shutdown during redeployment,
and attempts were made to start up a new one.
Anywho,
2007 Jun 18
2
"No such file or directory - script" Error on Model.rebuild
Hi,
Having recently converted to using ferret_server on my staging site my
deployment is now failing due to the following error when attempting to
rebuild the indexes on my models:
from (irb):1>> Post.rebuild_index
Errno::ENOENT: No such file or directory - script
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir''
from (druby://127.2.0.1:9100)
2008 Jan 21
4
Rails app cannot connect to Ferret server
I have installet the Ferret gem v. 0.11.6 and the latest acts_as_ferret
plugin from
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
I''ve followed the instructions here
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer to set up the
server, and put acts_as_ferret :remote => true on one of my models (Ad)
I can also start the ferret_server, but when
2007 Apr 18
1
stack level too deep for method missing when using drb
I set up ferret and it''s running fine normally. Now I want to hook up
the backgroundrb server. However whenever I try to do a search, I get
this error:
(druby://localhost:9010) /usr/local/lib/ruby/1.8/drb/drb.rb:1075:in
`method_missing''
(druby://localhost:9010)
./vendor/plugins/acts_as_ferret/lib/remote_index.rb:20:in
`find_id_by_contents''
(druby://localhost:9010)
2007 Nov 11
5
undefined method `add''
We''ve been running into problems with ferret indexing lately. The
problem is intermittent and some times it persists. Just got this after
wiping the index and redeploying:
NoMethodError (undefined method `add'' for Solution:Class):
(druby://10.1.65.87:9009)
/data/releases/20071111152414/vendor/rails/activerecord/lib/active_record/base.rb:1238:in
`method_missing''
2007 Jul 04
2
problems after gem update
Hi, I had ferret working wonderfully but i am regretting doing a gem
update today.
I had alot of trouble first installing it and was really happy to have
it working. The upgrade was from 0.3.1 to 0.4.0.
The problem is;
in the rails console,
>> @results = Book.find_by_contents("peter pan")
=> #<ActsAsFerret::SearchResults:0x487040c @total_hits=0, @results=[]>
Its indexing
2007 Apr 03
5
Inifinite loop problem with DRb server
Hi all,
We''re attempting to use Ferret with the DRb server at the moment, and
it doesn''t work, at all...
= Executive Summary
The DRb server process keeps on calling the remote index to the DRb
server process... Which means DRb is calling itself, and itself, and
itself, until Ruby kills the Thread with a SystemStackLevel error.
= The excruciating details...
# Mongrel is
2007 Aug 30
0
Method missing error after switching to DRB
I am getting these errors after switchign to dRb:
It is trying to call ''add'' on MY SourceListing class, not extended with the
ferret indexing methods.
Any ideas on where to fix this? I''m combing through the code now.
no luck, trying to call class method instead
ferret server error undefined method `add'' for SourceListing:Class
2007 Nov 05
1
Segmentation Fault in more_like_this.rb
I''ve been seeing some core dumps coming from ferret_server:
acts_as_ferret/lib/more_like_this.rb:170: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-freebsd6]
I''m running the latest build of ferret (0.11.4-rc5). Line 170 in
more_like_this.rb is:
freq = reader.doc_freq(field_name, word)
which is calling into the ferret C code (if I''m reading this
2008 Aug 20
1
acts_as_ferret and DRb server errors
I am seeing this in my ferret_server.log when I do a search:
DRb server: ensure_index_exists for class Myclass1
DRb server: ensure_index_exists for class Myclass2
DRb server: ensure_index_exists for class Myclass3
DRb server: ensure_index_exists for class Myclass4
#method_missing(:id_multi_search, ["Myclass1", "test*", ["Myclass4",
"Myclass3",
2007 Sep 03
11
MySQL has gone away
Hi,
in a production environment we are running into "MySQL server has gone
away" errors (see below) when we call rebuild_index in aaf. This happens
sporadically.
Any suggestions for what might be wrong or workarounds? I guess we try a
reconnect before we call rebuild_index?
Matthew
ActiveRecord::StatementInvalid (Mysql::Error: MySQL server has gone
away: SELECT count(*) AS
2007 Mar 31
8
Problem with setting up remote indexing
Hello,
I have been trying to set up the remote indexing for acts_as_ferret and
followed the guide here:
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer
I added :remote => true to my models and then specified host and port
for the production environment.
After defining the host/port for production, I tried to run my
development server and received the following error:
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
Thanks Stuart. I thought I had read somewhere that rebuild_index
built the index in a different location and then swapped it, but
after looking at the code (in local_index.rb) this doesn''t appear to
be the case. That might explain why the ferret server crashes
sometimes when a search takes place during a reindex.
I wouldn''t be doing exactly the same thing as this but
2007 Sep 07
4
Ferret DRB - can add/edit index, but can''t search
I''m trying to use the Ferret DRB server to avoid concurrency issues when
using multiple mongrels. I can successfully add and edit data on my
index via the DRB server, however, when I search the index, I get the
following error:
DRb::DRbConnError (DRb::DRbServerNotFound):
/usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server''
/usr/lib/ruby/1.8/drb/drb.rb:1709:in
2008 Sep 25
1
Acts_as_ferret, DRb, 4 monrels and complete site lockups
Hi,
I am having some serious problems with site that''s already live. It is
using RoR 1.2, ferret 0.11.6 and most recent acts_as_ferret plugin.
Most of the day, site is doing pretty well, is quick and search is
reliable. But, at some point, it just "locks" and stops responding,
one instance of mongrel after another.
At the same time ferret DRb server starts eating lots of CPU.
2007 Apr 01
2
strange behavior after switching to DRb server
After switching to the DRb server, I am experiencing strange behavior
when sorting on score. My app was working as expected before the switch.
Both before and after the switch, my app sorts properly on other
fields, such as date.
For sorting on score, I am using the following option
find_by_contents option:
:sort => Ferret::Search::SortField::SCORE
Before switching to DRb, this worked
2007 Jun 28
1
DRb server crashing
I''m having a problem where the DRb server seems to be disappearing
(crashing?) and I don''t know how to track down the cause or work around
the problem.
Unfortunately I haven''t found a way to reproduce the problem, but it
seems to happen fairly often (maybe once a day). Other then that ferret
seems to be working well.
I can''t seem to find any trace of the
2007 Feb 27
3
acts_as_ferret rebuilding issue with ferret 0.11.0
Hi,
There is a problem with the way that acts_as_ferret verifies the index
is valid. In ensure_index_exists it looks for a file named ''segments''.
With the 0.11.0 release of ferret there is no file with this name. On my
dummy application I have a ''segments.gen'' and ''segments_2y''.
Changing the test to segments.gen fixes the problem that the
2007 Sep 20
5
Ferret DRB, UTF-8, Mongrel
I have spent days trying to figure out how to get UTF-8 working with my
site.
Here''s my environment:
Linux version 2.6.16.29-xen_3.0.3.0
Ruby 1.8.4 (2005-12-24 [i386-linux]
Rails 1.2.3
mongrel (1.0.1)
mongrel_cluster (1.0.2, 0.2.1)
ferret (0.11.4)
acts_as_ferret stable plugin
Ferret DRB server
When I don''t use an analyzer with my acts_as_ferret declaration,
everything works
2007 Aug 04
0
Running two ferret servers for two different applications on the same box
Hi!
I have a situation where we want to set up two different rails applications on the same server and they both have ferret related functionality that needs to be implemented. How does one setup the ferret_server.yml file and then start each ferrt server to reflect that these two applications should access specific ferret servers that are running? I''ve tried changing the ports in