Closed liuzc closed 3 months ago
http://stackoverflow.com/questions/17245881/node-js-econnreset
maybe the poor network's issue, deploy again ?
I've tried many times,but still got this error.
FTP 权限没问题吧? 临时给个777试试呢 ?
之前是给的775,后来改了777也是同样的问题。不知道是不是因为第一次部署文件较多导致网络上的问题。
先不用这个插件,用Xftp之类的工具上传一下试试看呢,只要把public下所有文件传上去就行
嗯,目前先换了其他的deployer,只是觉得ftp还是比较方便的。谢谢!
是ftpsync的锅么- -,怎么各种有问题
ref: https://github.com/keel/parse-listing/commit/0b130bc927afec17c593f5b276a434d0a11e6e68
@leesei 可能是jsftp
依赖中parse-listing
的一个BUG,详情参见这个patch,具体表现为所有纯数字文件夹都会被识别为文件(Windows Server)
一系列的上传问题可能都是由于这个问题导致的。
Update: 奇怪的是这里已经Fix了: https://github.com/sergi/parse-listing/commit/a3086a60b8f36a2568af3d5bfa84a7a7a1771287 一系列包依赖的都是最新的- -
现在解决了吗,我也遇到这个问题
@giuem 先发放弃了这种方式,改用git部署了。
Connection reset 應該是protocol 上出問題所以FTP server 斷線 要看log 才能知道啥事
我也遇到了这个问题,然后我换用ftp直接传上去。 今天我又试了一次,就成功了╮(╯▽╰)╭ 具体过程是今天部署不会出现这个错误提示,而是先提醒我目录中有一个文件无法删除,因为我用了lnmp一键安装包,所以目录中会有.user.ini文件被chattr,我把这个文件加入ignore,再次deploy就成功了。 我觉得这个问题只有第一次部署会遇到。 我建议遇到这个问题的人先把public目录中的文件用其他方法上传,然后有更新再用ftpsync来deploy试试。
我经常是文件上传几个后就出错
Committing
-------------------------------------------------------------
- /php-bug-cve-2015-4024/index.html uploaded successfuly
- /php-check-if-a-string-is-a-valid-email/index.html uploaded successfuly
- /php-flush/index.html uploaded successfuly
- /php-hack-equality-sign/index.html uploaded successfuly
- /php-msg-flood/index.html uploaded successfuly
- /qzone-comment-php/index.html uploaded successfuly
events.js:85
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:746:11)
at TCP.onread (net.js:559:26)
@giuem 請問有server 端的log 嗎?
i'm encounted the same issues.
E:\hexo> hexo d
INFO Deploying: ftpsync
Setup
Setup complete.
Collecting
Collection complete.
Consolidating
Consolidation complete.
Committing
Additions complete.
events.js:85
throw er; // Unhandled 'error' event
^
Error: write ECONNRESET
at exports._errnoException (util.js:746:11)
at Socket._writeGeneric (net.js:690:26)
at Socket._write (net.js:709:8)
at doWrite (_stream_writable.js:301:12)
at writeOrBuffer (_stream_writable.js:288:5)
at Socket.Writable.write (_stream_writable.js:217:11)
at Socket.write (net.js:634:40)
at Stream.method [as write] (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\n
_modules\event-stream\node_modules\duplexer\index.js:47:39)
Frankly speaking this deployer is just a wrapper around evanplaice/node-ftpsync. This kind of issue should be reported upstream.
And this one particular seems to be a network or server configuration issue, without log there will not be any progress.
@leesei 为什么ftp用户名会变成问号?
$ hexo d
INFO Deploying: ftpsync
Setup
Setup complete.
Collecting
events.js:141
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:873:11)
at TCP.onread (net.js:557:26)
以下是日志
Jul 27 07:18:24 li888-68 pure-ftpd: (?@106.6.89.160) [INFO] New connection from 106.6.89.160
用戶名是中文字嗎?
英文的
你可以自行加log 檢視一下嗎?
hexo config
可以看到parse 過的_config.yaml
實不相瞞我沒用過這個plugin
实不相瞒我是新手不怎么会用linux。。
我也遇到这个问题,怎么解决
我也遇到这个问题
建议大家改用VSCODE的ftp同步插件进行同步.
抱歉回复晚了,我已经重构了这个插件,如果问题仍然存在,欢迎继续报告。新版本的安装方法是: npm i hexo-deployer-ftpsync@0.2.0
Sorry for the late reply. I have already refactored this plugin. If the issue persists, please feel free to report it again. The installation method for the new version is: npm i hexo-deployer-ftpsync@0.2.0
检查ftp有上传,但是文件没有上传完整。