Try Dalli. It works great and reduces your slug size 10 mb. https://github.com/mperham/dalli
On Nov 10, 4:54 am, Alex Killough <[email protected]> wrote: > Hi, was there ever any resolution to this issue? I receive the same > errors shown below when trying to use memcached-northscale (as Oren > details) in my Rails 2.3.x and 3 projects. > > Thanks, > Alex > > On Sep 11, 2010, at 4:16 AM, Henri Godron wrote: > > > Hi Oren > > > I tried the Gemfile with your suggestion: > > gem 'memcache' > > gem 'memcached-northscale', :require => 'memcached' > > > Here is the error: > > ==> dyno-2143875.log (crash) <== > > /home/slugs/283964_c128375_5e65/mnt/.bundle/gems/ruby/1.8/gems/ > > memcached-northscale-0.19.5.4/lib/memcached/memcached.rb:604:in > > `check_return_code': Key {} (Memcached::Failure) > > from /home/slugs/283964_c128375_5e65/mnt/.bundle/gems/ruby/ > > 1.8/gems/memcached-northscale-0.19.5.4/lib/memcached/memcached.rb: > > 638:in `set_credentials' > > from /home/slugs/283964_c128375_5e65/mnt/.bundle/gems/ruby/ > > 1.8/gems/memcached-northscale-0.19.5.4/lib/memcached/memcached.rb: > > 143:in `initialize' > > from /home/slugs/283964_c128375_5e65/mnt/.bundle/gems/ruby/ > > 1.8/gems/memcached-northscale-0.19.5.4/lib/memcached/rails.rb:29:in > > `initialize' > > > I also tried to remove/add the addon to see if it was helping, but > > without success. > > > On Sat, Sep 11, 2010 at 2:30 AM, Oren Teich <[email protected]> wrote: > > I missed the last d. > > > gem "memcached-northscale", :require => "memcached" > > > On Fri, Sep 10, 2010 at 3:38 PM, riton <[email protected]> wrote: > > hi Oren, > > > Thanks for looking into my issue. Here are the modifications I made to > > my app , according to the heroku documentation and what you just said. > > > Please, can you tell me what's wrong in that: > > > environment.rb: no changes. I don't have to add the 'config gem' and > > 'require' lines > > environment/production.rb: added config.cache_store > > = :mem_cache_store, Memcached::Rails.new > > Gemfile: gem "memcached-northscale", :require => "memcache" > > > Is that correct ? If no, do i need "gem 'memcache'" in my Gemfile ? I > > tried with it, and with "gem 'memcached' but without success. > > > I ran bundle install in my local installation, my gemfile.lock is in > > GIT and this is fine with heroku's bundle (it runs whenever I add a > > gem in Gemfile). > > > Here are the gem used with bundle > > > Using rake (0.8.7) > > Using abstract (1.0.0) > > Using activesupport (3.0.0.rc2) > > Using builder (2.1.2) > > Using i18n (0.4.1) > > Using activemodel (3.0.0.rc2) > > Using erubis (2.6.6) > > Using rack (1.2.1) > > Using rack-mount (0.6.13) > > Using rack-test (0.5.4) > > Using tzinfo (0.3.23) > > Using actionpack (3.0.0.rc2) > > Using mime-types (1.16) > > Using polyglot (0.3.1) > > Using treetop (1.4.8) > > Using mail (2.2.5) > > Using actionmailer (3.0.0.rc2) > > Using arel (1.0.1) > > Using activerecord (3.0.0.rc2) > > Using activeresource (3.0.0.rc2) > > Using memcache (1.2.13) > > Using memcached-northscale (0.19.5.4) > > Using mysql (2.8.1) > > Using mysql2 (0.2.3) > > Using bundler (1.0.0) > > Using thor (0.14.0) > > Using railties (3.0.0.rc2) > > Using rails (3.0.0.rc2) > > > And the error: > > /disk1/home/slugs/283964_74b4131_849c/mnt/config/environments/ > > production.rb:33: uninitialized constant Memcached (NameError) > > > Sorry, I don't know what to do . > > > On Sep 10, 5:54 pm, Oren Teich <[email protected]> wrote: > > > if you're using a gemfile, you don't want to have any config.gem > > directives. > > > It's one or the other. Bundler replaces the way rails 2.3 > > handles gems.http://gembundler.com/rails23.html > > > > <http://gembundler.com/rails23.html>if oyu're using bundler, it's > > > > gem "memcached-northscale", :require => "memcache" > > > > Oren > > > > On Fri, Sep 10, 2010 at 4:15 AM, riton <[email protected]> wrote: > > > > Hello, > > > > > I added the memcache 5MB free addon to my application. > > > > I'm trying to make it work using the northscale gem as specified > > in > > > > the documentation. I can't make it to work. > > > > > I can't get past this error /production.rb:33: uninitialized > > constant > > > > Memcached (NameError) > > > > > Here is my Gemfile: > > > > > gem 'memcache-client' > > > > gem 'memcached-northscale' > > > > > my environment.rb: > > > > > # Load memcached > > > > config.gem 'memcached-northscale', :lib => 'memcached' > > > > require 'memcached' > > > > > my production.rb: > > > > config.cache_store = :mem_cache_store, Memcached::Rails.new > > > > > Despite your documentation saying to remove memcache-client from > > the > > > > Gemfile, (I tried..) some guys seem to say we need it (ex: > > > > >http://github.com/heroku-examples/r3b4-memcache-heroku/commit/f10e62d > > ... > > > > ) > > > > > Well, I'm not sure what I should do. Here is an EVENT_ID i'm > > getting > > > > (sometime) on my app when trying to reach it (error 503), maybe > > it's > > > > related ? > > > > Event ID: 000005040001c8a60003714f > > > > > Thanks for helping me out ! > > > > > -- > > > > You received this message because you are subscribed to the > > Google Groups > > > > "Heroku" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<heroku%[email protected] > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/heroku?hl=en. > > > -- > > You received this message because you are subscribed to the Google > > Groups "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected] > > . > > For more options, visit this group > > athttp://groups.google.com/group/heroku?hl=en > > . > > > -- > > You received this message because you are subscribed to the Google > > Groups "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected] > > . > > For more options, visit this group > > athttp://groups.google.com/group/heroku?hl=en > > . > > > -- > > You received this message because you are subscribed to the Google > > Groups "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected] > > . > > For more options, visit this group > > athttp://groups.google.com/group/heroku?hl=en > > . -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
