Project

General

Profile

Actions

Bug #9118

closed

Failed to send email notification puppet_error_state: undefined method `recipients_for' for nil:NilClass

Added by cristian falcas over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
E-Mail
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We've configured foreman to send emails on failed puppet runs. The configuration is this:

  1. Outgoing email settings

production:
delivery_method: :smtp
smtp_settings:
address: smtp.domain.net
port: 25
domain: domain.net
authentication: :none
tls: false
enable_starttls_auto: false

In foreman logs we noticed this error:

Failed to send email notification puppet_error_state: undefined method `recipients_for' for nil:NilClass


Related issues 1 (1 open0 closed)

Related to Foreman - Tracker #7585: Mail notifications trackerNew

Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

Actions #2

Updated by Dominic Cleal over 9 years ago

  • Category set to E-Mail

It appears that app/mailers/host_mailer.rb doesn't handle host.owner being nil and calls recipients_for on it anyway, it assumes the host has an owner.

Actions #3

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2127 added
  • Pull request deleted ()
Actions #4

Updated by Tom Caspy over 9 years ago

  • Assignee set to Tom Caspy
Actions #5

Updated by Tom Caspy over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Dominic Cleal over 9 years ago

  • translation missing: en.field_release set to 32
Actions

Also available in: Atom PDF