troubleshoot scptask

Hi

I am trying to use an SCP task to copy and artefact from a build to a deployment server.

I can use SCP successfully from my machine, but It doesn't work from the SCP task, I get the following error:

 

Connecting to 185.95.244.34 on port: 22
18-Feb-2016 12:04:21Failed to connect to host
18-Feb-2016 12:04:21java.net.ConnectException: Connection timed out
18-Feb-2016 12:04:21        at java.net.PlainSocketImpl.socketConnect(Native Method)
18-Feb-2016 12:04:21        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
18-Feb-2016 12:04:21        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
18-Feb-2016 12:04:21        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
18-Feb-2016 12:04:21        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
18-Feb-2016 12:04:21        at java.net.Socket.connect(Socket.java:589)
18-Feb-2016 12:04:21        at net.schmizz.sshj.SocketClient.connect(SocketClient.java:53)
18-Feb-2016 12:04:21        at net.schmizz.sshj.SocketClient.connect(SocketClient.java:80)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:264)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.plugins.scp.ScpTask.run(ScpTask.java:127)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:112)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$80(TaskExecutorImpl.java:265)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:265)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:214)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:136)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
18-Feb-2016 12:04:21        at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
18-Feb-2016 12:04:21        at java.lang.Thread.run(Thread.java:745)
18-Feb-2016 12:04:21Finished task 'Copy to Ospero-REHEL-001' with result: Error

 Is there anyway I can troubleshoot what is going wrong?

3 answers

This widget could not be displayed.

Ask for help at support.atlassian.com

This widget could not be displayed.

Hi Alexey,

That's what I did, and it created a ticket here.

Are you saying I should create this ticket elsewhere? If so how?

This widget could not be displayed.

You did everything correctly

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

160 views 1 3
Join discussion

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