Remote Execution plugin issue

Hello,

I am having an issue with the Remote Execution plugin that has me
scratching my head. I was running commands yesterday throughout the day and
had no problems. Today the SSH remote command execution is missing and when
I click on a completed job (both successful and failed), I receive “Oops,
we’re sorry but something went wrong undefined method `name’ for
nil:NilClass.” When I select a host and “Run job,” I only see the Katello
category and “Restart Services - Katello SSH Default.” No changes or
updates had been made to the server between yesterday and this morning.

Attempted fixes: rebooting the server
reinstalling the packages and restarting the services manually per the
plugin documentation
re-running “foreman-installer --enable-foreman-plugin-remote-execution
–enable-foreman-proxy-plugin-remote-execution-ssh”

I did not remove the packages specified in the documentation for the manual
install because it wants to also remove the katello package(s) as well.

I am currently running the following:
CentOS 7.3
Foreman 1.14.3
w/ Plugins:
Katello 3.3.2
Remote Execution 1.2.2

Has anyone had this issue or any ideas on how to fix it?

Thanks,

James

James Cicak
Systems Programmer | Information Technology/Enterprise Systems

Hello,

I am having an issue with the Remote Execution plugin that has me
scratching my head. I was running commands yesterday throughout the day and
had no problems. Today the SSH remote command execution is missing and when
I click on a completed job (both successful and failed), I receive "Oops,
we're sorry but something went wrong undefined method `name' for
nil:NilClass." When I select a host and "Run job," I only see the Katello
category and "Restart Services - Katello SSH Default." No changes or
updates had been made to the server between yesterday and this morning.

From what I see, that template is:

<%= input(:helper).split(",").map {|split| "#{split}" }.join("\n") %>

katello-tracer-upload

Did you make any changes or is that the tample we're speaking about?

Attempted fixes: rebooting the server
reinstalling the packages and restarting the services manually per the
plugin documentation
re-running "foreman-installer --enable-foreman-plugin-remote-execution
--enable-foreman-proxy-plugin-remote-execution-ssh"

I did not remove the packages specified in the documentation for the manual
install because it wants to also remove the katello package(s) as well.

I am currently running the following:
CentOS 7.3
Foreman 1.14.3
w/ Plugins:
Katello 3.3.2
Remote Execution 1.2.2

Has anyone had this issue or any ideas on how to fix it?

The error, "undefined method name" makes me think that there is some
problem with the Host Operating System or the Host itself. Could you
enable the debug log_level
(Foreman :: Manual) and share what
you see on /var/log/foreman/production.log when you try to run the job?

Probably you see the same issue when previewing the template, e.g:

Could you share the logs of that too? Does it work?

···

On 12/12, jcicak@fit.edu wrote:

Thanks,

James

James Cicak
Systems Programmer | Information Technology/Enterprise Systems

--
You received this message because you are subscribed to the Google Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users\.
For more options, visit https://groups.google.com/d/optout\.

--
Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: elobato (Daniel Lobato Garcia) | Keybase