I've not seen that error before… may be a bug with the websocket gem (a 
dependency of flying-sphinx) going by a quick google search. Can you try the 
latest from GitHub?

  gem 'websocket',
    :git => 'git://github.com/imanel/websocket-ruby.git',
    :ref => '2af7ef381f'

On 19/04/2013, at 7:13 PM, Laurent Gorse wrote:

> The db doesn't update automatically.
> 
> I ran heroku run sidekiq -q ts_delta and the report showed this error after 
> the process had gone through some jobs (such as FlagAsDeletedJob or DeltaJob):
> 
> 2013-04-19T09:11:13Z 2 TID-pv66w 
> ThinkingSphinx::Deltas::SidekiqDelta::FlagAsDeletedJob 
> JID-12eb7391dc8b8a7d5b3fd681 INFO: start
> undefined local variable or method `decode_frame' for 
> #<WebSocket::Frame::Incoming::Server:0x0000000510f220>
> 
> 
> 
> On Fri, Apr 19, 2013 at 2:02 AM, Laurent Gorse <[email protected]> wrote:
> I ran the heroku command again (since I wsn't getting any results) and 
> messages state I am over request limit.
> 
> It's worth upgrading my Redis2Go so I will up it by 1 and then launch again.
> 
> 
> On Fri, Apr 19, 2013 at 1:55 AM, Pat Allan <[email protected]> wrote:
> Well, first thing to do is upgrade your RedisToGo plan… a single sidekiq 
> worker can certainly have higher concurrency (on the Flying Sphinx servers, I 
> have 20 workers in a process, which I think is the default).
> 
> If you need even more power, upgrade RedisToGo further and then add another 
> worker.
> 
> On 19/04/2013, at 6:50 PM, Laurent Gorse wrote:
> 
> > I'll give it a shot ASAP but listen. If I scale up, how should I think 
> > about managing that line of code?
> >
> >
> > On Fri, Apr 19, 2013 at 1:46 AM, Pat Allan <[email protected]> 
> > wrote:
> > Try the following in your Procfile:
> >
> >   worker: bundle exec sidekiq --concurrency 5 --queue default,ts_delta
> >
> > Keeps the number of workers down (this is for an app using the mini 
> > redistogo plan - free plan may require even lower concurrency).
> >
> >
> > On 19/04/2013, at 6:16 PM, Laurent Gorse wrote:
> >
> > > I ran heroku run sidekiq -q ts_delta
> > >
> > > manually and I got the error: MAXIMUM NUMBER OF CLIENTS REACHED
> > >
> > > Man, I literally tested this thing a few times. I have no users!
> > >
> > > I saw online some techniques on how to increase concurrency (?); is that 
> > > the way to go?
> > >
> > >
> > > On Fri, Apr 19, 2013 at 1:00 AM, Pat Allan <[email protected]> 
> > > wrote:
> > > Does the log output for your app (which includes the worker logs) provide 
> > > any clues?
> > >
> > > On 19/04/2013, at 5:57 PM, Laurent Gorse wrote:
> > >
> > > > Hey Pat thanks for responding.
> > > >
> > > > Here is my procfile:
> > > >
> > > > worker: bundle exec sidekiq -e production
> > > >
> > > > And I bought 1 worker on heroku
> > > >
> > > > I also got the Redis To Go addon for sidekiq
> > > >
> > > >
> > > > On Fri, Apr 19, 2013 at 12:56 AM, Pat Allan <[email protected]> 
> > > > wrote:
> > > > Have you added a worker definition in your Procfile, and a 
> > > > corresponding worker process?
> > > >
> > > > On 19/04/2013, at 5:51 PM, Laurent Gorse wrote:
> > > >
> > > > > Actually Allan I just checked the site on Heroku and it's not 
> > > > > updating automatically anymore. It is on the local host (when I run 
> > > > > sidekiq).
> > > > >
> > > > > Is there something I should have done to keep sidekiq on in 
> > > > > production?
> > > > >
> > > > >
> > > > > On Thu, Apr 18, 2013 at 11:51 PM, Pat Allan 
> > > > > <[email protected]> wrote:
> > > > > Great to know you got it all figured out Laurent. Sorry I couldn't be 
> > > > > more timely with my help. If you do have any remaining questions 
> > > > > though, let me know.
> > > > >
> > > > > On 19/04/2013, at 2:11 PM, Laurent Gorse wrote:
> > > > >
> > > > > > DONE! I've finally implemented my search on Heroku. Man, that was a 
> > > > > > brutal... 16 hours of pure work. All for a stupid mistake. I need 
> > > > > > to get my head in order.
> > > > > >
> > > > > >
> > > > > > On Thu, Apr 18, 2013 at 8:46 PM, <[email protected]> wrote:
> > > > > > OK solved the :delta problem but now I realize that I need to 
> > > > > > change the target url of TS:delta since it is localhost by default.
> > > > > >
> > > > > > I am looking into redis2Go on Heroku. Any advice about these next 
> > > > > > steps?
> > > > > >
> > > > > >
> > > > > > On Thursday, April 18, 2013 3:31:18 AM UTC-7, [email protected] 
> > > > > > wrote:
> > > > > > Hi Pat,
> > > > > >
> > > > > > I implemented TS delayed_delta  on my app and I get a strange error 
> > > > > > message when I load a view. The view loads a restaurant summary.
> > > > > >
> > > > > > Here is the message:
> > > > > >
> > > > > > undefined method `toggle' for nil:NilClass
> > > > > >
> > > > > > Extracted source (around line #1):
> > > > > >
> > > > > > 1: <% set_google_restaurant_values(result) %>2: <li 
> > > > > > id="restaurant_summary">3: <div id = 
> > > > > > "restaurant_summary_wrapper">4: <div id="restaurant_summary_left">
> > > > > >
> > > > > > Trace of template inclusion: 
> > > > > > app/views/restaurants/_google_restaurants.html.erb, 
> > > > > > app/views/restaurants/google_search.js.erb
> > > > > >
> > > > > > Rails.root: /home/lgorse/www/curiousbear
> > > > > >
> > > > > > Application Trace | Framework Trace | Full Trace
> > > > > > app/helpers/restaurants_helper.rb:106:in 
> > > > > > `set_google_restaurant_values'app/views/restaurants/_google_restaurant_summary.html.erb:1:in
> > > > > >  
> > > > > > `_app_views_restaurants__google_restaurant_summary_html_erb___1466256548253147453_43999960'app/views/restaurants/_google_restaurants.html.erb:4:in
> > > > > >  
> > > > > > `_app_views_restaurants__google_restaurants_html_erb__2975153352808883957_43673500'app/views/restaurants/google_search.js.erb:2:in
> > > > > >  
> > > > > > `_app_views_restaurants_google_search_js_erb__2134691260687145231_39594340'app/controllers/restaurants_controller.rb:15:in
> > > > > >  `index'
> > > > > >
> > > > > >
> > > > > > And here is my code - please ask if you need more:
> > > > > >
> > > > > >
> > > > > >       def set_google_restaurant_values(result)
> > > > > >               venue = set_attr_from_google(result)
> > > > > >               @encoded_venue = 
> > > > > > Base64.urlsafe_encode64(URI.encode(venue.to_json))
> > > > > >
> > > > > >               @venue_json = {"name" => venue[:name]}.to_json
> > > > > >
> > > > > >               @restaurant = 
> > > > > > Restaurant.find_or_create_by_google_id(venue[:google_id], 
> > > > > > final_restaurant_attributes(venue))
> > > > > >
> > > > > >               @parsed_address = 
> > > > > > split_formatted_address(venue[:formatted_address].to_s)
> > > > > >
> > > > > >       end
> > > > > >
> > > > > > I think this has to do with the 'toggle' button in your 
> > > > > > thinking_sphinx.rb class but I have no idea how to pass my 
> > > > > > instance, or why it's not passing.
> > > > > >
> > > > > > The :delta attribute is not null and true by default in the model.
> > > > > >
> > > > > > Talk to you soon Pat - fingers crossed you can help
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google 
> > > > > > Groups "Thinking Sphinx" group.
> > > > > > To unsubscribe from this group and stop receiving emails from it, 
> > > > > > send an email to [email protected].
> > > > > > To post to this group, send email to 
> > > > > > [email protected].
> > > > > > Visit this group at 
> > > > > > http://groups.google.com/group/thinking-sphinx?hl=en.
> > > > > > For more options, visit https://groups.google.com/groups/opt_out.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > ______________________________________________________
> > > > > > Laurent Gorse
> > > > > > MBA Candidate, class of 2013
> > > > > > Stanford Graduate School of Business
> > > > > > 650.644.9188
> > > > > > [email protected]
> > > > > > gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> > > > > >
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google 
> > > > > > Groups "Thinking Sphinx" group.
> > > > > > To unsubscribe from this group and stop receiving emails from it, 
> > > > > > send an email to [email protected].
> > > > > > To post to this group, send email to 
> > > > > > [email protected].
> > > > > > Visit this group at 
> > > > > > http://groups.google.com/group/thinking-sphinx?hl=en.
> > > > > > For more options, visit https://groups.google.com/groups/opt_out.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups "Thinking Sphinx" group.
> > > > > To unsubscribe from this group and stop receiving emails from it, 
> > > > > send an email to [email protected].
> > > > > To post to this group, send email to [email protected].
> > > > > Visit this group at 
> > > > > http://groups.google.com/group/thinking-sphinx?hl=en.
> > > > > For more options, visit https://groups.google.com/groups/opt_out.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ______________________________________________________
> > > > > Laurent Gorse
> > > > > MBA Candidate, class of 2013
> > > > > Stanford Graduate School of Business
> > > > > 650.644.9188
> > > > > [email protected]
> > > > > gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> > > > >
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups "Thinking Sphinx" group.
> > > > > To unsubscribe from this group and stop receiving emails from it, 
> > > > > send an email to [email protected].
> > > > > To post to this group, send email to [email protected].
> > > > > Visit this group at 
> > > > > http://groups.google.com/group/thinking-sphinx?hl=en.
> > > > > For more options, visit https://groups.google.com/groups/opt_out.
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Thinking Sphinx" group.
> > > > To unsubscribe from this group and stop receiving emails from it, send 
> > > > an email to [email protected].
> > > > To post to this group, send email to [email protected].
> > > > Visit this group at 
> > > > http://groups.google.com/group/thinking-sphinx?hl=en.
> > > > For more options, visit https://groups.google.com/groups/opt_out.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ______________________________________________________
> > > > Laurent Gorse
> > > > MBA Candidate, class of 2013
> > > > Stanford Graduate School of Business
> > > > 650.644.9188
> > > > [email protected]
> > > > gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> > > >
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Thinking Sphinx" group.
> > > > To unsubscribe from this group and stop receiving emails from it, send 
> > > > an email to [email protected].
> > > > To post to this group, send email to [email protected].
> > > > Visit this group at 
> > > > http://groups.google.com/group/thinking-sphinx?hl=en.
> > > > For more options, visit https://groups.google.com/groups/opt_out.
> > > >
> > > >
> > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Thinking Sphinx" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an 
> > > email to [email protected].
> > > To post to this group, send email to [email protected].
> > > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> > > For more options, visit https://groups.google.com/groups/opt_out.
> > >
> > >
> > >
> > >
> > >
> > > --
> > > ______________________________________________________
> > > Laurent Gorse
> > > MBA Candidate, class of 2013
> > > Stanford Graduate School of Business
> > > 650.644.9188
> > > [email protected]
> > > gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Thinking Sphinx" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an 
> > > email to [email protected].
> > > To post to this group, send email to [email protected].
> > > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> > > For more options, visit https://groups.google.com/groups/opt_out.
> > >
> > >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Thinking Sphinx" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> >
> >
> >
> > --
> > ______________________________________________________
> > Laurent Gorse
> > MBA Candidate, class of 2013
> > Stanford Graduate School of Business
> > 650.644.9188
> > [email protected]
> > gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Thinking Sphinx" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> 
> 
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> 
> 
> -- 
> ______________________________________________________
> Laurent Gorse
> MBA Candidate, class of 2013
> Stanford Graduate School of Business
> 650.644.9188
> [email protected]
> gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> 
> 
> 
> -- 
> ______________________________________________________
> Laurent Gorse
> MBA Candidate, class of 2013
> Stanford Graduate School of Business
> 650.644.9188
> [email protected]
> gsb.stanford.edu|Facebook: StanfordGSB|Twitter: @StanfordBiz
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to