我在Azure DevOps中配置了一个发行版,并且FTP上载步骤遇到问题,该步骤通常会失败,但有时会起作用。我正在尝试部署到常规IIS框,而不是Azure订阅,并且只能通过FTP访问它。
当版本进入FTP上载步骤时,日志显示以下内容(IP地址被遮盖)...
##[section]Starting: FTP Upload
==============================================================================
Task : FTP upload
Description : Upload files using FTP
Version : 2.154.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/ftp-upload
==============================================================================
f71d50fb-1433-4a21-9748-e519c6a8ffcd exists true
connecting to: 1.1.1.1:21
connected: 220 FileZilla Server version 0.9.48 beta written by Tim Kosse (tim.kosse@filezilla-project.org) Please visit http
files uploaded: 0, directories processed: 1, total: 1, remaining: 133, remote directory successfully created/verified: /
File: /AutoMapper.Extensions.Microsoft.DependencyInjection.dll Type: upload Transferred: 0
File: /AutoMapper.Extensions.Microsoft.DependencyInjection.dll Type: upload Transferred: 0
##[error]Unhandled: This socket has been ended by the other party
##[warning]FTPError: 550 can't access file.
connecting to: 1.1.1.1:21
connected: 220 FileZilla Server version 0.9.48 beta written by Tim Kosse (tim.kosse@filezilla-project.org) Please visit http
File: /AutoMapper.Extensions.Microsoft.DependencyInjection.dll Type: upload Transferred: 0
File: /AutoMapper.Extensions.Microsoft.DependencyInjection.dll Type: upload Transferred: 0
##[error]Unhandled: This socket has been ended by the other party
##[warning]FTPError: 550 can't access file.
connecting to: 1.1.1.1:21
connected: 220 FileZilla Server version 0.9.48 beta written by Tim Kosse (tim.kosse@filezilla-project.org) Please visit http
File: /AutoMapper.Extensions.Microsoft.DependencyInjection.dll Type: upload Transferred: 0
File: /AutoMapper.Extensions.Microsoft.DependencyInjection.dll Type: upload Transferred: 0
##[error]Unhandled: This socket has been ended by the other party
##[warning]FTPError: 550 can't access file.
connecting to: 1.1.1.1:21
connected: 220 FileZilla Server version 0.9.48 beta written by Tim Kosse (tim.kosse@filezilla-project.org) Please visit http
##[error]FTPError: 550 can't access file.
host: 1.1.1.1
path: /
files uploaded: 0
directories processed: 1
unprocessed files & directories: 133
##[error]Ftp Upload failed
disconnecting from: 1.1.1.1
##[section]Finishing: FTP Upload
使用相同的FTP凭据,我可以使用FileZilla毫无问题地访问和上传。
我看到了this answer,这表明您需要先停止Azure应用程序,但是他为此提出的建议似乎不适用于从DevOps发行,因为我看不到您在哪里。 d添加代码行。
有人可以帮助吗?
答案 0 :(得分:0)
如果要使用命令行,请添加Azure CLI task
否则,您也可以通过Azure App Service Manage task
停止应用服务但是,如果可以的话,我强烈建议您使用Azure App Service Deploy task任务代替FTP。