There's both the access log for nginx and the error log - the error log is 
where anything from STDOUT goes for shell'd commands (eg: delta indexing 
output). Although doesn't sound like there'll be any clues in there. This is 
definitely odd.

What's the code in your controller that's making the search request?

-- 
Pat

On 21/07/2011, at 10:14 PM, T Untario wrote:

> Hi Pat, thanks for fast reply.
> 
> There're no errors in nginx log file. It returns 200 OK code every
> time.
> 
> Sphinx log looks very much normal.
> [Thu Jul 21 17:56:15.678 2011] 0.001 sec [all/4/rel 5 (0,20)]
> [product_core,product_delta] test          -> from console, returning
> 5 results
> [Thu Jul 21 17:56:31.642 2011] 0.000 sec [all/4/rel 0 (0,20)]
> [product_core,product_delta] test          -> from web, returning 0
> results
> 
> Rails log looks exactly as it should be, except the result value
> 
> From console:
>  Sphinx Query (4.5ms)  test
>  Sphinx  Found 5 results
> 
> From web:
>  Sphinx Query (11.1ms)  test
>  Sphinx  Found 0 results
> 
> There's only 1 searchd running.
> 
> I believe the passenger path is correct because there's a log entry in
> searchd.query.log for every search from web.
> 
> I'm using:
> - Sphinx 2.0.1
> - TS 2.0.5, installed using gem
> - Rails 3.0.7
> 
> I'm totally baffled....
> 
> 
> 
> On Jul 21, 6:55 pm, Pat Allan <[email protected]> wrote:
>> I'd be looking at the error logs of your web server (apache/nginx), the 
>> Sphinx logs, and the Rails logs. Are there any clues there?
>> 
>> Also: which versions of Sphinx, Thinking Sphinx and Rails are you using? And 
>> is there only one searchd process running on the machine? Following command 
>> should help:
>> 
>>   ps aux | grep searchd
>> 
>> Cheers
>> 
>> --
>> Pat
>> 
>> On 21/07/2011, at 8:52 PM, T Untario wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Hi guys,
>> 
>>> I run into a weird problem. TS returns correct results in console, but
>>> returns 0 result when I access it from web.
>>> I have no clue. Everything seems fine when I test it in console.
>> 
>>> Any idea why does this happen?
>> 
>>> Thanks.
>> 
>>> --
>>> 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 
>>> athttp://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.
> 

-- 
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.

Reply via email to