Closed iaingblack closed 7 years ago
Hi all. My mistake. For some unknown reason, the /usr/local/share/gems folder was unreadable by anyone other than root so rundeck was failing to get the gems it needed. I have no idea how it happened. I'll delete this issue.
Hi there,
Really sorry, i'm sure its me more than anything else. But, I cannot get rundeck to run this as a plugin on a RHEL7 machine. I get this error every time.
It cannot find the winrm gem. But, if I run this as a job on the localhost it works fine;
'/var/lib/rundeck/libext/cache/rd-winrm-plugin-1.5.1/winrmexe.rb'
I hardcoded some variables in the script like this, and ran it, worked perfectly, in rundeck as a command on the localhost as the rundeck user.
Here is my gem env and gem list. It should work. Rundeck can run the command from the terminal successfully if I set ENV variables as it expects, also as a rundeck command if I hardcode the script with variables but just not as a job via the plugin used in a project. I've been trying to fix for a good few hours and getting nowhere sadly. Any ideas? I must be doing something really daft? Below is as the rundeck user.
GEM ENV
GEM LIST
GEMS FOLDER