SCP Task: Failed to connect to host

Ignacio Álvarez Valdeón July 2, 2014

Hello,

I'm trying to configure a simple plan in Bamboo: Checkout from Subversion repository and Upload my Coldfusion source to a Test environment.

The plan execution throws attached exception. I have checked all parameter:

host: myhost

port: 2122

username: myuser

Authentication type: Password

password: mypassword

local path: *

Remote path: /mypath

I have a FTP connection (not SFTP) with this parameter and it works fine!

Do you know what am I doing wrong? Shall I need other task to upload my source by FTP?

Thanks for advance!

Starting task 'Upload Source' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask'
error	03-Jul-2014 12:29:41	Failed to connect to host
error	03-Jul-2014 12:29:41	net.schmizz.sshj.transport.TransportException: Incorrect identification: line too long
error	03-Jul-2014 12:29:41		at net.schmizz.sshj.transport.TransportImpl.init(TransportImpl.java:164)
error	03-Jul-2014 12:29:41		at net.schmizz.sshj.SSHClient.onConnect(SSHClient.java:671)
error	03-Jul-2014 12:29:41		at net.schmizz.sshj.SocketClient.connect(SocketClient.java:71)
error	03-Jul-2014 12:29:41		at net.schmizz.sshj.SocketClient.connect(SocketClient.java:77)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:77)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:188)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:94)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
error	03-Jul-2014 12:29:41		at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
error	03-Jul-2014 12:29:41		at java.lang.Thread.run(Thread.java:745)
error	03-Jul-2014 12:29:41	Caused by: net.schmizz.sshj.transport.TransportException: Incorrect identification: line too long
error	03-Jul-2014 12:29:41		at net.schmizz.sshj.transport.TransportImpl.readIdentification(TransportImpl.java:210)
error	03-Jul-2014 12:29:41		at net.schmizz.sshj.transport.TransportImpl.init(TransportImpl.java:157)
error	03-Jul-2014 12:29:41		... 12 more
simple	03-Jul-2014 12:29:41	Finished task 'Upload Source'

2 answers

0 votes
Thomas Rogge-Solti December 11, 2014

Hello,

We have the same exception. We cannot upload a file to an FTP Server via SCP plugin.

Our Bamboo version information
Version5.7-OD-06-010
Build number5714
Build date12/2/14

Our SCP Version:


scp-version.png

 

The Log is attached as a file here:

Hopefully this helps to track down this error. Would be nice to be able to use the ftp deployment plan.

Cheers,
Thomas

Samuele Di Rito April 17, 2015

Thomas, can you share any news or fix?

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2014

Hi Ignacio,

Thank you for your question.

What is your current Bamboo instance version, please?

Would be possible to inform/compare your settings for:

  • Source Control Checkout, where you provide a repository URL
  • SCP Task

Kind regards,
Rafael

Ignacio Álvarez Valdeón July 3, 2014

Bamboo 4.4.8

Thanks for the fast response!

Samuele Di Rito April 17, 2015

Rafael, sorry, can you share any news?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events