tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/1060-ssl-errorFlying Sphinx: Discussion 2018-10-19T03:09:29Ztag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-09-29T07:02:52Z2013-09-29T07:02:52ZSSL error<div><p>Hi Matt</p>
<p>This is odd - the current certificate's good until February next
year. I've not seen this error crop up in my own apps, and there's
been no recent changes really to the Flying Sphinx setup at all in
the last couple of weeks, and especially not anything SSL
related.</p>
<p>The Pusher SSL certs also seem to be up to date (expiring
November next year) - so this is certainly surprising. Is this
error cropping up on every Flying Sphinx command? Only
sometimes?</p>
<p>Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-09-29T07:19:09Z2013-09-29T07:19:09ZSSL error<div><p>It's happening processing ts deltas through resque. Here is my
Gemfile:<br>
gem 'thinking-sphinx', '3.0.3'<br>
gem 'mysql2', '0.3.12b5' # required by thinking-sphinx, even though
we use<br>
pg (they use the mysql protocol for connections)<br>
gem 'ts-resque-delta', :github => 'pat/ts-resque-delta', :branch
=><br>
'all-ts-versions', :ref =>
'a38e7b104a3072aa85a02196d7f2913f9e47bf07' # this is the only
version that works with TS3 and Flying Sphinx</p>
<p>Wasn't having any trouble like this until yesterday. Now my
error logs are<br>
full of these SSL errors...</p></div>Matt Olsontag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-09-29T07:32:41Z2013-09-29T07:32:41ZSSL error<div><p>Just looking through the Pusher gem's code - it's providing a
path to a local cert file to connect to ws.pusherapp.com, but I
can't think of why that would stop working.</p>
<p>Does it happen when you run a full index? Or only via Resque?
I'm presuming Resque has been restarted since this first started
appearing?</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-09-29T18:21:33Z2013-09-29T18:21:33ZSSL error<div><p>The error persists even after a restart of the workers. Doesn't
happen<br>
with heroku run bundle exec flying-sphinx index, only when
processing<br>
deltas via Resque. Nothing has changed on my end in weeks, so there
must be<br>
a misconfigured certificate somewhere, or a library change that
triggers a<br>
different certificate validation, or something along those
lines...</p></div>Matt Olsontag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-09-30T12:06:07Z2013-09-30T12:06:07ZSSL error<div><p>The fact that it's only happening within Resque is really odd.
And if you've not made any changes but it's just stopped working is
even odder.</p>
<p>I'm going to try to get an sample app in place to debug
further.</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-09-30T12:25:00Z2013-09-30T12:25:00ZSSL error<div><p>Sample app with Resque hits the error on standard flying-sphinx
commands (not even getting through to deltas), but an equivalent
app with Sidekiq only has the problem when running the 'stop'
command.</p>
<p>Apps in question are <a href=
"https://github.com/sphinxtamers/rails32_mri193_v4_sidekiq_ts3">https://github.com/sphinxtamers/rails32_mri193_v4_sidekiq_ts3</a>
and <a href=
"https://github.com/sphinxtamers/rails32_mri193_v4_resque_ts3">https://github.com/sphinxtamers/rails32_mri193_v4_resque_ts3</a></p>
<p>Also of note: <a href=
"https://github.com/pusher/pusher-ruby-client/pull/21">https://github.com/pusher/pusher-ruby-client/pull/21</a></p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-10-01T12:43:05Z2013-10-01T12:43:05ZSSL error<div><p>Matt, I've just heard back from the Pusher team, they've just
tweaked their cert setup, and I'm now finding both of those test
apps I've mentioned are working reliably. I'm hoping the same is
the case for your delta jobs! Let me know either way.</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/290815622013-10-03T15:33:05Z2013-10-03T15:33:06ZSSL error<div><p>Yep, problem solved. Thanks!</p></div>Matt Olson