Azure-pipelines-tasks: FtpUpload fails intermittently with "Error: socket hang up"

Created on 16 May 2019  路  3Comments  路  Source: microsoft/azure-pipelines-tasks

Issue Description

The FTP upload task is failing intermittently with a "socket hang up" error. It errors on a different file each time it fails. An example looks like:

2019-05-15T15:57:16.7006685Z ##[debug]task result: Failed
2019-05-15T15:57:16.7007873Z ##[error]upload failed: /site/wwwroot/_widget18.scss due to error: Error: socket hang up

(full debug log attached below)

Are there any best practice recommendations to reduce this? Using v2 of the FtpUpload task, or uploading files zipped instead of loose?

This looks related to #7927 (socket hang up in FtpUpload) and maybe #4241 (socket hang up in App Service Deploy), #8066 and #9892 (timeouts in FtpUpload).

Thanks!


Type: Bug

Enter Task Name: FtpUpload@1

Environment

Azure Pipelines
Agent: Hosted, "windows-latest"

Task logs

log_8_155.zip

CrossPlatform bug

Most helpful comment

Version 2 of FtpUpload task has been released. This version would auto retry for connection issues. Please give that a try.

All 3 comments

Version 2 of FtpUpload task has been released. This version would auto retry for connection issues. Please give that a try.

Thanks!

Version 2 of FtpUpload task has been released. This version would auto retry for connection issues. Please give that a try.

solved my problem, too

Was this page helpful?
0 / 5 - 0 ratings