Pat, 

What was stated above is no longer my exact issue however what I've 
currently running into may be related. 

I deployed my code to a vps running ubuntu 12.04 via capistrano, 
requiring thinking_sphinx/capistrano. I received no errors when deploying, 
however thinking sphinx is not currently working in my production mode. 
Below I have the error that is return when trying to access a page that 
calls a thinking sphinx search. I have also included the results from 
several other commands that I think would be helpful in tracking down the 
issue. Could you please tell me if I'm doing something wrong, or if there 
is some documentation I have overlooked, thanks in advance. 

Currently if I try to visit a page where thinking sphinx should return info 
I receive the following error:
@user_feed is a variable which is the returned value from a thinking sphinx 
search
ActionView::Template::Error (index user_core: syntax error, unexpected $end 
near ' *'):
    75:
    76:         <br>
    77:
    78:         <% if @user_feed.present? %>
    79:                 <% @user_feed.each do |user| %>
    80:
    81:                         <div class="user_index_container" rel="<%= 
user.id %>">

When I run searchd I receive the following:
Sphinx 2.0.4-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

FATAL: no readable config file (looked in /etc/sphinxsearch/sphinx.conf, 
./sphinx.conf).

When I run which searchd:
/usr/bin/searchd

sudo service sphinxsearch start
returns:
Starting sphinxsearch: 

Please create an /etc/sphinxsearch/sphinx.conf configuration file.
A template is provided as /etc/sphinxsearch/sphinx.conf.sample.


On Friday, November 1, 2013 10:27:28 PM UTC-7, Pat Allan wrote:
>
> Hi JS
>
> Looks like the rake task is running twice somehow. You’re not including 
> the TS tasks in your Rakefile manually, are you?
>
> Also, what happens if you run the rake task through bundle exec?
>
> — 
> Pat
>
> On 2 Nov 2013, at 9:04 am, JS <[email protected] <javascript:>> 
> wrote:
>
> Hello,
>
> I'm trying to start deploy a rails 3.2.13 project to an ubuntu server and 
> the issue below has me stumped:
>
> *When running:*
>   RAILS_ENV=production rake ts:start
> *I am met with:*
>   Failed to start searchd daemon. Check /rails root 
> /log/production.searchd.log.
>   Failed to start searchd. Check the log files for more information.
> *Inside that files stated:*
>   [Fri Nov  1 14:24:12.764 2013] [ 2018] listening on 127.0.0.1:9306
>   [Fri Nov  1 14:24:12.772 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:15.775 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:18.778 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:21.781 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:24.784 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:27.787 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:30.790 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:33.793 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:36.796 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:39.799 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:42.802 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:24:45.805 2013] [ 2018] bind() failed on 127.0.0.1, 
> retrying... 
>   [Fri Nov  1 14:24:48.809 2013] [ 2018] FATAL: bind() failed on 127.0.0.1: 
> Address already in use
>   [Fri Nov  1 14:24:48.810 2013] [ 2017] Child process 2018 has been 
> finished, exit code 1. Watchdog finishes also. Good bye!
>
> *At which point I created a config/thinking_sphinx.yml file and added the 
> following, trying to specify a different port*
>   production:
>     mysql41: 9312
>
> *When running this command again:*
>   RAILS_ENV=production rake ts:start
> *I am again met with:*
>   Failed to start searchd daemon. Check /rails root 
> /log/production.searchd.log.
>   Failed to start searchd. Check the log files for more information.
> *The log this time stated: (please note that the port number has chaged)*
>   [Fri Nov  1 14:32:58.118 2013] [ 2606] Child process 2607 has been forked
>   [Fri Nov  1 14:32:58.119 2013] [ 2607] listening on 127.0.0.1:9312
>   [Fri Nov  1 14:32:58.119 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:01.120 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:04.123 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:07.126 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:10.129 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:13.132 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:16.135 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:19.138 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:22.142 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:25.145 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:28.148 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:31.151 2013] [ 2607] bind() failed on 127.0.0.1, 
> retrying...
>   [Fri Nov  1 14:33:34.154 2013] [ 2607] FATAL: bind() failed on 127.0.0.1: 
> Address already in use
>   [Fri Nov  1 14:33:34.156 2013] [ 2606] Child process 2607 has been 
> finished, exit code 1. Watchdog finishes also. Good bye!
>
>
> *I am using the following:*
> rails '3.2.13'
> thinking-sphinx '3.0.5'
> Postgres as my database (yes I also have the mysql2 gem installed)
> Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-42-generic x86_64)
> Sphinx 2.0.5-id64-release (r3308)
> Apache2
> phusion passenger
>
> Please let me know if ive left out any relevant information or if there is 
> some documentation you think I may have overlooked. Thanks in advance
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to