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 almost 10 years ago. Updated over 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 almost 10 years ago

Actions #2

Updated by Dominic Cleal almost 10 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 almost 10 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 almost 10 years ago

  • Assignee set to Tom Caspy
Actions #5

Updated by Tom Caspy almost 10 years ago

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

Updated by Dominic Cleal almost 10 years ago

  • Translation missing: en.field_release set to 32
Actions

Also available in: Atom PDF