We had to add in our send grid info for some reason. We ran into this a week or 
so ago. We placed the following in our production.rb environment file. 

ActionMailer::Base.smtp_settings = {
  :address        => "smtp.sendgrid.net",
  :port           => "25",
  :authentication => :plain,
  :user_name      => ENV['SENDGRID_USERNAME'],
  :password       => ENV['SENDGRID_PASSWORD'],
  :domain         => ENV['SENDGRID_DOMAIN'],
}

Good luck!

TJ Singleton
SalesCrunch.com

On Oct 14, 2010, at 10:42 PM, rmontgomery429 wrote:

> I suppose I should mention my app is Rails3 and I'm trying to use
> Resque for background jobs.
> 
> The message I get is as follows:
> 
> Errno::EAFNOSUPPORT (Address family not supported by protocol -
> socket(2)):
>  /lib/session_processor.rb:109:in `process'
>  /lib/session_processor.rb:103:in `each'
>  /lib/session_processor.rb:103:in `process'
>  app/controllers/messagings_controller.rb:6:in `create'
> 
> Line 109 is where I call Resque.enqueue.
> 
> 
> Ryan
> 
> On Oct 7, 12:39 am, Gabriel <[email protected]> wrote:
>> I'm following this example,http://github.com/brodyberg/heroku_redis_example
>> in order to get Resque/Redisworking and it seems pretty
>> straightforward.  But when I try and call my super simple Resque class
>> I get this error / stack trace:
>> 
>> Errno::EAFNOSUPPORT (Address family not supported by protocol -
>> socket(2)):
>>  redis(2.0.10) lib/redis/client.rb:215:in `initialize'
>>  redis(2.0.10) lib/redis/client.rb:215:in `new'
>>  redis(2.0.10) lib/redis/client.rb:215:in `connect_to'
>>   /home/slugs/289875_1f5b5b6_5f24/mnt/.gems/gems/system_timer-1.0/lib/
>> system_timer.rb:28:in `timeout_after'
>>  redis(2.0.10) lib/redis/client.rb:276:in `with_timeout'
>>  redis(2.0.10) lib/redis/client.rb:214:in `connect_to'
>>  redis(2.0.10) lib/redis/client.rb:23:in `connect'
>>  redis(2.0.10) lib/redis/client.rb:242:in `ensure_connected'
>>  redis(2.0.10) lib/redis/client.rb:268:in `ensure_connected'
>>   /usr/ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>  redis(2.0.10) lib/redis/client.rb:264:in `synchronize'
>>  redis(2.0.10) lib/redis/client.rb:268:in `ensure_connected'
>>  redis(2.0.10) lib/redis/client.rb:61:in `process'
>>  redis(2.0.10) lib/redis/client.rb:199:in `logging'
>>  redis(2.0.10) lib/redis/client.rb:60:in `process'
>>  redis(2.0.10) lib/redis/client.rb:34:in `call'
>>  redis(2.0.10) lib/redis.rb:227:in `sadd'
>>   /home/slugs/289875_1f5b5b6_5f24/mnt/.gems/gems/redis-namespace-0.8.0/
>> lib/redis/namespace.rb:188:in `send'
>>   /home/slugs/289875_1f5b5b6_5f24/mnt/.gems/gems/redis-namespace-0.8.0/
>> lib/redis/namespace.rb:188:in `method_missing'
>>   resque (1.10.0) lib/resque.rb:184:in `watch_queue'
>>   resque (1.10.0) lib/resque.rb:129:in `push'
>>   resque (1.10.0) lib/resque/job.rb:51:in `create'
>>   resque (1.10.0) lib/resque.rb:206:in `enqueue'
>>   app/controllers/tools_controller.rb:11:in `get_site_activity'
>> 
>> This happens when I call Resque.enqueue.  I've got theredisaddon
>> turned on and all of the rest of the config looks right, but obviously
>> there's something I'm missing.
>> 
>> Any ideas?
>> 
>> Gabriel
> 
> -- 
> 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.
> 

-- 
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.

Reply via email to