Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-12-15 Thread chris
Remove the gem 'memcached' line from your gemfile and you should be good 
to go. You only need the dalli gem.

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-12-13 Thread Alex Killough
Hi, I'm still having difficulty with memchaced, this time using dalli
as my client.
This is a rails 3 app.

in config/environments/production.rb:
  # Use a different cache store in production
  config.cache_store = :dalli_store
  config.perform_caching = true
  config.action_controller.perform_caching = true

in Gemfile:
  # cache backend
  gem 'memcached'
  gem 'dalli'

and the error message from heroku logs:
  /activesupport/lib/active_support/cache.rb:61:in `const_get':
uninitialized constant
  ActiveSupport::Cache::DalliStore (NameError)

Guessing I am missing an include or require directive somewhere, but
not sure where that would be from the dalli nor heroku docs. Any help
is much appreciated.

Many thanks,
Alex

On Wed, Nov 10, 2010 at 8:44 AM, joshmckin joshmc...@gmail.com wrote:
 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 alexkillo...@gmail.com 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 o...@heroku.com wrote:
  I missed the last d.

  gem memcached-northscale, :require = memcached

  On Fri, Sep 10, 2010 at 3:38 PM, riton enjoy...@gmail.com 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 o...@heroku.com 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.htmlif oyu're using bundler, it's

   gem memcached-northscale, :require = memcache

   Oren

   On Fri, Sep 10, 2010 at 4:15 AM, riton enjoy...@gmail.com 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 

Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-11-10 Thread joshmckin
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 alexkillo...@gmail.com 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 o...@heroku.com wrote:
  I missed the last d.

  gem memcached-northscale, :require = memcached

  On Fri, Sep 10, 2010 at 3:38 PM, riton enjoy...@gmail.com 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 o...@heroku.com 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.htmlif oyu're using bundler, it's

   gem memcached-northscale, :require = memcache

   Oren

   On Fri, Sep 10, 2010 at 4:15 AM, riton enjoy...@gmail.com 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: 05040001c8a60003714f

Thanks for helping me out !

--
You received this message 

Error when using memcached uninitialized constant Memcached (NameError)

2010-09-10 Thread riton
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/f10e62d3d71dea664c090a2e28fe7619d3b6a62d)

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: 05040001c8a60003714f

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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-09-10 Thread Oren Teich
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.htmlif oyu're using bundler, it's

gem memcached-northscale, :require = memcache

Oren

On Fri, Sep 10, 2010 at 4:15 AM, riton enjoy...@gmail.com 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/f10e62d3d71dea664c090a2e28fe7619d3b6a62d
 )

 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: 05040001c8a60003714f

 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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-09-10 Thread riton
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 o...@heroku.com 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.htmlif oyu're using bundler, it's

 gem memcached-northscale, :require = memcache

 Oren



 On Fri, Sep 10, 2010 at 4:15 AM, riton enjoy...@gmail.com 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: 05040001c8a60003714f

  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 her...@googlegroups.com.
  To unsubscribe from this group, send email to
  heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
  .
  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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-09-10 Thread Abel Tamayo
Hi Riton,

I'd suggest that you try this:

#Gemfile
gem 'SystemTimer' #Not necessary, but memcache recommends it for
performance.
gem 'memcached' #Notice it's memcached, with a D.

#production.rb
config.cache_store = :mem_cache_store, Memcached::Rails.new

and nothing else. These three lines are what I use in all my projects and
that's how I get Memcache running.

Good luck.

On Sat, Sep 11, 2010 at 12:38 AM, riton enjoy...@gmail.com 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 o...@heroku.com 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.htmlif oyu're using bundler, it's
 
  gem memcached-northscale, :require = memcache
 
  Oren
 
 
 
  On Fri, Sep 10, 2010 at 4:15 AM, riton enjoy...@gmail.com 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: 05040001c8a60003714f
 
   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 her...@googlegroups.com.
   To unsubscribe from this group, send email to
   heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 heroku%2bunsubscr...@googlegroups.comheroku%252bunsubscr...@googlegroups.com
 
   .
   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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-09-10 Thread Oren Teich
I missed the last d.

gem memcached-northscale, :require = memcached



On Fri, Sep 10, 2010 at 3:38 PM, riton enjoy...@gmail.com 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 o...@heroku.com 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.htmlif oyu're using bundler, it's
 
  gem memcached-northscale, :require = memcache
 
  Oren
 
 
 
  On Fri, Sep 10, 2010 at 4:15 AM, riton enjoy...@gmail.com 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: 05040001c8a60003714f
 
   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 her...@googlegroups.com.
   To unsubscribe from this group, send email to
   heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 heroku%2bunsubscr...@googlegroups.comheroku%252bunsubscr...@googlegroups.com
 
   .
   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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.