Project

General

Profile

Actions

Bug #22177

closed

Mail Notifications fail to send when sent from a task

Added by Justin Sherrill over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman plugin
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Sending mail notifications fail with this error when sent from a task:

Unable to send errata e-mail notification: Could not find stylesheet \"$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css\":
  All providers failed\nUsed providers:
  #<Roadie::FilesystemProvider /usr/share/foreman/public>:
  /usr/share/foreman/public/$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css
  does not exist. (Original name was \"$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css\")
  #<Roadie::Rails::AssetPipelineProvider:0x00000006306690>:
  Could not find stylesheet \"$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css\" 
Used
  provider:
     #<Roadie::Rails::AssetPipelineProvider:0x00000006306690>

This is due to foreman-tasks setting RAILS_RELATIVE_URL_ROOT=$FOREMAN_PREFIX in its sysconfig file and systemd not evaluating ENV variables in its EnvironmentFile

Actions #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/310 added
Actions #2

Updated by Ivan Necas over 6 years ago

  • Status changed from Ready For Testing to Closed
  • translation missing: en.field_release set to 337
Actions

Also available in: Atom PDF