pat / ts-delayed-delta

Manage delta indexes via Delayed Job for Thinking Sphinx
http://ts.freelancing-gods.com
MIT License
73 stars 33 forks source link

Error when run rake ts:dd #4

Closed ricardohsd closed 11 years ago

ricardohsd commented 14 years ago

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:inname' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:84:in run_with_lock' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:153:inreserve_and_run_one_job' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:152:in each' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:152:inreserve_and_run_one_job' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:199:in work_off' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:198:intimes' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/job.rb:198:in work_off' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:28:instart' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:27:instart' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:24:in loop' /Library/Ruby/Gems/1.8/gems/delayed_job-1.8.4/lib/delayed/worker.rb:24:instart' /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:in call' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:ininvoke_prerequisites' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ininvoke_prerequisites' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /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:2023:intop_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /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:1998:in run' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:inload' /usr/bin/rake:19

I 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

pat commented 14 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