Project

General

Profile

Cannot send emails (getaddrinfo: The storage control blocks were destroyed.)

Added by Harry Garrood almost 13 years ago

About your application's environment
Ruby version              1.8.7 (i386-mingw32)
RubyGems version          1.6.2
Rack version              1.1
Rails version             2.3.11
Active Record version     2.3.11
Active Resource version   2.3.11
Action Mailer version     2.3.11
Active Support version    2.3.11
Application root          c:/Program Files/BitNami Redmine Stack/apps/redmine
Environment               production
Database adapter          mysql
Database schema version   20110511000000

I am using the BitNami Redmine Stack (redmine 1.2.1).
It was all set up to interact with our SMTP server (on a different machine) and email notifications were working fine. Then the SMTP server died. I changed configuration.yml:

default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      # tls: false
      address: <<New server name>> #this is the only line which was changed
      port: 25
      domain: <<domain>>
      authentication: :plain
      # user_name: "" 
      # password: "" 
      # enable_starttls_auto: false

and i started getting "undefined method 'info' for true:TrueClass when trying to send test emails.
I did a bit of fiddling, and it seemed that a 'logger' variable had been set to true inside action mailer... so changed something which was like this:
unless logger.nil?
  logger.info ...

to something like this:
if logger.respond_to? "info" 
  logger.info ...

(that was in C:\Program Files\BitNami Redmine Stack\ruby\lib\ruby\gems\1.8\gems\actionmailer-2.3.11...)

But that seemed to break things, so I changed it back.

Now I am getting (getaddrinfo: The storage control blocks were destroyed.) when trying to send a test email. What is really confusing me is that little has changed between when it last worked and now; I am told the SMTP server is set up the same way the last one was! (It's a MS Exchange 2010 one)

If anyone could provide any help, or even give me a clue as to what these "storage control blocks" are... it would be very much appreciated!

Edit: The error message did just change to "No connection could be made because the target machine actively refused it." and back again — it is starting to look like it's the exchange server. Still, I would be interested to know what storage control blocks are, and if/how I destroyed them.


Replies (2)

RE: Cannot send emails (getaddrinfo: The storage control blocks were destroyed.) - Added by Max Ognev almost 13 years ago

In my server dont work DNS-service. I replace smtp.gmail.com on 173.194.69.109
The error is gone.

RE: Cannot send emails (getaddrinfo: The storage control blocks were destroyed.) - Added by Harry Garrood almost 13 years ago

Max Ognev wrote:

In my server dont work DNS-service. I replace smtp.gmail.com on 173.194.69.109
The error is gone.

Fair enough. It was a mail server configuration issue for me. I had to tell the server to allow the IP of the machine running Redmine to send emails.

    (1-2/2)