Ferret search in production

Hi there,

after recently deploying my app, I have noticed that the search
results are not being displayed…

When I look in my app, I also notice that the apps content (search
criterea) is not being indexed, so I dont have an index folder being
created.

I read on a google post that it may be that the ferret.yml server
isn’t started (or perhaps the content of this file are not right)

I haven’t touched this file 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! :slight_smile:

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Bit more info -

looking at the ferret log file it says this:

[user] DRb connection error: druby://localhost:9010 -
#<Errno::ECONNREFUSED: Connection refused - connect(2)>

this tells me i’ve not configured something, but i’m still unsure how
to resolve this…

Any help appreciated…
Thanks again

On 3 Jan, 17:09, RubyonRails_newbie [email protected]
wrote:

isn’t started (or perhaps the content of this file are not right)
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! :slight_smile:

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

2010/1/3 RubyonRails_newbie [email protected]:

isn’t started (or perhaps the content of this file are not right)
port: 9010
pid_file: log/ferret.pid
log_file: log/ferret_server.log
log_level: warn

Is acts_as_ferret installed and running on your production server?

Colin

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Yes - it’s installed:
already installed: acts_as_ferret (svn://projects.jkraemer.net/
acts_as_ferret/tags/stable/acts_as_ferret). pass --force to reinstall

When I tried to start it:
script/ferret_server -e production start

the server returned: -bash: script/ferret_server: Permission denied

Hmmm

On 3 Jan, 17:31, Colin L. [email protected] wrote:

Is acts_as_ferret installed and running on your production server?

Colin

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

On Jan 3, 5:39 pm, RubyonRails_newbie [email protected]
wrote:

Yes - it’s installed:
already installed: acts_as_ferret (svn://projects.jkraemer.net/
acts_as_ferret/tags/stable/acts_as_ferret). pass --force to reinstall

When I tried to start it:
script/ferret_server -e production start

the server returned: -bash: script/ferret_server: Permission denied

Script probably just not marked as executable. You could either chmod
+x it or do ruby script/ferret_server

Fred

after recently deploying my app, I have noticed that the search
if anyone knew where i need to turn to work out what’s what with
log_level: warn

Is acts_as_ferret installed and running on your production server?

Colin

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Ah, according to the message I got back, it was already running.

I’ve stopped it and re-started it, but i’m still getting the same
error…

On 4 Jan, 11:39, RubyonRails_newbie [email protected]
wrote:

Script probably just not marked as executable. You could either chmod

Hi there,

pid_file: log/ferret.pid
log_file: log/ferret_server.log
log_level: warn

Is acts_as_ferret installed and running on your production server?

Colin- Hide quoted text -

  • Show quoted text -

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

thanks for that… I will take a look.

Hopefully that will start it…so basically I run ruby script/
ferret_server from my app location on the hosts server?

Thanks again.

On 3 Jan, 18:33, Frederick C. [email protected] wrote:

Script probably just not marked as executable. You could either chmod

2010/1/3 RubyonRails_newbie [email protected]:

I read on a google post that it may be that the ferret.yml server
host: localhost
port: 9010
pid_file: log/ferret.pid
log_file: log/ferret_server.log
log_level: warn

Is acts_as_ferret installed and running on your production server?

Colin- Hide quoted text -

  • Show quoted text -

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Thanks Ashif,

I like your blog - it makes sense, however I’m not 100% sure where
‘‘require(File.join(File.dirname(FILE), ‘…/…/…/…/config/
environment’))’’ is meant to go in the server_manager.rb file.

CHeers

On 4 Jan, 19:17, Ashif M. [email protected] wrote:

Script probably just not marked as executable. You could either chmod

  • Show quoted text -


Posted viahttp://www.ruby-forum.com/.

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Hi, are you using mongrel server for your production? If yes then you
must make sure that you start your ferret server before starting your
mongrel or apache/nginx servers. also you can share the index folder
across your all production deployment. one thing is important to
remember that your index folder must have read/write permissions. I
wrote a blog post on this, you can take a look if you want to at

let me know if it helps or not…

Craig W. wrote:

Ah, according to the message I got back, it was already running.

I’ve stopped it and re-started it, but i’m still getting the same
error…

On 4 Jan, 11:39, RubyonRails_newbie [email protected]
wrote:

Script probably just not marked as executable. You could either chmod

Hi there,

�pid_file: log/ferret.pid
�log_file: log/ferret_server.log
�log_level: warn

Is acts_as_ferret installed and running on your production server?

Colin- Hide quoted text -

  • Show quoted text -

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

got it working - Thank you!

On 4 Jan, 20:41, RubyonRails_newbie [email protected]
wrote:

Ah, according to the message I got back, it was already running.

pid_file: log/ferret.pid

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Posted viahttp://www.ruby-forum.com/.

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.