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!
thanks
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
Is acts_as_ferret installed and running on your production server?
Colin
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
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
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.
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....
11155
(-- --)
January 4, 2010, 7:17pm
8
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 Westmoreland wrote:
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
got it working - Thank you!