Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SCP Task not working in Bamboo

Kai_Unewisse August 19, 2015

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

0 votes
J June 13, 2016

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

0 votes
Kai_Unewisse August 19, 2015

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

0 votes
Kai_Unewisse August 19, 2015

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events