So I was using my own custom capistrano TS tasks and I think there was some confusion in them in terms of current_path, current_release, I was able to fix that and also running ts:conf before ts:rebuild strangely did the trick. I can be more specific if you need more help or are still having this problem.
On May 2, 11:27 am, Avi Flombaum <[email protected]> wrote: > Also, it only happens during deploy, if i manually ssh in and run > ts:stop, everything works fine. > > aviflombaum@app-support001:~/dp-app/current$ cd /home/aviflombaum/dp- > app/current;rake ts:start RAILS_ENV=rimu-development --trace > (in /home/aviflombaum/dp-app/releases/20110428215855) > ** Invoke ts:start (first_time) > ** Invoke thinking_sphinx:start (first_time) > ** Invoke thinking_sphinx:app_env (first_time) > ** Execute thinking_sphinx:app_env > ** Invoke environment (first_time) > ** Execute environment > ** Execute thinking_sphinx:start > Started successfully (pid 537). > ** Execute ts:start > aviflombaum@app-support001:~/dp-app/current$ cd .. > aviflombaum@app-support001:~/dp-app$ cd current > aviflombaum@app-support001:~/dp-app/current$ rake ts:stop > RAILS_ENV=rimu-development > (in /home/aviflombaum/dp-app/releases/20110428215855) > Stopped search daemon (pid 537). > > vs > > * == Currently executing `deploy:sphinx:rebuild' > * executing "cd /home/aviflombaum/dp-app/releases/ > 20110502152055;rake ts:stop RAILS_ENV=rimu-development --trace" > servers: ["app-support001.dev.dal1.designerpages.com"] > [app-support001.dev.dal1.designerpages.com] executing command > ** [out :: app-support001.dev.dal1.designerpages.com] (in /home/ > aviflombaum/dp-app/releases/20110502152055) > ** [out :: app-support001.dev.dal1.designerpages.com] ** Invoke > ts:stop (first_time) > ** [out :: app-support001.dev.dal1.designerpages.com] ** Invoke > thinking_sphinx:stop (first_time) > ** [out :: app-support001.dev.dal1.designerpages.com] ** Invoke > thinking_sphinx:app_env (first_time) > ** [out :: app-support001.dev.dal1.designerpages.com] ** Execute > thinking_sphinx:app_env > ** [out :: app-support001.dev.dal1.designerpages.com] ** Invoke > environment (first_time) > ** [out :: app-support001.dev.dal1.designerpages.com] ** Execute > environment > ** [out :: app-support001.dev.dal1.designerpages.com] ** Execute > thinking_sphinx:stop > ** [out :: app-support001.dev.dal1.designerpages.com] rake aborted! > ** [out :: app-support001.dev.dal1.designerpages.com] execution > expired > ** [out :: app-support001.dev.dal1.designerpages.com] /usr/local/lib/ > ruby/1.8/timeout.rb:60 > ** [out :: app-support001.dev.dal1.designerpages.com] /home/ > aviflombaum/dp-app/shared/bundle/ruby/1.8/gems/thinking-sphinx-1.4.1/ > lib/thinking_sphinx/tasks.rb:58 > > On May 1, 11:14 pm, Ethan <[email protected]> wrote: > > > > > > > > > Yes, definitely. It's weird that's it's intermittent. > > > System info... > > > $ uname -a > > Linux apphost 2.6.31-302-rs #7 SMP Thu Oct 29 22:57:03 UTC 2009 x86_64 > > x86_64 x86_64 GNU/Linux > > > E > > > On May 1, 8:01 pm, Pat Allan <[email protected]> wrote:> The only > > task with a timeout is stop (which is called by rebuild), so it makes sense > > that indexing doesn't fire off an error. Are you certain that the user > > calling the task owns the existing searchd process? > > > > -- > > > Pat > > > > On 02/05/2011, at 12:40 PM, Ethan wrote: > > > > > Yes, searchd is still running. > > > > > Similar errors occur intermittently when I try to run ts:rebuild. > > > > > So far, ts:index does not seem to cause an error. > > > > > On May 1, 12:12 am, Pat Allan <[email protected]> wrote: > > > >> I've never seen this before, but I would guess that TS is trying to > > > >> stop Sphinx - and it tries for a while, before raising a Timeout error > > > >> (which is what you're seeing). > > > > >> Once you've run this task and it fails, is there still a searchd > > > >> process running? > > > > >> -- > > > >> Pat > > > > >> On 29/04/2011, at 8:21 AM, _Shadow wrote: > > > > >>> I'm finding that Thinking Sphinx sometimes errors out when I try to > > > >>> run its Rake tasks. Sometimes the tasks work fine, and sometimes I get > > > >>> errors like the one below. > > > > >>> I'm running the tasks as a normal user, not root. Not using sudo. > > > > >>> In the example below, searchd is still running after the Rake task > > > >>> fails. > > > > >>> I've also seen similar errors with ts:rebuild. > > > > >>> Has anyone else seen this? > > > > >>> I'm using Sphinx 0.9.9-release (r2117) > > > > >>> I'm using Thinking Sphinx 1.4.4 instead of the latest version because > > > >>> I'm on Rails 2.3.11. > > > > >>> --------------------------------------------------------------------------- > > > >>> ------------------------------- > > > > >>> $ rake ts:stop RAILS_ENV=production > > > >>> (in /var/www/blog_app/releases/20110425053509) > > > >>> rake aborted! > > > >>> execution expired > > > > >>> (See full trace by running task with --trace) > > > >>> [ethan@apphost current]$ rake ts:stop RAILS_ENV=production --trace > > > >>> (in /var/www/blog_app/releases/20110425053509) > > > >>> ** Invoke ts:stop (first_time) > > > >>> ** Invoke thinking_sphinx:stop (first_time) > > > >>> ** Invoke thinking_sphinx:app_env (first_time) > > > >>> ** Execute thinking_sphinx:app_env > > > >>> ** Invoke environment (first_time) > > > >>> ** Execute environment > > > >>> ** Execute thinking_sphinx:stop > > > >>> rake aborted! > > > >>> execution expired > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/timeout.rb:60 > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/thinking- > > > >>> sphinx-1.4.4/lib/thinking_sphinx/tasks.rb:58 > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:636:in `call' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:636:in `execute' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:631:in `each' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:631:in `execute' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:597:in `invoke_with_call_chain' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/monitor.rb:242:in > > > >>> `synchronize' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:590:in `invoke_with_call_chain' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:607:in `invoke_prerequisites' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:604:in `each' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:604:in `invoke_prerequisites' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:596:in `invoke_with_call_chain' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/monitor.rb:242:in > > > >>> `synchronize' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:590:in `invoke_with_call_chain' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:583:in `invoke' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2051:in `invoke_task' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2029:in `top_level' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2029:in `each' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2029:in `top_level' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2068:in `standard_exception_handling' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2023:in `top_level' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2001:in `run' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:2068:in `standard_exception_handling' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> lib/rake.rb:1998:in `run' > > > >>> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rake-0.8.7/ > > > >>> bin/rake:31 > > > >>> /opt/ruby/bin/rake:19:in `load' > > > >>> /opt/ruby/bin/rake:19 > > > > >>> -- > > > >>> 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.
