tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/1175-flying-sphinx-rebuild-error-rake-aborted-cant-dup-nilclassFlying Sphinx: Discussion 2014-01-13T23:15:42Ztag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T20:49:03Z2014-01-13T20:49:03ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>Hi Mark</p>
<p>Firstly: I'd highly recommend upgrading flying-sphinx to 1.0.0,
as it's far more reliable than the earlier releases. The version of
Thinking Sphinx you're using may need to be upgraded as well though
to ensure things are working smoothly (to at least 2.1.0 if you're
using a 2.x release).</p>
<p>Secondly: I'm pretty sure this bug is dealt with in
flying-sphinx 1.0.0, but it's an indication that the expected ENV
variables don't seem to exist. Can you run <code>heroku
config</code> for your app and confirm that there are four
variables with the FLYING_SPHINX_ prefix?</p>
<p>Thanks</p>
<p>Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T22:05:36Z2014-01-13T22:05:38ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>Hi Pat,</p>
<p>Thanks for the reply.</p>
<p>I've updated my gemfile to flying sphinx 1.0.0 and thinking
sphinx 2.1.0, but now get this new error:</p>
<p>undefined method <code>match' for nil:NilClass
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:158:in</code>is_private_channel'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:138:in
<code>authorize'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:102:in</code>subscribe'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:132:in
<code>block in subscribe_all'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:131:in</code>each'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:131:in
<code>subscribe_all'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:36:in</code>block
in initialize'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/channel.rb:30:in
<code>call'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/channel.rb:30:in</code>block
in dispatch'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/channel.rb:29:in
<code>each'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/channel.rb:29:in</code>dispatch'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/channel.rb:22:in
<code>dispatch_with_all'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:201:in</code>send_local_event'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:73:in
<code>block (2 levels) in connect'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:67:in</code>loop'
/app/vendor/bundle/ruby/1.9.1/gems/pusher-client-0.4.0/lib/pusher-client/socket.rb:67:in
`block in connect'</p></div>Mark Walkertag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T22:23:21Z2014-01-13T22:23:21ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>Hi Mark</p>
<p>Just coming back to the second point of my previous message - do
the FLYING_SPHINX_* config variables exist in your app?</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T22:49:09Z2014-01-13T22:49:09ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>Hi Pat,</p>
<p>No, it doesn't seem those variables do exist right now.</p>
<p>How can I restore them?</p>
<p>Thanks</p></div>Mark Walkertag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T22:50:49Z2014-01-13T22:50:49ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>It would seem your app doesn't have the Flying Sphinx add-on
added at the moment - I'm not sure how that's the case (I don't
have the ability to remove an add-on from a customer's app). You'll
need to re-add it, and then run the rebuild task and you should be
fine.</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T22:58:59Z2014-01-13T22:59:02ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>Ok thanks, I'll see why it's been removed and ensure it gets
added back in.</p></div>Mark Walkertag:support.flying-sphinx.com,2011-01-05:Comment/310878872014-01-13T23:15:41Z2014-01-13T23:15:41ZFlying Sphinx rebuild error - rake aborted! can't dup NilClass<div><p>Rightio - please do get in touch if there's any issues :)</p></div>Pat Allan