Foreman and Salt job error

Hi All,

When I try to use salt with remote Job, I got an error:

Oops, we’re sorry but something went wrong undefined method `name’ for nil:NilClass

Any idea?

Could you turn on a debug mode and share output of tail -400 /var/log/foreman/production.log ?
Along side with foreman and foreman_salt plugin versions if possible.

Without that it’s hard to help you.
Also wrong categroy, this should go in Support :slight_smile:

It is not full output, there are too many following requests, so the important one is cut in the middle, could you do it right after the failing request or rise to tail -600 ? so we have the full backtrace?

I got a hunch it could be related to: Bug #30933: undefined method `resource_type' for nil:NilClass when going to new job invocation form with template which has input of type search - Foreman Remote Execution - Foreman
Do you have some special input types in the job template you’re trying to run?

No I just go to All Hosts -> I select the host and Run Remote Job

I am using “Foreman Remote Execution 4.2.0”

How can I install the fix (4.2.1)?

I downgrade to version 2.2 and it worked,

I think you are right, its a bug,

How can I install “Foreman Remote Execution 4.2.1” patch?

The best option i if you upgrade foreman version, to the version that contains this new plugin version.

If you don’t want to do that, you would need to download the package from our repositories manually and install it yourself. Or you can apply the patch with the fix directly on you local system.

Thank You