Bug #23849
Updated by Ivan Necas over 6 years ago
They fail with undefined method id for nil, this is caused by two factors.
1) We rely on User.current always being set in here[1]
2) By moving the repetition triggering to a hook, it now runs outside of scope of the KeepCurrentUser middleware and therefore the current user is unset.
[1] - https://github.com/theforeman/foreman_remote_execution/commit/cbca3763dfcf5657bc459a2a3bc629c5beaa3c6c#diff-14632ff95ad9bcb6357ed1b5ae94ed50R197
For people googling for the error, the issue can be identified by the following line in logs:
Failed to run hook 'trigger_repeat' for action 'Actions::RemoteExecution::RunHostsJob'