Foreman reports

This is the relevant part of the stack trace - it can't find where to
deliver the email to. Try setting an explicit target email address.

··· On 19 December 2012 14:32, Ugo Bellavance wrote: > Hi, > > When running rake reports:summarize days=3 RAILS_ENV="production", I get > this error:

getaddrinfo: Name or service not known

/usr/lib/ruby/gems/1.8/gems/mail-2.3.3/lib/mail/network/delivery_methods/smtp.rb:128:in
deliver!' /usr/lib/ruby/gems/1.8/gems/mail-2.3.3/lib/mail/message.rb:1989:indo_delivery’
/usr/lib/ruby/gems/1.8/gems/mail-2.3.3/lib/mail/message.rb:230:in deliver' /usr/lib/ruby/gems/1.8/gems/actionmailer-3.0.15/lib/action_mailer/base.rb:426:indeliver_mail’

Thanks for you answer. BTW my original post has been deleted from the
Google group. Any idea why?

I do have an e-mail address defined in /etc/forman/settings.yaml
(:administrator: foremanadmins@ourdomain.com)
I also set the same address in Foreman settings (for "administrator").
The e-mail address is valid.

You meant on the command-line? How would I tell rake to use an e-mail
address as parameter?

Thanks,

Ugo

··· On Thursday, December 20, 2012 8:21:31 AM UTC-5, Greg Sutcliffe wrote:

On 19 December 2012 14:32, Ugo Bellavance <ug...@lubik.ca <javascript:>> > wrote:

Hi,

When running rake reports:summarize days=3 RAILS_ENV=“production”, I
get
this error:

getaddrinfo: Name or service not known

/usr/lib/ruby/gems/1.8/gems/mail-2.3.3/lib/mail/network/delivery_methods/smtp.rb:128:in

deliver!' /usr/lib/ruby/gems/1.8/gems/mail-2.3.3/lib/mail/message.rb:1989:indo_delivery’
/usr/lib/ruby/gems/1.8/gems/mail-2.3.3/lib/mail/message.rb:230:in
`deliver’

/usr/lib/ruby/gems/1.8/gems/actionmailer-3.0.15/lib/action_mailer/base.rb:426:in

`deliver_mail’

This is the relevant part of the stack trace - it can’t find where to
deliver the email to. Try setting an explicit target email address.

> Thanks for you answer. BTW my original post has been deleted from the
> Google group. Any idea why?

Nope. But then I'm not an admin :slight_smile:

> I do have an e-mail address defined in /etc/forman/settings.yaml
> (:administrator: foremanadmins@ourdomain.com)
> I also set the same address in Foreman settings (for "administrator").
> The e-mail address is valid.

Can you send email to it from the commandline of the Foreman server?

> You meant on the command-line? How would I tell rake to use an e-mail
> address as parameter?

bundle exec rake reports:summarize hours=12
email=greg.sutcliffe@gmail.com RAILS_ENV="production"

··· On 20 December 2012 19:06, Ugo Bellavance wrote:

Great, my answer to this post has been deleted too and I don't understand
why.

··· On Thursday, December 20, 2012 2:33:10 PM UTC-5, Greg Sutcliffe wrote: > > On 20 December 2012 19:06, Ugo Bellavance <ug...@lubik.ca > > wrote: > > Thanks for you answer. BTW my original post has been deleted from the > > Google group. Any idea why? > > Nope. But then I'm not an admin :) > >

> Great, my answer to this post has been deleted too and I don't understand
> why.

Ohad, do you know why?

To be honest, I'm not sure, this group has the policy of first time review,
that is if you send a valid (non spam) mail to the list for the first time,
you are normally approved for future messages.

So unless there was an issue with your mail client, or with google groups
UI, I'm not aware of anyone deleting messages.

Also, normally, when you send a message, you will not see it (e.g. it does
not send it to you again).

Ohad

··· On Fri, Dec 21, 2012 at 5:14 AM, Ugo Bellavance wrote:

Great, my answer to this post has been deleted too and I don’t understand
why.