xebialabs / overthere

Runs something "Over there"

Home Page:http://www.xebialabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy operation fails sometimes with interactive sudo

paulvanderende opened this issue · comments

Using interactive sudo over ssh from linux to linux, the short-circuit copy on a remote host of a directory sometimes fails with the following error.

Stacktrace:

com.xebialabs.overthere.RuntimeIOException: Cannot copy [/tmp/ot-20170905T112626409.456/dir-to-copy] to [/tmp/ot-20170905T112626409.457/dir-to-copy] on [ssh:interactive_sudo://uuuuuu:uuuuuuu@hhhhhhhhhh:22]: (errno=1) at com.xebialabs.overthere.spi.BaseOverthereFile.shortCircuitCopyFrom(BaseOverthereFile.java:156) at com.xebialabs.overthere.spi.BaseOverthereFile.copyTo(BaseOverthereFile.java:99)

Remotely executed copy command involved that returns the errno 1:

cd /tmp/ot-20170905T112626409.457/dir-to-copy ; tar -cf - -C /tmp/ot-20170905T112626409.456/dir-to-copy . | tar xpf -

Is this a bug?

Regards, Paul