Re: Delayed Job not loading gem
The fix is adding requirie 'hpricot' to config/initializers/ delayed_job.rb On Aug 19, 6:59 pm, Abel Tamayo abel.tam...@gmail.com wrote: The environment should be the same. Have you tried to require Hpricot manually from the job that uses it? On Thu, Aug 19, 2010 at 2:29 AM, daniel hoey danielho...@gmail.com wrote: Hi, We use the Hpricot gem on our Heroku app. It is specified in the .gems file and config.gem :hpricot is in the config/environment.rb file. Sometimes our delayed jobs throw a NoMethodError when attempting to use the 'Hpricot()' method. The exact same code with the same data works in the Heroku console. Basically it looks like the delayed jobs do not have the same environment as the console. Does anyone have any suggestions about how to fix this problem? Dan -- 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.
App Timeouts
We go through short periods where we get frequent app timeouts. The pages that timeout are often very simple and do not relying on external services or performing any demanding database queries. We don't get any information in our New Relic transaction traces for these queries (we have for other timeouts in the past). Basically we can't get any information about what is going on, and only know about the problem if our users tell us. Has anyone else experienced similar problems or have anything to suggest in terms of investigating the root cause? The last time that we are aware of this happening was between 06:30 and 07:00 GMT on Sept 10. -- 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.
Git, SVN and Heroku
I work on a team that uses SVN for source control (a separate discussion is in the works to get them moved over to git), and we would like to check out of svn and push to Heroku. I can't figure out how to do this very easily. Is there a way to turn an existing directory (checked out by svn) that has not yet been initialized in git, initialize it, and allow that to be pushed to Heroku, essentially overwriting the existing code on Heroku? I'm trying to allow multiple team members to checkin to svn and push to Heroku via Git. -- 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.
Error when using memcached uninitialized constant Memcached (NameError)
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)
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: Bundler 1.0.0 Rollout
I tried Pasha's suggestion, but it looks like the environment variable is ignored by bundler in heroku. I added autotest-fsevent to the :development group in my gemfile, and added BUNDLE_WITHOUT=test:development to the heroku app config. But when I pushed, heroku still tried to build the native extensions and failed. I don't understand why heroku doesn't just use bundle install -- deployment (or some variation) to respect the Gemfile groups... I got another idea. Hide autotest-fsevent from Heroku by using :platforms. According to the bundler docs the platform is respected automatically. Unfortunately they don't have an OSX platform, so I randomly chose one that doesn't match Heroku just to test. platforms :mswin do gem autotest-fsevent end It worked! The gem was not installed and the push succeeded. The next step would be to hack my local bundler to make it think I'm on :mswin (or :jruby), so that the gem gets picked up locally. Important note: only the block version of :platform works due to a bug: http://github.com/carlhuda/bundler/issues#issue/590 -- 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: Best way to handle sitemaps
I think the easiest and cheapest solution is to utilize Heroku's caching layer, Varnish. http://docs.heroku.com/http-caching If you set the max-timeout to 1 week then your app only gets hit once a week... assuming the sitemaps get hit often enough to keep them in the cache. -- 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: Git, SVN and Heroku
If you use git-svn locally for your remote subversion repo then it should not be that difficult. You could then just add the remote heroku repo and do a git push to heroku. But if you are using subversion client then I think it would be a bit tricky. -- Chandra On Wed, Sep 8, 2010 at 11:16 PM, Swards swa...@gmail.com wrote: I work on a team that uses SVN for source control (a separate discussion is in the works to get them moved over to git), and we would like to check out of svn and push to Heroku. I can't figure out how to do this very easily. Is there a way to turn an existing directory (checked out by svn) that has not yet been initialized in git, initialize it, and allow that to be pushed to Heroku, essentially overwriting the existing code on Heroku? I'm trying to allow multiple team members to checkin to svn and push to Heroku via Git. -- 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: Git, SVN and Heroku
Hi 1. Use git as your client (with git-svn). Then just update (from svn) and push to heroku. It works great. If you have trouble, ping me. I haven't done this recently, but can try and dig up some stuff if you need. Issues you may see: deleting directories (e.g. vendor/gems/* )in git doesn't always translate to svn. So sometimes you get a fail there. Otherwise it works without a hitch. 2. Use svn and git use svn like you always do setup git as a duplicate version control system in the same directory. When you want to push, just check the files into git (git commit -a) and push to heroku. I know someone who did this and said it worked for him. Good Luck, --Keenan On Sep 9, 2010, at 12:16 AM, Swards wrote: I work on a team that uses SVN for source control (a separate discussion is in the works to get them moved over to git), and we would like to check out of svn and push to Heroku. I can't figure out how to do this very easily. Is there a way to turn an existing directory (checked out by svn) that has not yet been initialized in git, initialize it, and allow that to be pushed to Heroku, essentially overwriting the existing code on Heroku? I'm trying to allow multiple team members to checkin to svn and push to Heroku via Git. -- 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. -- 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)
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)
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)
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.