LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2015, 02:03 AM   #1
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Rep: Reputation: Disabled
Rundeck job


Hi Linux Guru's
please spare me if this post landed on a wrong location,

I have made a job from rundeck that will execute locally from rundeck host. Normally when I execute this command from host cli it executes gracefully

Code:
ssh@targethost "perl /home/build/space/scripts/installme.pl --rpm nrpe_v1.rpm --host host1"

but when I integrate it to rundeck and execute it locally from rundeck app it fails and gives me this error on the log

Code:
Use of uninitialized value $cfg in open at /home/build/workspace/build-scripts/lib/Utils.pm line 78.
23:54:18			Use of uninitialized value $cfg in concatenation (.) or string at /home/build/workspace/build-scripts/lib/Utils.pm line 78.
23:54:18			FATAL[1]: READ_CONFIG: Unable to open  for reading: No such file or directory at /home/build/workspace/build-scripts/lib/Utils.pm line 78.
23:54:18			Result: 2
23:54:18			Failed: NonZeroResultCode: Result code was 2
23:54:18			Execution failed: 1280: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [localhost: NonZeroResultCode: Result code was 2]}, Node failures: {localhost=[NonZeroResultCode: Result code was 2]}, flow control: Continue, status: failed]

Last edited by apss_evaluator; 07-23-2015 at 05:11 AM.
 
Old 07-23-2015, 04:39 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by apss_evaluator View Post
Code:
ssh@targethost "perl /home/build/space/scripts/installme.pl --rpm nrpe_v1.rpm --host host1
I don't see a closing quotation mark after 'host1'... Maybe that's the issue?
 
Old 07-23-2015, 05:09 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
never used any of that, but is the shebang in the .pl file? AKA #!/bin/perl
It might not assume perl and executes via ./... vs. perl ...
 
Old 07-23-2015, 05:12 AM   #4
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
I don't see a closing quotation mark after 'host1'... Maybe that's the issue?
I updated the post, yes it has a closing quote but still having the issue from rundeck app
 
Old 07-23-2015, 05:16 AM   #5
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
never used any of that, but is the shebang in the .pl file? AKA #!/bin/perl
It might not assume perl and executes via ./... vs. perl ...
it has a shebang of #!/bin/perl, the weird part of my test is from the cli when I used that remote command it proceeds, but when rundeck execute that it gives an error
 
Old 07-23-2015, 05:53 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Rundeck logs if I remember correctly, however, I believe it's buried (mine installed in /opt I think).
Have you checked (for) the logs?
 
1 members found this post helpful.
Old 07-23-2015, 12:26 PM   #7
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Rundeck logs if I remember correctly, however, I believe it's buried (mine installed in /opt I think).
Have you checked (for) the logs?
Hi Habitual,
thanks for helping me, for some reason it worked when I created a bash script on the rundeck box. The Rundeck app will execute the script, the script is just a plain command I posted earlier


Code:
#!/bin/bash
echo "performing the install now"
ssh@targethost "perl /home/build/space/scripts/installme.pl --rpm nrpe_v1.rpm --host host1
 
Old 07-23-2015, 02:05 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out!
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Q:rundeck to run the job again after it is done apss_evaluator Linux - Newbie 0 05-22-2015 03:44 AM
rundeck and puppet kaibeur Linux - Newbie 0 08-08-2013 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration