No worries, good to know we got it figured out :)

-- 
Pat

On 26/05/2011, at 5:28 PM, Jeweller wrote:

> yes, it work! I removed "thinking_sphinx/tasks",and it worked!
> Thank you, Pat
> Thank you so much!
> 
> On 5月26日, 下午10时39分, Pat Allan <[email protected]> wrote:
>> Hmm, maybe the rake task is being run twice? What's the contents of your 
>> Rakefile? If you've added 'require "thinking_sphinx/tasks"', you can remove 
>> that - it's only for Rails 2 and earlier. Rails 3 provides a way to make 
>> that happen automatically.
>> 
>> --
>> Pat
>> 
>> On 26/05/2011, at 3:58 PM,Jewellerwrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> I don't get it,can you express it more clearly?
>>> here's the searchd log
>> 
>>> [Thu May 26 21:04:02.654 2011] [13665] accepting connections
>>> [Thu May 26 21:04:38.392 2011] [13665] caught SIGTERM, shutting down
>>> [Thu May 26 21:04:38.392 2011] [13665] shutdown complete
>>> [Thu May 26 21:07:42.400 2011] [13715] accepting connections
>>> [Thu May 26 21:09:49.122 2011] [13715] caught SIGTERM, shutting down
>>> [Thu May 26 21:09:49.123 2011] [13715] shutdown complete
>>> [Thu May 26 21:10:07.218 2011] [13750] accepting connections
>>> [Thu May 26 21:27:56.424 2011] [13750] caught SIGTERM, shutting down
>>> [Thu May 26 21:27:56.424 2011] [13750] shutdown complete
>>> [Thu May 26 21:28:10.028 2011] [13977] accepting connections
>>> [Thu May 26 21:54:17.176 2011] [13977] caught SIGTERM, shutting down
>>> [Thu May 26 21:54:17.176 2011] [13977] shutdown complete
>> 
>>> I have an appointment right now, we can discuss it latter. Thank you
>>> for your help!!!
>> 
>>> On 5月26日, 下午9时46分, Pat Allan <[email protected]> wrote:
>>>> What's the output of the following:
>> 
>>>> ps aux | grep searchd
>> 
>>>> It seems like the existing searchd process isn't being stopped.
>> 
>>>> --
>>>> Pat
>> 
>>>> On 26/05/2011, at 3:13 PM,Jewellerwrote:
>> 
>>>>> I created a new project and used "thinking-sphinx 2.0.5"
>>>>> I can build index, but can't start
>> 
>>>>> $ rake ts:start
>>>>> Started successfully (pid 13715).
>>>>> rake aborted!
>>>>> searchd is already running.
>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/thinking-sphinx-2.0.5/lib/
>>>>> thinking_sphinx/tasks.rb:32:in `block (2 levels) in <top (required)>'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:634:in `call'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:629:in `each'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:629:in `execute'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:595:in `block in
>>>>> invoke_with_call_chain'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:605:in `block in
>>>>> invoke_prerequisites'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:602:in `each'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:602:in `invoke_prerequisites'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:594:in `block in
>>>>> invoke_with_call_chain'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:581:in `invoke'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in
>>>>> top_level'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2019:in `each'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2058:in
>>>>> `standard_exception_handling'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:1992:in `run'
>> 
>>>>> then I tried rake ts:stop
>>>>> it worked!
>> 
>>>>> Stopped search daemon (pid 13715).
>>>>> searchd is not running
>> 
>>>>> so I try start again, got the same error "searchd is already running."
>> 
>>>>> On 5月26日, 下午7时48分, Pat Allan <[email protected]> wrote:
>>>>>> Oh, sorry, got confused between errors.
>> 
>>>>>> Upgrading to Thinking Sphinx 2.0.5 should fix that - it's the first 
>>>>>> release (along with TS 1.4.6 for Rails 2 and earlier) that properly 
>>>>>> supports Sphinx 2.0.x.
>> 
>>>>>> Cheers
>> 
>>>>>> --
>>>>>> Pat
>> 
>>>>>> On 26/05/2011, at 1:46 PM,Jewellerwrote:
>> 
>>>>>>> I've tried, still got the same error
>> 
>>>>>>> On 5月26日, 下午7时20分, Pat Allan <[email protected]> wrote:
>>>>>>>> Try:
>>>>>>>> bundle exec rake ts:stop
>> 
>>>>>>>> That will make sure you're using the version of rake that you've 
>>>>>>>> bundled.
>> 
>>>>>>>> --
>>>>>>>> Pat
>> 
>>>>>>>> On 26/05/2011, at 1:18 PM,Jewellerwrote:
>> 
>>>>>>>>> I'm using Sphinx 0.9.9
>> 
>>>>>>>>> I uninstilled Sphinx-0.9.9 today with the command sudo apt-get install
>>>>>>>>> sphinxsearch
>> 
>>>>>>>>> $ search
>>>>>>>>> Sphinx 0.9.9-release (r2117)
>>>>>>>>> Copyright (c) 2001-2009, Andrew Aksyonoff
>> 
>>>>>>>>> Usage: search [OPTIONS] <word1 [word2 [word3 [...]]]>
>> 
>>>>>>>>> Then I create a new project to test it,here is the gemfile
>>>>>>>>> gem 'rails', '3.0.7'
>>>>>>>>> gem 'rake', '0.8.7'
>>>>>>>>> gem 'mysql2', '~>0.2.7'
>> 
>>>>>>>>> gem 'thinking-sphinx', '2.0.4'
>> 
>>>>>>>>> group :development do
>>>>>>>>> gem 'faker'
>>>>>>>>> end
>> 
>>>>>>>>> but I couldn't generate any model or use the 'rake' command
>>>>>>>>> error : cannot find rake-0.9.0 any of the sources
>> 
>>>>>>>>> I installed rake-0.9.0 before, but there're other error
>>>>>>>>> so I unstalled it ,and specified the 0.8.7 version in the gemfile
>>>>>>>>> but still got the error
>>>>>>>>> On 5月22日, 下午4时11分, Pat Allan <[email protected]> wrote:
>>>>>>>>>> You'll need the latest TS edge (from GitHub), instead of 2.0.4, if 
>>>>>>>>>> you're using Sphinx 2.0.x.
>> 
>>>>>>>>>> --
>>>>>>>>>> Pat
>> 
>>>>>>>>>> On 22/05/2011, at 5:47 PM,Jewellerwrote:
>> 
>>>>>>>>>>> Hi,there
>>>>>>>>>>> I need some help.
>> 
>>>>>>>>>>> can't stop thinking_sphinx with rake thinking_sphinx:stop
>> 
>>>>>>>>>>> I'm using thinking-sphinx 2.0.4, rails 3.0.7
>> 
>>>>>>>>>>> here's the erro messages:
>> 
>>>>>>>>>>> Unsupported version: 2.0.2
>> 
>>>>>>>>>>> For more information, read the documentation:
>>>>>>>>>>> http://freelancing-god.github.com/ts/en/advanced_config.html
>> 
>>>>>>>>>>> rake aborted!
>>>>>>>>>>> execution expired
>>>>>>>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/riddle-1.3.2/lib/riddle/
>>>>>>>>>>> controller.rb:74:in `kill'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/riddle-1.3.2/lib/riddle/
>>>>>>>>>>> controller.rb:74:in `running?'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/riddle-1.3.2/lib/riddle/
>>>>>>>>>>> controller.rb:62:in `ensure in stop'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/riddle-1.3.2/lib/riddle/
>>>>>>>>>>> controller.rb:62:in `stop'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/thinking-sphinx-2.0.4/lib/
>>>>>>>>>>> thinking_sphinx/tasks.rb:56:in `block (3 levels) in <top 
>>>>>>>>>>> (required)>'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/thinking-sphinx-2.0.4/lib/
>>>>>>>>>>> thinking_sphinx/tasks.rb:55:in `block (2 levels) in <top 
>>>>>>>>>>> (required)>'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:634:in `call'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:629:in `each'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:629:in `execute'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:595:in `block in
>>>>>>>>>>> invoke_with_call_chain'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:588:in 
>>>>>>>>>>> `invoke_with_call_chain'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:581:in `invoke'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in
>>>>>>>>>>> top_level'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2019:in `each'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2058:in
>>>>>>>>>>> `standard_exception_handling'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
>>>>>>>>>>> /usr/local/ruby/lib/ruby/1.9.1/rake.rb:1992:in `run'
>>>>>>>>>>> /usr/bin/rake:28:in `<main>'
>> 
>>>>>>>>>>> --
>>>>>>>>>>> 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 
>>>>>>>>> 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 
>>>>>>> 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 
>>>>> 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 
>>> 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