Displaying 20 results from an estimated 56 matches for "ferret_server".
2007 Mar 05
3
programatically stopping acts_as_ferret drb server
I need a way to kill the ferret_server drb process programatically, so I
can start/stop it as part of the capistrano deployment process.
This should be as simple as adding some sort of stop method to
ActsAsFerret::Remote::Server. I was just messing around and was able to
do it by modifying method_missing to look for the :stop method a...
2007 Oct 03
3
The ferret logs
...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, I stumbled acroess the ferret_server.log and ferret_index.log,
is it correctly understood, that ferret_server.log is basically the drb
server output, while ferret_index.log is the index manager output?
A bonus question, what''s the best way to determine that your application
(using acts_as_ferret) is currently running agai...
2007 Apr 03
5
Inifinite loop problem with DRb server
...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 started using:
mongrel_rails start --port 6543 --environment development --daemonize 2>&1
# config/ferret_server.yml
development:
host: 127.0.0.1
port: 3000
pid_file: log/ferret.3000.pid
# Ferret''s DRb server is started using:
script/runner -e development vendor/plugins/acts_as_ferret/script/ferret_start
# app/models/email.rb:
class Email < ActiveRecord::Base
acts_as_ferret :store_class_...
2010 Jan 03
9
ferret search in production
...ile since development mode, so was wondering
if anyone knew where i need to turn to work out what''s what with
this...
the default file (which must have been created at the time of
installation is below:
production:
host: localhost
port: 9010
pid_file: log/ferret.pid
log_file: log/ferret_server.log
log_level: warn
can anyone help? I''m so close to having a fully working app! :-)
thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+...
2007 Aug 30
0
Method missing error after switching to DRB
...bing through the code now.
no luck, trying to call class method instead
ferret server error undefined method `add'' for SourceListing:Class
/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1235:in
`method_missing''
/var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:67:in
`send''
/var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:67:in
`method_missing''
/var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:113:in
`with_class''
/var/lib/gems/1.8/gems/acts_as_ferret-0.4.1/lib/ferret_server.rb:62:in
`method_miss...
2007 May 01
2
AAF and DRb server
I''ve installed the ferret gem. I installed AAF as a plugin into my
vendor/plugins directory of my project. In development environment my
searches work just fine, without any problems.
For production I configured the ferret_server.yml file with correct
information about the machine my DRb server is running on. I start the
ferret server with the following command:
ruby script/runner ''load "script/ferret_start"''
The DRb server seems to be starting fine. I get:
Starting ferret DRb server...Done....
2007 Mar 31
8
Problem with setting up remote indexing
...ods.rb:66:in `acts_as_ferret'':
You have a nil object when you didn''t expect it! (NoMethodError)
You might have expected an instance of Array.
Isn''t it supposed to work just fine even though we don''t specify neither
the development nor the test environment in the ferret_server.yml?
Anyways, I then decided to specify development environment in the
ferret_server.yml
Here is how it''s setup:
development:
host: localhost
port: 3000 (my rails app port)
Sure enough I don''t get that error anymore and my development server
boots up just fine.
However, whe...
2007 Apr 01
1
rebuild_index fails on some models using aaf
I''ve been running the super latest AAF plugin with a mongrel
cluster/ferret_server combo smoothly for a few days in production mode,
indexing 4 models with no surprises.
Only now when I try including some new Models to be indexed, the
ferret_server fails to index with
ferret server error undefined method `_'' for Summary:Class
(it creates the dir on index/production, t...
2008 Jan 21
4
Rails app cannot connect to Ferret server
...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 starting the Rails
application (with mongrel) and fetching a page, I get the following
errors in the log:
Asked for a remote server ? true, ENV["FERRET_USE_LOCAL_INDEX"] is nil,
looks like we are not the server
Will use remote index server which should be available at
druby:/...
2007 Nov 11
5
undefined method `add''
...(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''
(druby://10.1.65.87:9009)
/data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:71:in
`send''
(druby://10.1.65.87:9009)
/data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:71:in
`method_missing''
/data/releases/20071111152414/vendor/plugins/acts_as_ferret/lib/remote_index.rb:31:in
`<<''
/data/releases/2...
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...
2007 Apr 12
1
[AAF] concurrency in ferret-server
AFAICT, ferret_server should be able to handle multiple clients
writing to it at once, since ferret itself is thread safe. However,
it''s not clear whether running concurrent index rebuilds on different
would be possible, since they run inside ferret_server. Anyone have
experience with this?
-ryan
2007 Feb 15
1
Running the DRb script
Hi,
I seem to have rather silly problem. I''m trying to run the script for
the DRb server in the acts_as_ferret trunk for setting up a centralized
index server. When I try to run script/runner
vendor/plugins/acts_as_ferret/script/ferret_server, I get a ruby error
/opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27:
undefined local variable or method `vendor'' for #<Object:0x8090300>
(NameError)
from
/opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `eval''
from
/opt/...
2007 Apr 18
1
stack level too deep for method missing when using drb
...o 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)
./vendor/plugins/acts_as_ferret/lib/ferret_server.rb:68:in
`method_missing''
(druby://localhost:9010) /usr/local/lib/ruby/1.8/drb/drb.rb:1078:in
`method_missing''
(druby://localhost:9010)
./vendor/plugins/acts_as_ferret/lib/remote_index.rb:20:in
`find_id_by_contents''
(druby://localhost:9010)
./vendor/plugins/acts_as_ferret...
2008 Mar 14
0
acts_as_ferret issue on windows
I installed ferret-0.11.5-x86-mswin32 successfully but I''m having no
luck with either the acts_as_ferret gem or the plugin.
The plugin installs clean but when I try to start the server I get the
following:
D:\test>ruby script\ferret_server --debug start
fork() function is unimplemented on this machine
D:/test/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:41:in `fork''
D:/test/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:41:in
`safefork''
D:/test/vendor/plugins/acts_as_ferret/lib/unix_daemon.rb:11:in
`platform_d...
2007 Dec 02
1
solaris SMF to start ferret drb server
...script/ferret_stop scripts were still in use.
now if I call the old script...
RAILS_ENV=production script/ferret_start
script/ferret_start:25:in `load'': wrong number of arguments (0 for 1)
(ArgumentError)
from script/ferret_start:25
but if I call the new script...
ruby script/ferret_server -e production stop
no such file to load -- /usr/bin/../config/environment
so I am confused! Pretty sure the latest aaf drb server is not
compatible with the info in
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer . Happy to
help edit that when we figure this out.
Sam
--
Posted via...
2007 Mar 13
6
Acts_as_ferret and auto-flush
Hi,
I''m using acts_as_ferret in with a mongrel and I'' m getting locking
errors that after a while result in a corrupt database.
I know about the problem with different processes writing to the
index but I haven''t been able to get the DRB server working properly
yet. I read on this list that another solution is to set :auto_flush
to true but I''m not
2007 Jun 28
1
DRb server crashing
...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 crash, neither of the
ferret_server.out (blank) and ferret_server.log (tail -n 100 after a
crash attached below) seem to hold any hints to the problem.
So my questions are.
1. Has anyone seen this behavior before, how did you work around it?
2. If no one has seen it, any ideas of where I should look to track it
down?
3. Last if I c...
2007 Nov 20
2
Question on Deploying a Ferret DRb server
...like to consider
the following scenario:
Server 1: front-end web server + mongrel cluster
Server 2: Ferret DRb server
Server 3: MySQL database
My question is related to Server 2? Exactly what is it that I have to
deploy to that computer to have a Ferret DRb server? I understand that
on Server 1, ferret_server.yml should have a production entry that
points to Server 2, and that all the models on Server 1 need :remote =>
:true. But what lives on server 2? Do I just deploy the models folder,
the config folder and the scripts folder? Or do I deploy an entire copy
of the web site code?
I haven''t...
2007 Oct 02
3
deadlocks in Drb Server
Hi,
we still have the problem in that the Ferret Drb server dies on us
sometimes. Looking through ferret_server.out and we come accross this:
deadlock 0xb7261cb0: sleep:F(1012) - /usr/lib/ruby/1.8/drb/drb.rb:566
deadlock 0xb71d8654: sleep:F(409) - /usr/lib/ruby/1.8/drb/drb.rb:566
deadlock 0xb723f3e0: sleep:F(7) - /usr/lib/ruby/1.8/drb/drb.rb:566
deadlock 0xb72607c0: sleep:F(11) - /usr/lib/ruby/1.8/drb/d...