SCP Task not working in Bamboo
Asked by Harry Christodoulou:

Hi there,

I've got an SCP task set up to copy some files from the Bamboo build server to another server machine. I can connect to the destination server, using any type of SFTP program (WINSCP) and manually xfer a file, but when I do it via Bamboo in a plan, via the SCP Task, it doesn't xfer the file. It also does not give me any errors. The build completes successfully and the task starts and ends within a second or 2 of it starting, but no files are copied. I can't seem to find out why this is happening. Any ideas/help please?


Answers:
author: Christoph Erni
body: Has this been fixed in the meantime? I am Experiencing the same problem. Our Bamboo Version is 5.10.3.


author: ssetayeshfar
body: Hi Marcus,

In that case we need to look at the log files. Please open a Bamboo support ticket at <https://support.atlassian.com>and attach your bamboo logs from under \<bamboo-home\>/logs.

Thank you.

Best,

Sepideh

comments: author: Marcus Smith
body: just did...:)


author: ssetayeshfar
body: Hello Marcus,

What is your version of Bamboo? and what version of "Bamboo SCP and SSH Tasks" plugin are you using? (You can check this by navigating to Bamboo Administration - \> Manage Add-ons - \> Show System Add-ons).

If you are not running Bamboo 5.3 and it's possible for you to upgrade your Bamboo instance to the latest version, please upgrade and check if the problem persists.

[](https://confluence.atlassian.com/display/BAMBOO/Bamboo+generic+upgrade+guide)<https://confluence.atlassian.com/display/BAMBOO/Bamboo+generic+upgrade+guide>

[](https://confluence.atlassian.com/display/BAMBOO/Bamboo+upgrade+guides)<https://confluence.atlassian.com/display/BAMBOO/Bamboo+upgrade+guides>

We experienced issues with the SCP task plugin in previous versions that are resolved now. If you continue to experience the same problem or if upgrade is not an option for you please open a support ticket at [](https://support.atlassian.com.)<https://support.atlassian.com>.

Thank you.

Best,

Sepideh

comments: author: Marcus Smith
body: I am using the latest version of Bamboo already (5.3) and for the SCP plugin, i am using 5.0.8. [](http://prntscr.com/2n6nc7)<http://prntscr.com/2n6nc7>My build runs as successfully but no files are transfering [](http://prntscr.com/2n6zis)<http://prntscr.com/2n6zis>

I do have my instance of Bamboo on a Windows server and I am deploying to my linux server. but that should be a problem


author: Marcus Smith
body: Have you all found a solution for this. I am having the same problem


author: Harry Christodoulou
body: Both are Windows Server 2008 R2

The /wwwroot is the virtual name which is putting to the physical path of c:\\inetpub\\wwwroot on the remote machine.

Also, if I use a SFTP program, such as WinSCP, I can manually xfer the file to the /wwwroot folder (virtual name) with no issues. It's only via the bamboo SCP task that it does not copy across???

Thanks for your suggestions though.


author: EddieW
body: What OS is the remote machine? What OS is the bamboo agent running on?

It is very unlikely that a windows (assuming IIS based on folder name) machine has root folder /wwwroot. It is likely this folder is under c:/Inetpub/wwwroot on both machines.

<http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a59a2665-9078-43ef-8b5a-5bf9bcacc95e.mspx?mfr=true>


author: Harry Christodoulou
body: Hi Eddie, Thanks for your response.

I'm using the full path in the local path section.

C:\\inetpub\\wwwroot\\test.txt

and the file is there in the above directory.

Method for authentication is password. This is also correct otherwise it would have given me a connection error.

I have also tried C:\\inetpub\\wwwroot\\\*.txt - no difference

The remote path is:

/wwwroot/

But I have tried \\wwwroot\\ , \\wwwroot/ , /wwwroot , \\wwwroot , etc to no avail.


author: EddieW
body: Are you using the full path and not a \~ for the remote? are you sure the source dir has the file?

What method are you using for authentication?


Tags: scp