SCP Task not working in Bamboo

HI there,

i want to copy the checked up files to a folder on a windows machine and the task fails : 

 

The SCP Task uses a local windows user "bamboo" (who is owner of the folder bambootest) .
Local path : **
Remote path : C:\bambootest 

 

 

simple	19-Aug-2015 14:26:06	Starting task 'Copy Files' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
simple	19-Aug-2015 14:26:06	Connecting to 10.2.173.112 on port: 22
simple	19-Aug-2015 14:26:08	Performing a recursive copy...
simple	19-Aug-2015 14:26:08	Uploading '.bowerrc'...
simple	19-Aug-2015 14:26:08	Uploading '.editorconfig'.

....

simple	19-Aug-2015 14:26:08	Creating remote directory 'web'...
simple	19-Aug-2015 14:26:08	Uploading 'C:\Users\sdsds\bamboo-home\xml-data\build-dir\KTP-TP-JOB1\.bowerrc' to 'C:\bambooTest'
...
error	19-Aug-2015 14:26:11	Failed to upload C:\bambooTest, Received unknown response code
error	19-Aug-2015 14:26:11	Copy Failed. Some files were not uploaded successfully.
error	19-Aug-2015 14:26:11	'C:\Users\sdsds\bamboo-home\xml-data\build-dir\KTP-TP-JOB1\web\app\img\wta_images\fme_transparent.png' was not uploaded.
error	19-Aug-2015 14:26:11	'C:\Users\sdsds\bamboo-home\xml-data\build-dir\KTP-TP-JOB1\web\proui\img\placeholders\photos\photo24@2x.jpg' was not uploaded.

 

 

In the log i see :
2015-08-19 13:55:31,948 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [TaskExecutorImpl] KTP-TP-JOB1-2: Starting task 'Copy Files' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
2015-08-19 13:55:31,950 WARN [13-BAM::Default Agent::Agent:pool-28-thread-1] [AtlassianSshClient$AtlassianDefaultSshConfig] Disabling high-strength ciphers: cipher strengths apparently limited by JCE policy
2015-08-19 13:55:31,952 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [TransportImpl] Client identity string: SSH-2.0-SSHJ_0_9_2
2015-08-19 13:55:33,266 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [TransportImpl] Server identity string: SSH-2.0-cryptlib
2015-08-19 13:55:33,505 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [ScpTask] Preparing list of files to copy in C:\Users\kunewis\bamboo-home\xml-data\build-dir\KTP-TP-JOB1 matching **/**
2015-08-19 13:55:33,651 INFO [13-BAM::Default Agent::Agent:pool-28-thread-1] [SessionChannel] Will request to exec `scp -t -r -p 'C:/bambooTest'`
2015-08-19 13:55:36,264 ERROR [reader] [TransportImpl] Dying because - {}
net.schmizz.sshj.transport.TransportException: Broken transport; encountered EOF
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
2015-08-19 13:55:36,264 INFO [reader] [TransportImpl] Disconnected - UNKNOWN

3 answers

FYI : on the windows machine is a SSH Server running. creating/copy files per Putty is working... and adding the unlimited JCE Policy did not change the issue.

I changed my SSH Server to SilverSHielD. Now the job starts with the copy. I modified the file to copy just the files : bower.json, Gruntfile.js,composer.json As a result, one or two files are copied, but i receive always an error for one file (file size is always below 23KB) 2015-08-19 16:07:09,573 ERROR [reader] [TransportImpl] Dying because - {} net.schmizz.sshj.transport.TransportException: [PROTOCOL_ERROR] invalid packet length: -2142176972 at net.schmizz.sshj.transport.Decoder.decryptLength(Decoder.java:150) at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:80) at net.schmizz.sshj.transport.Decoder.received(Decoder.java:175) at net.schmizz.sshj.transport.Reader.run(Reader.java:61) 2015-08-19 16:07:09,573 INFO [reader] [TransportImpl] Disconnected - PROTOCOL_ERROR 2015-08-19 16:07:09,574 ERROR [13-BAM::Default Agent::Agent:pool-28-thread-1] [Promise] <<chan#1 / open>> woke to: net.schmizz.sshj.connection.ConnectionException: invalid packet length: -2142176972

Any fix for this?  I'm receiving the same issue.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,821 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you