我们使用管道建立了从bitbucket到azure app服务部署的持续集成。它一直工作得很好,从本周早些时候开始就没有复制过程。
我们使用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 stdout,示例日志输出...
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.
感谢任何帮助。