Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOSCRIPT No matching script. Please use EVAL. #168

Closed
itsmechlark opened this issue Feb 18, 2016 · 15 comments · Fixed by #178 or CruGlobal/measurements-api#70
Closed

NOSCRIPT No matching script. Please use EVAL. #168

itsmechlark opened this issue Feb 18, 2016 · 15 comments · Fixed by #178 or CruGlobal/measurements-api#70

Comments

@itsmechlark
Copy link

An exception occurred: 'aquire_lock.lua

NOSCRIPT No matching script. Please use EVAL.

local unique_key = KEYS[1]
local job_id     = ARGV[1]
local expires    = ARGV[2]
local stored_jid = redis.pcall('get', unique_key)

if stored_jid then
 if stored_jid == job_id then
   return 1
 else
   return 0
 end
end

if redis.pcall('set', unique_key, job_id, 'nx', 'ex', expires) then
 redis.pcall('hsetnx', 'uniquejobs', job_id, unique_key)
 return 1
else
 return 0
end
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis/client.rb:114:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic-redis-2.0.2/lib/newrelic_redis/instrumentation.rb:36:in 'block in call_with_newrelic_trace'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/datastores.rb:111:in 'block in wrap'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/method_tracer.rb:73:in 'block in trace_execution_scoped'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/method_tracer_helpers.rb:82:in 'trace_execution_scoped'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/method_tracer.rb:71:in 'trace_execution_scoped'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/datastores.rb:108:in 'wrap'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic-redis-2.0.2/lib/newrelic_redis/instrumentation.rb:35:in 'call_with_newrelic_trace'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2340:in 'block in _eval'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:57:in 'block in synchronize'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in 'mon_synchronize'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:57:in 'synchronize'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2339:in '_eval'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/redis-3.2.2/lib/redis.rb:2391:in 'evalsha'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq_unique_jobs/scripts.rb:28:in 'block in call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq-unique-jobs.rb:67:in 'block in connection'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq.rb:84:in 'block in redis'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:in 'block (2 levels) in with'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in 'handle_interrupt'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in 'block in with'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in 'handle_interrupt'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in 'with'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq.rb:81:in 'redis'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq-unique-jobs.rb:67:in 'connection'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq_unique_jobs/scripts.rb:26:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq_unique_jobs/lock/until_executed.rb:40:in 'lock'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq_unique_jobs/client/middleware.rb:31:in 'aquire_lock'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq_unique_jobs/client/middleware.rb:26:in 'disabled_or_successfully_locked?'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.13/lib/sidekiq_unique_jobs/client/middleware.rb:18:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq/middleware/chain.rb:129:in 'block in invoke'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq/middleware/chain.rb:132:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq/middleware/chain.rb:132:in 'invoke'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq/client.rb:199:in 'process_single'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq/client.rb:64:in 'push'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/sidekiq-4.1.0/lib/sidekiq/client.rb:119:in 'push'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/queue_adapters/sidekiq_adapter.rb:21:in 'enqueue'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/enqueuing.rb:71:in 'block in enqueue'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in 'block (2 levels) in compile'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in 'block (2 levels) in around'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in 'block (2 levels) in simple'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/instrumentation/active_job.rb:54:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/instrumentation/active_job.rb:54:in 'block in run_in_trace'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/method_tracer.rb:73:in 'block in trace_execution_scoped'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/method_tracer_helpers.rb:82:in 'trace_execution_scoped'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/method_tracer.rb:71:in 'trace_execution_scoped'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/instrumentation/active_job.rb:53:in 'run_in_trace'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/instrumentation/active_job.rb:32:in 'enqueue'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.14.1.311/lib/new_relic/agent/instrumentation/active_job.rb:16:in 'block (3 levels) in <top (required)>'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in 'instance_exec'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in 'block in make_lambda'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in 'block in simple'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in 'block in around'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in 'block (2 levels) in around'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:343:in 'block (2 levels) in simple'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:14:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:14:in 'block (3 levels) in <module:Logging>'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:45:in 'tag_logger'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/logging.rb:13:in 'block (2 levels) in <module:Logging>'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in 'instance_exec'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:441:in 'block in make_lambda'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:342:in 'block in simple'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in 'block in around'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in '__run_callbacks__'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in '_run_enqueue_callbacks'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in 'run_callbacks'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/enqueuing.rb:67:in 'enqueue'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activejob-4.2.5.1/lib/active_job/enqueuing.rb:17:in 'perform_later'
/var/www/cdasiaonline/releases/20160218044526/app/models/concerns/document_pdf_generatable.rb:14:in 'generate_pdf_if_needed'
/var/www/cdasiaonline/releases/20160218044526/app/controllers/concerns/basic_document.rb:40:in 'block (2 levels) in show'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/mime_responds.rb:217:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/mime_responds.rb:217:in 'respond_to'
/var/www/cdasiaonline/releases/20160218044526/app/controllers/concerns/basic_document.rb:31:in 'show'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in 'send_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in 'block in process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in 'block (2 levels) in compile'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in 'block (2 levels) in around'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in 'block (2 levels) in halting'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/marginalia-1.3.0/lib/marginalia.rb:77:in 'record_query_comment'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in 'block in make_lambda'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in 'block in halting'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in 'block in around'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in 'call'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in '__run_callbacks__'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in '_run_process_action_callbacks'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in 'run_callbacks'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in 'block in process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in 'block in instrument'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in 'instrument'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in 'instrument'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in 'process_action'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:in 'process'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in 'process'
/var/www/cdasiaonline/shared/bundle/ruby/2.2.0/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:in 'dispatch'

Redis server v=3.0.6 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=efefc210bd1220c
rails v4.2.5.1
sidekiq v4.2.5.1
redis v3.2.2

@warmwind
Copy link

I got the same error when try to add scheduled jobs to the queue through UI

@itsmechlark
Copy link
Author

@mhenrixon, this gems works great but hopefully this will be fix. I'll try to send some pull request if I have some extra time. ;)

@mhenrixon
Copy link
Owner

Woops sorry I missed this, what seems to be the problem? What environment etc?

@itsmechlark
Copy link
Author

Production environment. @warmwind, what redis-server are you using?

@warmwind
Copy link

@itsmechlark it is Redis server v=3.0.3 sha=00000000:0 malloc=libc bits=64 build=da32bfb2228a888d
I got the error several times in localhost, however, it cannot be reproduced for now.
I'll let you know if it happened next time.

@agnessa
Copy link

agnessa commented Mar 24, 2016

I see the same problem with Redis server v=3.0.3 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=4284de9902883ae9 and the following gems:
redis 3.2.1
rails 3.2.22.2
sidekiq 3.4.2
sidekiq-unique-jobs 4.0.9

A SidekiqUniqueJobs::ScriptError occurred in background at 2016-03-24 11:22:21 UTC :

synchronize.lua

NOSCRIPT No matching script. Please use EVAL.

local unique_key = KEYS[1]
local time = ARGV[1]

if redis.pcall('set', unique_key, time + 60, 'nx', 'ex', 60) then
return 1
end

local stored_time = redis.pcall('get', unique_key)
if stored_time and stored_time < time then
if redis.pcall('set', unique_key, time + 60, 'xx', 'ex', 60) then
return 1
end
end

return 0
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis/client.rb:113:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:2277:inblock in _eval'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:37:in block in synchronize' /home/wcmc/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:37:in synchronize' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:2276:in_eval'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:2328:in evalsha' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-namespace-1.5.2/lib/redis/namespace.rb:393:incall_with_namespace'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-namespace-1.5.2/lib/redis/namespace.rb:290:in method_missing' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:28:inblock in call'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq-unique-jobs.rb:66:in block in connection' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:inblock (2 levels) in with'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in handle_interrupt' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:inblock in with'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in handle_interrupt' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:inwith'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq.rb:81:in redis' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq-unique-jobs.rb:66:inconnection'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:26:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:27:inlocked?'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:17:in synchronize' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb:6:inexecute'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/server/middleware.rb:18:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/active_record.rb:6:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:15:in block in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/logging.rb:30:inwith_context'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:11:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:ininvoke'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:51:in block in process' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:98:instats'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:50:in process' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:indispatch'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:31:inrescue in call'


Backtrace:

/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:31:in rescue in call' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:26:incall'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:27:in locked?' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:17:insynchronize'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb:6:in execute' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/server/middleware.rb:18:incall'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:in block in invoke' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/active_record.rb:6:incall'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:in block in invoke' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:incall'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:in block in invoke' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:15:inblock in call'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/logging.rb:30:in with_context' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:11:incall'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:in block in invoke' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:incall'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:in invoke' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:51:inblock in process'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:98:in stats' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:50:inprocess'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in public_send' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in dispatch' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task'
/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' /home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create'


Data:

  • data: {:sidekiq=>
    {"class"=>"RefreshDocumentsWorker",
    "args"=>[],
    "retry"=>true,
    "queue"=>"admin",
    "backtrace"=>50,
    "unique"=>"until_and_while_executing",
    "jid"=>"93ce550c9a4bdd33a11e60b3",
    "created_at"=>1458818541.268144,
    "unique_prefix"=>"uniquejobs",
    "unique_args"=>[],
    "unique_digest"=>"uniquejobs:bc887993208d76af2918e3d79e687245",
    "enqueued_at"=>1458818541.2765877,
    "error_message"=>
    "synchronize.lua\n\nNOSCRIPT No matching script. Please use EVAL.\n\nlocal unique_key = KEYS[1]\nlocal time = ARGV[1]\n\nif redis.pcall('set', unique_key, time + 60, 'nx', 'ex', 60) then\n return 1\nend\n\nlocal stored_time = redis.pcall('get', unique_key)\nif stored_time and stored_time < time then\n if redis.pcall('set', unique_key, time + 60, 'xx', 'ex', 60) then\n return 1\n end\nend\n\nreturn 0\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis/client.rb:113:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:2277:inblock in _eval'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:37:in block in synchronize'\n/home/wcmc/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:37:in synchronize'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:2276:in_eval'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-3.2.1/lib/redis.rb:2328:in evalsha'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-namespace-1.5.2/lib/redis/namespace.rb:393:incall_with_namespace'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/redis-namespace-1.5.2/lib/redis/namespace.rb:290:in method_missing'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:28:inblock in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq-unique-jobs.rb:66:in block in connection'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:inblock (2 levels) in with'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in handle_interrupt'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:inblock in with'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in handle_interrupt'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:inwith'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq.rb:81:in redis'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq-unique-jobs.rb:66:inconnection'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:26:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:27:inlocked?'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:17:in synchronize'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb:6:inexecute'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/server/middleware.rb:18:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/active_record.rb:6:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:15:in block in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/logging.rb:30:inwith_context'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:11:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:in call'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:ininvoke'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:51:in block in process'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:98:instats'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:50:in process'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:indispatch'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize'\n/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in block in create'", "error_class"=>"SidekiqUniqueJobs::ScriptError", "failed_at"=>1458818541.2887292, "retry_count"=>0, "error_backtrace"=> ["/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:31:inrescue in call'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/scripts.rb:26:in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:27:inlocked?'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/while_executing.rb:17:in synchronize'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb:6:inexecute'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.9/lib/sidekiq_unique_jobs/server/middleware.rb:18:in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/active_record.rb:6:in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:15:in block in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/logging.rb:30:inwith_context'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/server/logging.rb:11:in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:129:inblock in invoke'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:in call'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/middleware/chain.rb:132:ininvoke'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:51:in block in process'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:98:instats'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/sidekiq-3.4.2/lib/sidekiq/processor.rb:50:in process'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in dispatch'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:indispatch'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in block in invoke'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:inblock in task'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in block in task'", "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:inblock in initialize'",
    "/home/wcmc/elibrary/shared/bundle/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'"]}}

@agnessa
Copy link

agnessa commented Mar 30, 2016

Same issue with sidekiq-unique-jobs 4.0.17

@mhenrixon
Copy link
Owner

I honestly can't see how this could possibly have anything to do with the gem. Before using the script there is a call to check for if it has been added and adding it if not. Can anyone think of what might be possibly go wrong here?

@agnessa
Copy link

agnessa commented Mar 30, 2016

It looks like the root cause might be a terminated redis connection, in our case due to exceeding max file descriptors. Would it be possible for the gem to handle that exception separately? I suppose the error message leads people to think this is coming from the gem when in fact they should be looking elsewhere :)

@thedanielhanke
Copy link

+1, same issue here sidekiq-unique-jobs 4.0.17, redis 2.8.4 behind ha proxy.
after restarting both (sorry, i did both at once) app and sidekiq the error was gone.

@otzy007
Copy link
Contributor

otzy007 commented Apr 1, 2016

same issue with redis 3.0.0, sidekiq-unique-jobs 4.0.17 and sidekiq 3.4.1

SidekiqUniqueJobs::ScriptError: synchronize.lua NOSCRIPT No matching script. Please use EVAL. local unique_key = KEYS[1] local time = ARGV[1] local expires = ARGV[2] if redis.pcall('set', unique_key, time + expires, 'nx', 'ex', expires) then return 1 end local stored_time = redis.pcall('get', unique_key) if stored_time and stored_time < time then if redis.pcall('set', unique_key, time + expires, 'xx', 'ex', expires) then return 1 end end return 0 shared/bundle/jruby/1.9/gems/redis-3.2.2/lib/redis/client.rb:114:in `call' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/redis.rb:42:in `call' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/datastores.rb:111:in `wrap' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/datastores.rb:110:in `wrap' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/method_tracer.rb:73:in `trace_execution_scoped' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/method_tracer_helpers.rb:81:in `trace_execution_scoped' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/method_tracer.rb:71:in `trace_execution_scoped' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/datastores.rb:108:in `wrap' shared/bundle/jruby/1.9/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/redis.rb:41:in `call' shared/bundle/jruby/1.9/gems/redis-3.2.2/lib/redis.rb:2340:in `_eval' shared/bundle/jruby/1.9/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize' /usr/local/rvm/rubies/jruby-1.7.23/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize' /usr/local/rvm/rubies/jruby-1.7.23/lib/ruby/1.9/monitor.rb:210:in `mon_synchronize' shared/bundle/jruby/1.9/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize' shared/bundle/jruby/1.9/gems/redis-3.2.2/lib/redis.rb:2339:in `_eval' shared/bundle/jruby/1.9/gems/redis-3.2.2/lib/redis.rb:2391:in `evalsha' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/scripts.rb:28:in `call' /shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq-unique-jobs.rb:68:in `connection' shared/bundle/jruby/1.9/gems/connection_pool-2.2.0/lib/connection_pool.rb:78:in `with' shared/bundle/jruby/1.9/gems/connection_pool-2.2.0/lib/connection_pool.rb:77:in `with' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq.rb:81:in `redis' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq-unique-jobs.rb:68:in `connection' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/scripts.rb:26:in `call' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/lock/while_executing.rb:27:in `locked?' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/lock/while_executing.rb:17:in `synchronize' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/lock/while_executing.rb:37:in `execute' shared/bundle/jruby/1.9/gems/sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/server/middleware.rb:16:in `call' /shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129:in `invoke' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/server/active_record.rb:6:in `call' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129:in `invoke'shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129:in `invoke'shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/server/logging.rb:15:in `call' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/logging.rb:30:in `with_context' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/server/logging.rb:11:in `call' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129:in `invoke' org/jruby/RubyProc.java:281:in `call' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:132:in `invoke' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/processor.rb:51:in `process' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/processor.rb:98:in `stats' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/processor.rb:97:in `stats' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/processor.rb:50:in `process' shared/bundle/jruby/1.9/gems/sidekiq-3.4.1/lib/sidekiq/processor.rb:44:in `process' org/jruby/RubyKernel.java:1930:in `public_send' shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'/shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch' shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `invoke'shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `task' /shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `task' shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `initialize' shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:47:in `initialize' shared/bundle/jruby/1.9/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `create'

Backtrace

sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/scripts.rb:32→ call
sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/scripts.rb:26→ call
sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/lock/while_executing.rb:27→ locked?
sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/lock/while_executing.rb:17→ synchronize
sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/lock/while_executing.rb:37→ execute
sidekiq-unique-jobs-4.0.17/lib/sidekiq_unique_jobs/server/middleware.rb:16→ call
sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129→ invoke
sidekiq-3.4.1/lib/sidekiq/middleware/server/active_record.rb:6→ call
sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129→ invoke
sidekiq-3.4.1/lib/sidekiq/middleware/server/retry_jobs.rb:74→ call
sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129→ invoke
sidekiq-3.4.1/lib/sidekiq/middleware/server/logging.rb:15→ call
sidekiq-3.4.1/lib/sidekiq/logging.rb:30→ with_context
sidekiq-3.4.1/lib/sidekiq/middleware/server/logging.rb:11→ call
sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:129→ invoke
org/jruby/RubyProc.java:281→ call
sidekiq-3.4.1/lib/sidekiq/middleware/chain.rb:132→ invoke
sidekiq-3.4.1/lib/sidekiq/processor.rb:51→ process
sidekiq-3.4.1/lib/sidekiq/processor.rb:98→ stats
sidekiq-3.4.1/lib/sidekiq/processor.rb:97→ stats
sidekiq-3.4.1/lib/sidekiq/processor.rb:50→ process
sidekiq-3.4.1/lib/sidekiq/processor.rb:44→ process
org/jruby/RubyKernel.java:1930→ public_send
celluloid-0.16.0/lib/celluloid/calls.rb:26→ dispatch
celluloid-0.16.0/lib/celluloid/calls.rb:122→ dispatch
celluloid-0.16.0/lib/celluloid/cell.rb:60→ invoke
celluloid-0.16.0/lib/celluloid/cell.rb:71→ task
celluloid-0.16.0/lib/celluloid/actor.rb:357→ task
celluloid-0.16.0/lib/celluloid/tasks.rb:57→ initialize
celluloid-0.16.0/lib/celluloid/tasks.rb:47→ initialize
celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15→ create

@otzy007
Copy link
Contributor

otzy007 commented Apr 4, 2016

Hi,

I've pushed the fix on PR #178

In order to get the NOSCRIPT error you can run a few sidekiq jobs, then run SCRIPT FLUSH in redis-cli and then enqueue a few more jobs.

@strtwtsn
Copy link

strtwtsn commented Apr 5, 2016

Hi,

I've tried the version from the pull request and it fixes the problem we were having.....this was using version 3.0.7 of redis.

mhenrixon added a commit that referenced this issue Apr 11, 2016
fix for #168. Handle the NOSCRIPT by sending the script again
@TangMonk
Copy link

same problem

@varunlalan
Copy link

varunlalan commented Sep 26, 2016

Was facing same issue. Resolved it by upgrading sidekiq and sidekiq-unique-jobs.

sidekiq - 4.2.1
sidekiq-unique-jobs - 4.0.18
redis - 3.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants