not able to override file-copier or local-file-copier execution services

160 views
Skip to first unread message

Michael Gibson

unread,
May 22, 2012, 1:07:37 PM5/22/12
to rundeck...@googlegroups.com
Just curious to see if anyone else is having issues trying to override the file-copier execution service.
I am trying to dispatch a script and have specified file-copier: local in the resources.yaml. It seems that jsch-scp is the default and I'm not able to override that.

Getting this in my exception.
com.dtolabs.rundeck.core.execution.service.FileCopierException: [jsch-scp] Failed copying the file:

Michael Gibson

unread,
May 23, 2012, 2:41:59 PM5/23/12
to rundeck...@googlegroups.com
So I am able to work around this.
When using a "script" in your workflow step, jsch-scp is the default provider.

Specifying
file-copier: local
in the resources.yaml on a node basis is ignored

Specifying
service.FileCopier.default.provider=local
in the project.properties seems to recognize that.

Shouldn't "local" be default?

Greg Schueler

unread,
May 23, 2012, 3:12:39 PM5/23/12
to rundeck...@googlegroups.com
Hi Michael,

Maybe you can describe what you are trying to achieve? If you want to
dispatch a script, then the "local" file copier would not copy the
file to a remote machine.

By default, the "local" (rundeck server) node will always use local
node-executor and local file-copier, and non-local nodes will use the
default remote node-executor and file-copier, which are the ssh/scp
providers.

Michael Gibson

unread,
May 23, 2012, 3:24:57 PM5/23/12
to rundeck...@googlegroups.com
Sorry I should clarify,
I am trying to use "local" on the remote nodes.
So ssh/scp is the default executor on remote nodes. That makes sense.
And what I have been doing is put
node-executor: local
on all the nodes in my resources.yaml that I want to override that setting on.
This works for normal "command" steps in the workflow.

"script" steps use the file-copier provider.
So for those I was putting
file-copier: local
on all the nodes in my resources.yaml that I want to override that setting on.
That setting is not having an effect and the job attempts to scp the script to the dispatched nodes.

Putting
service.FileCopier.default.provider=local
in the project.properties seems to override the scp setting.

This is not ideal if you want to manage this setting on a node level basis.

Greg Schueler

unread,
May 23, 2012, 3:35:43 PM5/23/12
to rundeck...@googlegroups.com
Ok, can you file a bug about the file-copier attribute in yaml?
http://rundeck.lighthouseapp.com/projects/59277-development/overview

thanks

Michael Gibson

unread,
May 23, 2012, 3:53:28 PM5/23/12
to rundeck...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages