Bitbucket管道-使用ncftpput部署到Azure应用程序服务中途失败

Bitbucket管道-使用ncftpput部署到Azure应用程序服务中途失败,azure,azure-web-app-service,bitbucket-pipelines,Azure,Azure Web App Service,Bitbucket Pipelines,我们使用管道建立了从bitbucket到azure应用程序服务部署的持续集成。它一直运行良好,从本周初开始,它在复制过程的中途失败 我们使用ncftpput将文件从bitbucket ftp到azure,下面给出了一个示例 ncftpput -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R $FTP_HOST /site/wwwroot/Views * 它开始复制文件,但是在复制了一些文件之后,我们得到了这个错误 Passive mode refused.

我们使用管道建立了从bitbucket到azure应用程序服务部署的持续集成。它一直运行良好,从本周初开始,它在复制过程的中途失败

我们使用ncftpput将文件从bitbucket ftp到azure,下面给出了一个示例

ncftpput -v -u "$FTP_USERNAME" -p "$FTP_PASSWORD" -R $FTP_HOST /site/wwwroot/Views *
它开始复制文件,但是在复制了一些文件之后,我们得到了这个错误

Passive mode refused.
ncftpput pdf.png: passive mode failed.
在ncftput中使用-d标准输出时,示例日志输出

Cmd: PASV
227: Entering Passive Mode (40,120,124,239,39,110).
Cmd: STOR SuperAccount/CreateAdminUser.cshtml
150: Opening BINARY mode data connection.
226: Transfer complete.
Cmd: MDTM 20171205112659 SuperAccount/CreateAdminUser.cshtml
SuperAccount/CreateAdminUser.cshtml:
...count/CreateAdminUser.cshtml:   ETA:   0:00   25.00/ 25.00 B   387.52 kB/s  
...count/CreateAdminUser.cshtml:   ETA:   0:00   25.00/ 25.00 B   339.07 B/s  
SuperAccount/CreateAdminUser.cshtml:                    25.00 B   339.07 B/s  
SuperAccount/CreateAdminUser.cshtml:                    25.00 B   339.07 B/s  
213: 20171205112659
Cmd: SIZE SuperAccount/Index.cshtml
213: 198
Cmd: MDTM SuperAccount/Index.cshtml
213: 20171205111515
Cmd: PASV
425: Cannot open data connection.
Cmd: PORT 10,252,28,100,231,121
Passive mode refused.
501: Server cannot accept argument.
We verified the azure publish profile and see that passive mode is set true.

非常感谢您的帮助。

我也有同样的问题。我们已经使用这种部署方法好几个月了,没有出现任何问题,但突然之间,这导致了一个问题,但到目前为止,只在我们的一个web应用程序上出现了。同样的问题,从12月27日开始出现。有人对此有任何解决方案吗?我认为这取决于azure托管web应用程序的服务器负载。我们做了几件事,不确定哪一件有效。1) 将我们的webapp从B1基本计划扩展到S1标准计划。2) 删除了管道中的文件副本,这些文件不是每次更改都需要的。3) 设置选项:最大时间:管道中的15(可根据需要进行调整)。