Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use the CopyFilesOverSSH task to deploy to Solaris 11 #10175

Closed
egoicovici opened this issue Apr 22, 2019 · 2 comments · Fixed by #13084 or #13312
Closed

Cannot use the CopyFilesOverSSH task to deploy to Solaris 11 #10175

egoicovici opened this issue Apr 22, 2019 · 2 comments · Fixed by #13084 or #13312
Assignees
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug Task: CopyFilesOverSSH

Comments

@egoicovici
Copy link

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: CopyFilesOverSSH

Environment

  • Server - Azure Pipelines

  • Agent - Private running on Windows OS, agent version 2.148.1

Issue Description

I cannot use the Copy Files over SSH Azure DevOps task inside a release pipeline to deploy artifacts to Solaris 11.4 servers via SSH. I have successfully used this Azure DevOps task to deploy files to Solaris 10. But when using it against Solaris 11, the task freezes indefinitely without any debug information (when System.Debug variable is set to true inside the release pipeline).

After further investigations on this issue, it seems that this problem occurs only when SSH server identifies itself with a banner string that ends with whitespaces. This problem has been fixed in this commit inside the ssh2-streams javascript library on which the Copy Files Over SSH task depends to. This changeset has been incorporated in ssh2-streams v0.1.20 . But the Copy Files Over SSH Azure DevOps task currently uses scp2 version 0.5.0 which depends on ssh2 version 0.5.4 which uses ssh2-streams version 0.1.15, therefore this bug is present.

The scp2 javascript library is not actively maintained thus there were no recent releases, but if you take a look on its repository, its dependency to the ssh2 library has been updated from version 0.5.4 to version 0.6.0, and the ssh2 v0.6.0 depends on ssh2-streams v0.2.0 , thus includes the bugfix for the problem described above.

On the other hand the SSH Deployment Task depends on ssh2 v0.8.2 javascript library, thus I can successfully use this Azure DevOps task to remotely run commands on a given Solaris 11.4 server. Thus the reported problem occurs only for the Copy Files Over SSH task.

@ghost ghost added bug route labels Apr 22, 2019
@egoicovici egoicovici changed the title Cannot use the CopyFilesOverSSH to deploy to Solaris 11 Cannot use the CopyFilesOverSSH task to deploy to Solaris 11 Apr 22, 2019
@egoicovici
Copy link
Author

The SSH server used is OpenSSH v7.5, which is the default version that come with Solaris 11.4, thus this bug can be reproduced by connecting via SSH to any Solaris 11.4 server.

@stephenmichaelf
Copy link
Member

There is a PR out to address this here: #11488

@stephenmichaelf stephenmichaelf self-assigned this Feb 7, 2020
@damccorm damccorm added Area: ABTT Akvelon Build Tasks Team area of work and removed Area: Core labels Jun 15, 2020
@sdobrodeev sdobrodeev linked a pull request Jun 23, 2020 that will close this issue
2 tasks
@sdobrodeev sdobrodeev self-assigned this Jun 24, 2020
@sdobrodeev sdobrodeev added the awaiting deployment Related changes are waiting for deployment to be completed label Jun 25, 2020
@sdobrodeev sdobrodeev removed the awaiting deployment Related changes are waiting for deployment to be completed label Jul 15, 2020
@sdobrodeev sdobrodeev linked a pull request Jul 17, 2020 that will close this issue
2 tasks
@sdobrodeev sdobrodeev added the awaiting deployment Related changes are waiting for deployment to be completed label Aug 4, 2020
@sdobrodeev sdobrodeev removed the awaiting deployment Related changes are waiting for deployment to be completed label Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug Task: CopyFilesOverSSH
Projects
None yet
6 participants