Possible bug encountered: "bash: del: command not found"

1,571 views
Skip to first unread message

Jim Vollmer

unread,
Oct 29, 2013, 7:54:00 PM10/29/13
to rundeck...@googlegroups.com
Possible bug encountered.

I have created a job for Rundeck to execute on a windows client.

The job consists of:

A Job Name
A UUID
Multiple Executions: No
No options
Workflow: Stop at failed step, Node-orientated
A three line script:
    echo "info script"
    dir c:\
    ipconfig

Dispatch to Nodes is checked.
Thread count: 1

The script runs successfully.
But, the following error messages appears at the end.

 16:39:15 >   bash: del: command not found
 16:39:15 >   Remote command failed with exit status 127
 16:39:15 >   Failed to remove remote file: C:/WINDOWS/TEMP/1383089953900-OPT980-06-dispatch-script.bat


If this is a configuration issue, please explain steps in detail.

Thank you

Alex Honor

unread,
Oct 29, 2013, 7:58:04 PM10/29/13
to rundeck...@googlegroups.com
Hi Jim,

What version of Rundeck are using? Also, are you using the winrm plugin?
Thanks


--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Alex Honor

[SimplifyOps, Inc | a...@simplifyops.com ]

Be sure to comment and vote on Rundeck Feature Development!

Jim Vollmer

unread,
Oct 29, 2013, 10:13:29 PM10/29/13
to rundeck...@googlegroups.com
1.6.2
No winrm plugin.

Jim
You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rundeck-discuss/0Ia1t76lLFI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rundeck-discu...@googlegroups.com.

Vince H

unread,
May 29, 2014, 4:43:55 PM5/29/14
to rundeck...@googlegroups.com
I'm still encountering this in 2.1.1-1 so i've opened an issue to track it.

Vincent-

Be sure to comment and vote on Rundeck Feature Development!

Moses Lei

unread,
May 29, 2014, 4:53:25 PM5/29/14
to rundeck...@googlegroups.com
This looks like that your target is cygwin but you've set the family of your client to Windows, so it's trying to use DOS commands to delete the temp file.

What happens if you set your target OS to something other than windows?

Can you share your resources XML that refers to the client?

Thanks

Moses

--
Moses Lei
Principal, Village Chime LLC
mobile: +1 703 901 5969 | skype: moseslei | yahoo: moseslei


For more options, visit https://groups.google.com/d/optout.

Vince H

unread,
May 29, 2014, 5:19:56 PM5/29/14
to rundeck...@googlegroups.com
Hi Moses,

I've tried "unix" and removing that attribute altogether, to no avail:

   C:\Program Files\UnixUtils\chmod.exe: /tmp/1401398030639-clientname-dispatch-script.sh: No such file or directory
   Remote command failed with exit status 1
   Failed: NonZeroResultCode: Remote command failed with exit status 1

Here is a snippet of the node element from resources.xml:

  <node name="clientname" hostname="clientname.domain" username="rundeck" osFamily="windows" tags="app">
  <attribute name="node" value="1"/>
  </node>

Thanks,
Vincent-
Message has been deleted

RunDeckFan

unread,
Aug 6, 2015, 2:58:32 PM8/6/15
to rundeck-discuss
Has this been resolved? I have run into the same issue in 2.5.1. I can run commands through cygwin but not scripts. 

Thanks 
Reply all
Reply to author
Forward
0 new messages