Vinyl-FTP上传一些0kb文件

时间:2019-02-27 20:05:07

标签: node.js ftp vinyl-ftp

我正在使用vinyl-ftp进行吞咽任务,将一组文件上传到服务器。除了OCCASIONALLY,所有上传看起来都不错,大约上传了1/30个文件,上传的是空文件,而不是实际文件。

在服务器上检查错误的上载为0kb,名称正确。它所影响的文件似乎是随机的,并且总是文件上传的一部分,永远不会一次失败。

我排除的内容:

  • 这不是我导致ftp的吞咽过程,仅运行ftp上传任务并编译了所有文件(非零kb)会有随机错误
  • Vinyl-ftp似乎认为上传没有任何错误,因为在调试和日志记录中,错误上传的消息与正确上传的消息相同

错误的上传日志(0kb图片)

[parser] < '230 Logged on'
[parser] Response: code=230, buffer='Logged on'
[connection] > 'FEAT'
[connection] < '150 Opening data channel for file upload to server of "/www/[...]/images/test-img.jpg"'
[parser] < '150 Opening data channel for file upload to server of "/www/[...]/images/test-img.jpg"'
[parser] Response: code=150, buffer='Opening data channel for file upload to server of "/www/[...]/images/test-img.jpg"'
[connection] < '211-Features: MDTM REST STREAM SIZE MLST [...]'
[parser] < '211-Features: MDTM REST STREAM SIZE MLST [...]'
[parser] Response: code=211, buffer='Features: MDTM REST STREAM SIZE MLST [...]'
[connection] > 'TYPE I'
[connection] < '226 Successfully transferred "/www/[...]/images/test-img.jpg"'
[parser] < '226 Successfully transferred "/www/[...]/images/test-img.jpg"'
[parser] Response: code=226, buffer='Successfully transferred "/www/[...]/images/test-img.jpg"'

0 个答案:

没有答案