Closed ricardohsd closed 11 years ago
Hi Ricardo
Have you recently upgraded your versions of Thinking Sphinx and/or ts-delayed-delta? I'm wondering if there's a job created by an old version of ts-delayed-delta in the queue, and the new version doesn't know how to handle that.
Given it's been a few days, maybe you've cleared the queue already... if not, give that a shot (fire up script/console, run ThinkingSphinx::Deltas::Job.cancel_thinking_sphinx_jobs).
Pat
Hi folks,
I got this error when i run rake ts:dd in development environment.
Invoke ts:dd (first_time) Invoke thinking_sphinx:delayed_delta (first_time) Invoke thinking_sphinx:app_env (first_time) Execute thinking_sphinx:app_env Invoke environment (first_time) Execute environment Execute thinking_sphinx:delayed_delta Starting job worker host:MacBook-de-Ricardo-Domingos.local pid:11614 rake aborted! You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.join /Library/Ruby/Gems/1.8/gems/ts-delayed-delta-1.1.0/lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb:17:in
display_name' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:54:in
name' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:84:inrun_with_lock' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:153:in
reserve_and_run_one_job' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:152:ineach' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:152:in
reserve_and_run_one_job' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:199:inwork_off' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:198:in
times' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:198:inwork_off' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:28:in
start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:inrealtime' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:27:in
start' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:24:inloop' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:24:in
start' /Library/Ruby/Gems/1.8/gems/ts-delayed-delta-1.1.0/lib/thinking_sphinx/deltas/delayed_delta/tasks.rb:11 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
execute' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
execute' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
synchronize' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
invoke_prerequisites' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ineach' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
invoke_prerequisites' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:ininvoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
synchronize' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
invoke' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
top_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in
load' /usr/bin/rake:19I using Sphinx 0.9.8-rc2 (r1234) and I setup in my environment.rb:
config.gem 'delayed_job', :version => '1.8.4' config.gem 'thinking-sphinx', :version => '1.3.18', :lib => 'thinking_sphinx' config.gem 'ts-delayed-delta', :version => '1.1.0', :lib => 'thinking_sphinx/deltas/delayed_delta', :source => 'http://gemcutter.org'
Somebody knows what's happend? It's problem with gems version?
thanks