What's the output if you run:
cd /home/prod/projects/myApp && searchd --config
config/development.sphinx.conf --pidfile
--
Pat
On 19/05/2010, at 12:34 AM, ct9a wrote:
> hi guys
>
> I failed to run sphinx for both development and production
> environments.
> 1) /home/ane - runs development version of my application (ie.
> RAILS_ENV=development)
>
> 2) /home/prod - runs production version of my application (ie.
> RAILS_ENV=production)
>
> I did the following
> 1) set the development port for searchd to run on as 9312
>
> 2) set the production port for searchd to run on as 9313
>
> Here are extracts from my configuration files:
>
> ---------- /home/ane/projects/myApp/config/development.sphinx.conf
>
> searchd
> {
> listen = 127.0.0.1:9312
> log = /home/ane/projects/myApp/log/searchd.log query_log = /home/
> ane/projects/myApp/log/searchd.query.log pid_file = /home/ane/
> projects/myApp/log/searchd.development.pid}
> }
>
> --------- /home/prod/projects/myApp/config/production.sphinx.conf
>
> searchd
> {
> listen = 127.0.0.1:9313
> log = /home/prod/projects/myApp/log/searchd.log
> query_log = /home/prod/projects/myApp/log/searchd.query.log
> pid_file = /home/prod/projects/myApp/log/searchd.production.pid
>
> }
>
>
> 3) I logged into the server as "prod" user and ran the following with
> a success:
>
> "cd /home/prod/projects/myApp && RAILS_ENV=production /usr/bin/env
> rake thinking_sphinx:rebuild"
> which executed successfully. The last line was "Started successfully
> (pid 28551).
> ".
>
> 4) I logged into the server as "ane" user and ran the following
> without much luck:
>
> "cd /home/ane/projects/myApp && RAILS_ENV=development /usr/bin/env
> rake thinking_sphinx:start"
>
>
> Got the following error:
> "Failed to start searchd daemon. Check /home/anexiole/projects/
> RealAutoParts/log/searchd.log."
>
> I have set the ports properly in the configuration files (development
> and production environments) and tried to restart searchd but I am
> getting errors on starting it up for development. Why is that?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" 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/thinking-sphinx?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" 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/thinking-sphinx?hl=en.