tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/664-flying-sphinx-and-sidekiqFlying Sphinx: Discussion 2016-08-11T01:33:06Ztag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-04-20T05:33:40Z2013-04-20T05:54:24ZFlying Sphinx and Sidekiq<div><p>I'm afraid I've reached a point of total helplessness re: Flying
Sphinx and Sidekiq. It appears that Sidekiq and FS are not able to
communicate in production.</p>
<p>I am in TS3 and using Sidekiq to run delta indexing - it works
great in development and actually worked for some time in
production yesterday. But today when I run:</p>
<p>heroku run bundle exec sidekiq -q ts_delta</p>
<p>I get the following error:</p>
<p>undefined local variable or method `decode_frame' for
#<a>WebSocket::Frame::Incoming::Server:0x000000048cac40</a></p>
<p>and at the end a long series of:</p>
<p>Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected<br>
Disconnect attempted... not connected</p>
<p>I can provide more info on this so we can solve it together - am
at my computer until about 2 AM today (it's already been a long
day) and can rpovide any info necessary!</p>
<p>Fingers crosses,</p>
<p>Laurent.</p>
<p>PS: including the error report from new relick:</p>
<p>action.rb: 22:in <code>sleep'
…flying-sphinx-e1395e724afb/lib/flying_sphinx/action.rb:
22:in</code>block in perform'<br>
/usr/local/lib/ruby/1.9.1/timeout.rb: 58:in <code>timeout'
…flying-sphinx-e1395e724afb/lib/flying_sphinx/action.rb:
15:in</code>perform'<br>
…flying-sphinx-e1395e724afb/lib/flying_sphinx/action.rb: 5:in
<code>perform'
…ng-sphinx-e1395e724afb/lib/flying_sphinx/controller.rb:
37:in</code>index'<br>
…/lib/thinking_sphinx/deltas/sidekiq_delta/delta_job.rb:
14:in <code>perform'
…uby/1.9.1/gems/sidekiq-2.10.1/lib/sidekiq/processor.rb:
49:in</code>block (3 levels) in process'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
109:in <code>call'
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
109:in</code>block in invoke'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
111:in <code>block in invoke'
…idekiq-2.10.1/lib/sidekiq/middleware/server/timeout.rb:
14:in</code>call'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
111:in <code>block in invoke'
…-2.10.1/lib/sidekiq/middleware/server/active_record.rb:
6:in</code>call'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware//app/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rbchain.rb:
111:in <code>block in invoke'
…kiq-2.10.1/lib/sidekiq/middleware/server/retry_jobs.rb:
50:in</code>call'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
111:in <code>block in invoke'
…idekiq-2.10.1/lib/sidekiq/middleware/server/logging.rb:
11:in</code>block in call'<br>
…/ruby/1.9.1/gems/sidekiq-2.10.1/lib/sidekiq/logging.rb:
22:in <code>with_context'
…idekiq-2.10.1/lib/sidekiq/middleware/server/logging.rb:
7:in</code>call'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
111:in <code>block in invoke'
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
114:in</code>call'<br>
….1/gems/sidekiq-2.10.1/lib/sidekiq/middleware/chain.rb:
114:in <code>invoke'
…uby/1.9.1/gems/sidekiq-2.10.1/lib/sidekiq/processor.rb:
48:in</code>block (2 levels) in process'<br>
…uby/1.9.1/gems/sidekiq-2.10.1/lib/sidekiq/processor.rb:
87:in <code>stats'
…uby/1.9.1/gems/sidekiq-2.10.1/lib/sidekiq/processor.rb:
47:in</code>block in process'<br>
…uby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:
23:in <code>call'
…uby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:
23:in</code>public_send'<br>
…uby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:
23:in <code>dispatch'
…by/1.9.1/gems/celluloid-0.12.4/lib/celluloid/future.rb:
18:in</code>block in initialize'<br>
…1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:
48:in <code>call'
…1/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:
48:in</code>block in create</p></div>lgorsetag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-04-20T07:09:55Z2013-04-20T07:09:55ZFlying Sphinx and Sidekiq<div><p>Hi Laurent</p>
<p>I've just woken from a decent sleep after 29 hours of travel
(hence not much in the way of replies lately). Can you add me to
your Heroku app so I can debug directly? My Heroku account email is
<a href=
"mailto:pat@freelancing-gods.com">pat@freelancing-gods.com</a>.</p>
<p>Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-04-20T07:37:25Z2013-04-20T07:37:25ZFlying Sphinx and Sidekiq<div><p>Hey Pat just responded from my @stanford.edu e-mail address<br>
(<a href="mailto:lgorse@stanford.edu">lgorse@stanford.edu</a>)</p>
<p>I use that one most of the time,</p></div>lgorsetag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-06-12T00:05:06Z2013-06-12T00:05:07ZFlying Sphinx and Sidekiq<div><p>Hello! I'm getting the same error now on Heroku with Flying
Sphinx and Sidekiq. I am using delta indexing and the worker is
crashing with the same web socket bug. I tried making my app
threadsafe via config.threadsafe! after seeing this <a href=
"http://stackoverflow.com/questions/16117585/re-flying-sphinx-and-sidekiq">
http://stackoverflow.com/questions/16117585/re-flying-sphinx-and-si...</a>
but it is still happening.</p>
<p>Please help!</p></div>Matt Olsontag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-06-12T02:08:11Z2013-06-12T02:08:11ZFlying Sphinx and Sidekiq<div><p>Hi Matt</p>
<p>Can you let us know what versions of flying-sphinx,
thinking-sphinx, rails and ts-sidekiq-delta you're using? Also,
what's your app's name so I can check out things within the Flying
Sphinx servers?</p>
<p>Cheers</p>
<h2><a href="#" class="anchor" name=""></a></h2>
<p>Pat</p>
<p>On 12/06/2013, at 10:05 AM, Matt Olson wrote:</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-06-12T02:53:51Z2013-06-12T02:53:52ZFlying Sphinx and Sidekiq<div><p>Hi Pat,</p>
<p>flying-sphinx (1.0.0)<br>
thinking-sphinx (3.0.3)<br>
gem 'ts-sidekiq-delta', :github => 'pat/ts-resque-delta',
:branch => 'sidekiq', :ref =>
'5bae80758c332aa0ff987881934ee644085947a7'</p>
<p>App name is studentstock-prod. I have since disabled delta
indexing and the problem disappeared, but I would love to get it
back! I'm concerned I'll need to switch to Resque or Delayed
Job.</p>
<p>Thanks,<br>
Matt</p></div>Matt Olsontag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-06-12T04:04:51Z2013-06-12T04:04:51ZFlying Sphinx and Sidekiq<div><p>Hi Matt</p>
<p>If you add me to the app, I'm happy to re-add the deltas in and
help get them working reliably, if you'd like? My email address is
pat at freelancing-gods dot com.</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-07-06T04:00:34Z2013-07-06T04:00:37ZFlying Sphinx and Sidekiq<div><p>Hi Pat,</p>
<p>Thanks for the offer, but we ended up switching out Sidekiq for
Resque. We then used your branch of ts-resque-delta with:<br>
<code>gem 'ts-resque-delta', :github => 'pat/ts-resque-delta',
:branch => 'all-ts-versions', :ref =>
'a38e7b104a3072aa85a02196d7f2913f9e47bf07'</code></p>
<p>Everything is working smoothly!</p>
<p>Thanks,<br>
Matt</p></div>Matt Olsontag:support.flying-sphinx.com,2011-01-05:Comment/264879052013-07-06T11:22:33Z2013-07-06T11:22:33ZFlying Sphinx and Sidekiq<div><p>Great to hear you got it working one way or another :)</p></div>Pat Allan