Giter Club home page Giter Club logo

hexo-deployer-ftpsync's Introduction

FTP deployer

Build Status NPM version

Deploy your site via FTP.

Install

$ npm install hexo-deployer-ftpsync --save

Usage

See https://hexo.io/docs/one-command-deployment#FTPSync

Warning

If the parameter clear is set to true, this plugin will delete all the files and directories on the remote server before uploading. Use this plugin in production at your own risk.

hexo-deployer-ftpsync's People

Contributors

borgfriend avatar curbengh avatar dependabot-preview[bot] avatar leesei avatar liuyib avatar nerom avatar noahdragon avatar pbw-kevin avatar stevenjoezhang avatar tomap avatar tommy351 avatar wildmolasses avatar yoshinorin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-deployer-ftpsync's Issues

This plugin does not work on hexo: 4.2.1.

This plugin does not work on hexo: 4.2.1. Windows 10 2004
Tested on different ftp servers. Including tested locally on FileZilla Server.
Connected creates folders and that's it. no mistakes. Files does not transfer.

you can check it yourself

"Callback was already called" error

- /tags/index.html uploaded successfuly
- /vendors/fancybox/source/blank.gif uploaded successfuly
- /vendors/fancybox/source/fancybox_loading.gif uploaded successfuly
- /vendors/fancybox/source/[email protected] uploaded successfuly
- /vendors/fancybox/source/fancybox_overlay.png uploaded successfuly
ftp.put failed.
Additions failed.
Commit failed.
Commit complete.
/home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:43
            if (fn === null) throw new Error("Callback was already called.");
                                   ^
Error: Callback was already called.
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:43:36
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:688:17
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:167:37
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/lib/ftpsync.js:277:7
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:691:13
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:52:16
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:262:21
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:44:16
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:688:17
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:167:37
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/lib/ftpsync.js:228:13
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:52:16
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:358:13
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:52:16
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:320:29
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:44:16
    at /home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:355:17
    at Socket.<anonymous> (/home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/lib/ftpsync.js:475:13)
    at Socket.f (/home/deploy/app/nodejs/zhuzhenyu.org/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/once/once.js:16:25)
    at Socket.emit (events.js:107:17)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)
[deploy@Tokyo zhuzhenyu.org]$

博主,报了如下错误。

SFTP?

Does the plugin support sftp? If not, can I enable it or is it a planned feature?

部署报错505

报错代码如下:

node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on  instance at:
    at Stream.<anonymous> (C:\Users\suyin\Desktop\Hexo-NexT\NexT\node_modules\jsftp\lib\jsftp.js:91:32)
    at Stream.emit (node:events:527:28)
    at Socket.reemit (C:\Users\suyin\Desktop\Hexo-NexT\NexT\node_modules\duplexer\index.js:85:16)
    at Socket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}

求解?

FtpSync上传文件报错

From @Witype on May 15, 2015 7:23

Uploading pasted_image.jpg…

MKDIRs complete.

  • /2015/05/14/long-text-test/index.html uploaded successfuly
    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](F:WorkFolderwitypeHexonode_moduleshexo-dep
    oyer-ftpsyncnode_modulesftpsyncnode_modulesjsftpnode_modulesevent-stream
    ode_modulesduplexerindex.js:47:39)
    at Ftp.send (F:\WorkFolder\witypeHexo\node_modules\hexo-deployer-ftpsync\no
    e_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:185:17)
    at Ftp.nextCmd (F:\WorkFolder\witypeHexo\node_modules\hexo-deployer-ftpsync
    node_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:194:10)
    at Ftp.parse (F:\WorkFolder\witypeHexo\node_modules\hexo-deployer-ftpsync\n
    de_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:262:8)
    at Ftp.parseResponse (F:\WorkFolder\witypeHexo\node_modules\hexo-deployer-f
    psync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:173:8)
    at Stream. (F:\WorkFolder\witypeHexo\node_modules\hexo-deployer-
    tpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:145:24)
    at Stream.emit (events.js:107:17)
    at ResponseParser.reemit (F:\WorkFolder\witypeHexo\node_modules\hexo-deploy
    r-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-stream\nod
    _modules\duplexer\index.js:70:25)
    at ResponseParser.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at ResponseParser.Readable.push (_stream_readable.js:126:10)
    at ResponseParser.Transform.push (_stream_transform.js:140:32)
    at ResponseParser. (F:\WorkFolder\witypeHexo\node_modules\hexo-d
    ployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\ftp-respons
    -parser\index.js:65:12)
    at Array.forEach (native)
    at ResponseParser._transform (F:\WorkFolder\witypeHexo\node_modules\hexo-de
    loyer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\ftp-response
    parser\index.js:48:9)
    at ResponseParser.Transform._read (_stream_transform.js:179:10)
    at ResponseParser.Transform._write (_stream_transform.js:167:12)
    at doWrite (_stream_writable.js:301:12)
    at writeOrBuffer (_stream_writable.js:288:5)
    at ResponseParser.Writable.write (_stream_writable.js:217:11)
    at Socket.ondata (_stream_readable.js:540:20)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:538:20)

Copied from original issue: hexojs/hexo#1270

Notice belongs in README

The following notice certainly belongs in the README.md.

Notice: This application will delete files and directories on the remote server to match the local machine. Use this application in production at your own risk.

Can I ignore files by pattern ?

Hey guys !

I use a complex FTP server as my blog server, so I really this great job! However, my server will automatically generate some log files such wwwlog-XXXX , and while I deploy a new version , such files will be removed also.

I notice that it seems that the field 'ignore' can be use to avoid this happen ? but I can not know more details for it. Can anybody help me ? Thanks

FTPSync Failed

From @yy0c on September 19, 2015 1:58

Collection complete.

Consolidating
-------------------------------------------------------------
Mkdir:
[]

Rmdir:
[ '/logreport' ]

Add:
[]

Updates:
[]

Remove:
[ '/logreport/no_delete' ]

Consolidation complete.

Committing
-------------------------------------------------------------
Remove failed.
Removals failed.
Commit failed.
Commit complete.
/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:43
            if (fn === null) throw new Error("Callback was already called.");
                             ^

Error: Callback was already called.
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:43:36
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:694:17
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:173:37
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/lib/ftpsync.js:277:7
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:697:13
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:52:16
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:267:21
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:44:16
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:694:17
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:173:37
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/lib/ftpsync.js:252:13
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:52:16
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:363:13
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:52:16
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:325:29
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:44:16
    at /home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/async/lib/async.js:360:17
    at Object.callback (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/lib/ftpsync.js:491:9)
    at Ftp.parse (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:261:11)
    at Ftp.parseResponse (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:174:8)
    at Stream.<anonymous> (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:146:24)
    at emitOne (events.js:77:13)
    at Stream.emit (events.js:169:7)
    at ResponseParser.reemit (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/duplexer/index.js:70:25)
    at emitOne (events.js:77:13)
    at ResponseParser.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at ResponseParser.Readable.push (_stream_readable.js:110:10)
    at ResponseParser.Transform.push (_stream_transform.js:128:32)
    at ResponseParser.<anonymous> (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/ftp-response-parser/index.js:65:12)
    at Array.forEach (native)
    at ResponseParser._transform (/home/hiro/learning/gitdb/blog_hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/ftp-response-parser/index.js:48:9)
    at ResponseParser.Transform._read (_stream_transform.js:167:10)
    at ResponseParser.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:292:12)
    at writeOrBuffer (_stream_writable.js:278:5)
    at ResponseParser.Writable.write (_stream_writable.js:207:11)
    at Socket.ondata (_stream_readable.js:525:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at TCP.onread (net.js:523:20)

在万网主机上部署的,设置应该是正确的。但是在部署的过程中出错了。

deploy:
 type: ftpsync
 host: hostname.my3w.com
 user: username
 pass: passwd
 remote: /htdocs
 port: 21
 ignore: /logreport
 connections: 1
 verbose: true

Copied from original issue: hexojs/hexo#1509

The address set by FTP is inconsistent with the address of the connection

zh-CN:我设置的地址是我的外网IP,ftp工具是可以正常访问的,但是在hexo同步的时候它在连接我服务器的内网IP
en:The address I set is my external IP, FTP tool can be accessed normally, but when hexo synchronizes, it connects to my server's intranet IP.

Remove:
[]

Consolidation complete.

Committing
-------------------------------------------------------------
events.js:167
      throw er; // Unhandled 'error' event
      ^
                                            //这里是我的内网IP this is my Intranet IP
Error: connect ETIMEDOUT 172.18.221.72:47939
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1117:14)
Emitted 'error' event at:
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)

(node:784) [DEP0128] DeprecationWarning: Invalid 'main' field in 'D:\Dropbox\hexo\node_modules\jsftp\package.json' of './jsftp.js'. Please either fix that or report it to the module author

Check List

Please check followings before submitting a new issue.

Expected behavior

should be no error

Actual behavior

still works but shows deprecation error

How to reproduce?

any hexo command i.e. hexo server, hexo version, hexo clean, hexo generate

Is the problem still there under "Safe mode"?

no

Environment & Settings

npm -v
(node:6504) [LRU_CACHE_OPTION_maxAge] DeprecationWarning: The maxAge option is deprecated. Please use options.ttl instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:9844) [LRU_CACHE_OPTION_maxAge] DeprecationWarning: The maxAge option is deprecated. Please use options.ttl instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
8.3.1

node -v
v16.14.0

hexo -v
(node:12684) [DEP0128] DeprecationWarning: Invalid 'main' field in 'D:\Dropbox\blog\node_modules\jsftp\package.json' of './jsftp.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
hexo: 5.4.1
hexo-cli: 4.3.0
os: win32 10.0.19044
node: 16.14.0
v8: 9.4.146.24-node.20
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 93
nghttp2: 1.45.1
napi: 8
llhttp: 6.0.4
openssl: 1.1.1m+quic
cldr: 40.0
icu: 70.1
tz: 2021a3
unicode: 14.0
ngtcp2: 0.1.0-DEV
nghttp3: 0.1.0-DEV

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Hexo and Plugin version(npm ls --depth 0)

npm ls --depth 0
(node:1744) [LRU_CACHE_OPTION_maxAge] DeprecationWarning: The maxAge option is deprecated. Please use options.ttl instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:14888) [LRU_CACHE_OPTION_maxAge] DeprecationWarning: The maxAge option is deprecated. Please use options.ttl instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[email protected] D:\Dropbox\blog
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

Your package.json package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "5.4.1"
  },
  "dependencies": {
    "bulma-stylus": "^0.8.0",
    "hexo": "^5.0.0",
    "hexo-component-inferno": "^0.10.5",
    "hexo-deployer-ftpsync": "^0.1.1",
    "hexo-deployer-rsync": "^1.0.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index": "^2.0.0",
    "hexo-generator-tag": "^1.0.0",
    "hexo-renderer-ejs": "^1.0.0",
    "hexo-renderer-inferno": "^0.1.3",
    "hexo-renderer-marked": "^4.0.0",
    "hexo-renderer-stylus": "^2.0.0",
    "hexo-server": "^2.0.0",
    "hexo-theme-landscape": "^0.0.3",
    "inferno": "^7.3.3",
    "inferno-create-element": "^7.3.3"
  }
}

Others

Additional info

10:28:26.772 DEBUG Plugin loaded: hexo-component-inferno
10:28:26.773 DEBUG Plugin loaded: hexo-deployer-ftpsync
10:28:26.773 DEBUG Plugin loaded: hexo-deployer-rsync
10:28:26.773 DEBUG Plugin loaded: hexo-generator-archive
10:28:26.774 DEBUG Plugin loaded: hexo-generator-index
10:28:26.774 DEBUG Plugin loaded: hexo-generator-category
10:28:26.774 DEBUG Plugin loaded: hexo-generator-tag
10:28:26.774 DEBUG Plugin loaded: hexo-renderer-ejs
10:28:26.774 DEBUG Plugin loaded: hexo-renderer-inferno
(node:14684) [DEP0128] DeprecationWarning: Invalid 'main' field in 'D:\Dropbox\omglulz\node_modules\jsftp\package.json' of './jsftp.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
10:28:27.033 DEBUG Plugin loaded: hexo-renderer-marked
10:28:27.034 DEBUG Plugin loaded: hexo-renderer-stylus
10:28:27.034 DEBUG Plugin loaded: hexo-server

ftpsync return Error 500 Unknown command

this is errmsg:

INFO  Deploying: ftpsync
Setup
Setup complete.

Collecting
ftp.ls failed.
Collection failed.

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: 530 You aren't logged in
    at Ftp.parse (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:233:11
)
    at Ftp.parseResponse (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.j
s:148:8)
    at Stream.<anonymous> (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.
js:119:24)
    at Stream.emit (events.js:107:17)
    at Stream.reemit (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\ev
ent-stream\node_modules\duplexer\index.js:70:25)
    at Stream.emit (events.js:107:17)
    at Stream.write (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\eve
nt-stream\index.js:192:12)
    at Stream.stream.write (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modu
les\event-stream\node_modules\through\index.js:26:11)
    at Stream.ondata (stream.js:51:26)
    at Stream.emit (events.js:107:17)
    at drain (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-stre
am\node_modules\through\index.js:36:16)
    at Stream.stream.queue.stream.push (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsf
tp\node_modules\event-stream\node_modules\through\index.js:45:5)
    at emit (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-strea
m\node_modules\split\index.js:35:14)
    at next (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-strea
m\node_modules\split\index.js:44:7)
    at Stream.<anonymous> (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modul
es\event-stream\node_modules\split\index.js:49:5)
    at Stream.stream.write (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modu
les\event-stream\node_modules\through\index.js:26:11)
    at Socket.ondata (_stream_readable.js:540:20)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:538:20)
FATAL Error: 530 You aren't logged in
    at Ftp.parse (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.js:233:11
)
    at Ftp.parseResponse (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.j
s:148:8)
    at Stream.<anonymous> (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\lib\jsftp.
js:119:24)
    at Stream.emit (events.js:107:17)
    at Stream.reemit (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\ev
ent-stream\node_modules\duplexer\index.js:70:25)
    at Stream.emit (events.js:107:17)
    at Stream.write (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\eve
nt-stream\index.js:192:12)
    at Stream.stream.write (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modu
les\event-stream\node_modules\through\index.js:26:11)
    at Stream.ondata (stream.js:51:26)
    at Stream.emit (events.js:107:17)
    at drain (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-stre
am\node_modules\through\index.js:36:16)
    at Stream.stream.queue.stream.push (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsf
tp\node_modules\event-stream\node_modules\through\index.js:45:5)
    at emit (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-strea
m\node_modules\split\index.js:35:14)
    at next (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modules\event-strea
m\node_modules\split\index.js:44:7)
    at Stream.<anonymous> (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modul
es\event-stream\node_modules\split\index.js:49:5)
    at Stream.stream.write (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\jsftp\node_modu
les\event-stream\node_modules\through\index.js:26:11)
    at Socket.ondata (_stream_readable.js:540:20)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:538:20)

Error: 451 No mapping for the Unicode character exists in the target multi-byte code page.

Error: 451 No mapping for the Unicode character exists in the target multi-byte code page.
at module.exports.Ftp.parse (D:\mydoc\blog\node_modules\jsftp\lib\jsftp.js:233:11)
at module.exports.Ftp.parseResponse (D:\mydoc\blog\node_modules\jsftp\lib\jsftp.js:148:8)
at Stream. (D:\mydoc\blog\node_modules\jsftp\lib\jsftp.js:119:24)
at Stream.emit (events.js:160:13)
at Stream.reemit (D:\mydoc\blog\node_modules\duplexer\index.js:70:25)
at Stream.emit (events.js:160:13)
at Stream.write (D:\mydoc\blog\node_modules\event-stream\index.js:192:12)
at Stream.stream.write (D:\mydoc\blog\node_modules\through\index.js:26:11)
at Stream.ondata (internal/streams/legacy.js:16:26)
at Stream.emit (events.js:160:13)
at drain (D:\mydoc\blog\node_modules\through\index.js:36:16)
at Stream.stream.queue.stream.push (D:\mydoc\blog\node_modules\through\index.js:45:5)
at emit (D:\mydoc\blog\node_modules\split\index.js:35:14)
at next (D:\mydoc\blog\node_modules\split\index.js:44:7)
at Stream. (D:\mydoc\blog\node_modules\split\index.js:49:5)
at Stream.stream.write (D:\mydoc\blog\node_modules\through\index.js:26:11)
at Socket.ondata (_stream_readable.js:646:20)
at Socket.emit (events.js:160:13)
at addChunk (_stream_readable.js:269:12)
at readableAddChunk (_stream_readable.js:256:11)
at Socket.Readable.push (_stream_readable.js:213:10)
at TCP.onread (net.js:599:20)

Please Help.

deploy issue

After hexo d:

Committing

  • /post/92d72c3a.html uploaded successfuly
    Additions complete.
    ftp.put failed.
    Updates failed.
    Commit failed.
    FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
    Error: 421 Data timeout. Reconnect. Sorry.
    at module.exports.Ftp.parse (G:\OneDrive\Github\时光之笔\node_modules\jsftp\lib\jsftp.js:233:11)
    at module.exports.Ftp.parseResponse (G:\OneDrive\Github\时光之笔\node_modules\jsftp\lib\jsftp.js:148:8)
    at Stream. (G:\OneDrive\Github\时光之笔\node_modules\jsftp\lib\jsftp.js:119:24)
    at Stream.emit (events.js:189:13)
    at Stream.reemit (G:\OneDrive\Github\时光之笔\node_modules\duplexer\index.js:70:25)
    at Stream.emit (events.js:189:13)
    at Stream.write (G:\OneDrive\Github\时光之笔\node_modules\event-stream\index.js:192:12)
    at Stream.stream.write (G:\OneDrive\Github\时光之笔\node_modules\through\index.js:26:11)
    at Stream.ondata (internal/streams/legacy.js:15:31)
    at Stream.emit (events.js:189:13)
    at drain (G:\OneDrive\Github\时光之笔\node_modules\through\index.js:36:16)
    at Stream.stream.queue.stream.push (G:\OneDrive\Github\时光之笔\node_modules\through\index.js:45:5)
    at emit (G:\OneDrive\Github\时光之笔\node_modules\split\index.js:35:14)
    at next (G:\OneDrive\Github\时光之笔\node_modules\split\index.js:44:7)
    at Stream. (G:\OneDrive\Github\时光之笔\node_modules\split\index.js:49:5)
    at Stream.stream.write (G:\OneDrive\Github\时光之笔\node_modules\through\index.js:26:11)
    at Socket.ondata (_stream_readable.js:689:20)
    at Socket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)
    at readableAddChunk (_stream_readable.js:265:11)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

Ignoring remote folders ?

Hi,

I really enjoy the deploy function for Hexo but I was wondering if it's possible to exclude a remote folder during the sync process. I have a folder on my server that is independant from Hexo and I don't want him to be remove during the process.

I know there is an ignore setting for FTPSync in _config.yml but I don't understand how to ignore a folder.

Is it possible ?

Thanks

"TypeError: Cannot read property 'on' of undefined" error when deploying with hexo-deployer-ftpsync

After hexo d command, the following content shows:

INFO  Deploying: ftpsync
Setup
-------------------------------------------------------------
Settings:
{ local: '/Users/whm/Documents/hexo/public/',
  host: 'v0.ftp.upyun.com',
  port: 21,
  remote: '/',
  user: 'my_username',
  pass: '**********',
  connections: 1,
  ignore: [] }

Setup complete.

Collecting
-------------------------------------------------------------
/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:374
      socket.on("data", function(data) {
            ^

TypeError: Cannot read property 'on' of undefined
    at /Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:374:13
    at /Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:54:24
    at Array.<anonymous> (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:552:21)
    at Ftp.parse (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:237:13)
    at Ftp.parseResponse (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:148:8)
    at Stream.<anonymous> (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/lib/jsftp.js:119:24)
    at emitOne (events.js:77:13)
    at Stream.emit (events.js:169:7)
    at Stream.reemit (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/duplexer/index.js:70:25)
    at emitOne (events.js:77:13)
    at Stream.emit (events.js:169:7)
    at Stream.write (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/index.js:192:12)
    at Stream.stream.write (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/through/index.js:26:11)
    at Stream.ondata (stream.js:31:26)
    at emitOne (events.js:77:13)
    at Stream.emit (events.js:169:7)
    at drain (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/through/index.js:36:16)
    at Stream.stream.queue.stream.push (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/through/index.js:45:5)
    at emit (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/split/index.js:35:14)
    at next (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/split/index.js:44:7)
    at Stream.<anonymous> (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/split/index.js:49:5)
    at Stream.stream.write (/Users/whm/Documents/hexo/node_modules/hexo-deployer-ftpsync/node_modules/ftpsync/node_modules/jsftp/node_modules/event-stream/node_modules/through/index.js:26:11)
    at Socket.ondata (_stream_readable.js:536:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at TCP.onread (net.js:531:20)

Error: 500 Unknown command

I met the problem of sync. I tried to delete all files and I found it can create new directory, but it can't upload files. The errors are as following.

ftp.put failed.
Additions failed.
Commit failed.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: 500 Unknown command
    at module.exports.Ftp.parse (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/jsftp/lib/jsftp.js:233:11)
    at module.exports.Ftp.parseResponse (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/jsftp/lib/jsftp.js:148:8)
    at Stream.<anonymous> (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/jsftp/lib/jsftp.js:119:24)
    at Stream.emit (events.js:182:13)
    at Stream.reemit (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/duplexer/index.js:70:25)
    at Stream.emit (events.js:182:13)
    at Stream.write (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/event-stream/index.js:192:12)
    at Stream.stream.write (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/through/index.js:26:11)
    at Stream.ondata (internal/streams/legacy.js:15:31)
    at Stream.emit (events.js:182:13)
    at drain (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/through/index.js:36:16)
    at Stream.stream.queue.stream.push (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/through/index.js:45:5)
    at emit (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/split/index.js:35:14)
    at next (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/split/index.js:44:7)
    at Stream.<anonymous> (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/split/index.js:49:5)
    at Stream.stream.write (/Users/tingsyuan/Dropbox/Mac/Apps/blogs/node_modules/through/index.js:26:11)
    at Socket.ondata (_stream_readable.js:672:20)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:280:12)
    at readableAddChunk (_stream_readable.js:265:11)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at TCP.onread (net.js:638:20)

File Permissions aren't in sync between Host and Development server

When files are synced to the remote Host server the permissions are not set properly.

From Development server running hexo deploy:

drwxrwxr-x   2 brad brad 4096 Oct  8 18:34 images
-rw-rw-r--   1 brad brad 5122 Oct  9 20:46 index.html

And how they appear on the host put into a new folder for testing:

drwx------   2 brad brad 4096 Oct  9 23:09 images
-rw-------   1 brad brad 5122 Oct  9 23:09 index.html

Is this still work on Hexo-3.0 ?

I use this deployer - ftpsync ,and I got this ERROR:

TypeError: object is not a function
    at Hexo.<anonymous> (d:\Git-blogs\hexo-blog\node_modules\hexo-deployer-ftpsync\index.js:4:13)
    at Hexo.tryCatcher (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\util.js:24:31)
    at Hexo.ret (eval at <anonymous> (d:\Git-blogs\hexo-blog\node_modules\hexo-deployer-git\node_modules\hexo-fs\node_modules\bluebird\js\main\promisify.js:154:12),<anonymous>:12:39)
    at d:\Git-blogs\hexo-blog\node_modules\hexo\lib\plugins\console\deploy.js:56:28
    at tryCatcher (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\util.js:24:31)
    at ReductionPromiseArray._promiseFulfilled (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\reduce.js:103:38)
    at Promise._settlePromiseAt (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:535:26)
    at Promise._settlePromises (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:646:14)
    at Async._drainQueue (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\async.js:132:16)
    at Async._drainQueues (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\async.js:142:10)
    at Async.drainQueues (d:\Git-blogs\hexo-blog\node_modules\hexo\node_modules\bluebird\js\main\async.js:16:14)
    at process._tickCallback (node.js:442:13)

@tommy351

Deployment use hexo-ployer-ftpsync error

INFO 60 files generated in 2.33 s
INFO Deploying: ftpsync
Setup
Setup complete.

Collecting
Collection complete.

Consolidating
Consolidation complete.

Committing
MKDIRs complete.
ftp.put failed.
Additions failed.
Commit failed.
Commit complete.
E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modules\asy
nc\lib\async.js:43
if (fn === null) throw new Error("Callback was already called.");
^
Error: Callback was already called.
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:43:36
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:694:17
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:173:37
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\lib\ftpsy
nc.js:277:7
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:697:13
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:52:16
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:267:21
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:44:16
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:694:17
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:173:37
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\lib\ftpsy
nc.js:228:13
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:52:16
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:363:13
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:52:16
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:325:29
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:44:16
at E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync\node_modu
les\async\lib\async.js:360:17
at Socket. (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modul
es\ftpsync\lib\ftpsync.js:475:13)
at Socket.f (E:\hexo\node_modules\hexo-deployer-ftpsync\node_modules\ftpsync
\node_modules\jsftp\node_modules\once\once.js:16:25)
at Socket.emit (events.js:107:17)
at net.js:459:14
at process._tickCallback (node.js:355:11)

use ftpsync failed to update file

Node version(node -v): v10.15.0

Your site _config.yml (Optional):

deploy:
  - type: ftpsync
    host: korey.gotoftp2.com
    user: name
    pass: 123
    remote: /wwwroot/blog/
    verbose: true

Hexo and Plugin version(npm ls --depth 0):

"hexo": "^3.8.0",
"hexo-deployer-ftpsync": "^0.1.1"

The address and password are correct, and no error is reported.
Runtime information:

INFO  Deploying: ftpsync
Setup
-------------------------------------------------------------
Settings:
{ local: '/nice/github/hexo/public/',
  host: 'korey.gotoftp2.com',
  port: 21,
  remote: '/wwwroot/blog/',
  user: 'name',
  pass: '123',
  connections: 1,
  ignore: [] }

Setup complete.

Collecting
-------------------------------------------------------------

Then exit and Failed to update file.

I need your help, thank you!

Error: read ECONNRESET

Setup
Setup complete.

Collecting
Collection complete.

Consolidating
Consolidation complete.

Committing
MKDIRs complete.
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:856:11)
    at TCP.onread (net.js:544:26)

检查ftp有上传,但是文件没有上传完整。

upload issues

Consolidation complete.

Committing
-------------------------------------------------------------
- /wwwroot/2020/05/10/Hello World created successfuly
MKDIRs complete.

Everythings seem ok but it will stop at here forever.
And I cheak my server , I see Hexo create a file call 'index.html' in 'Hello World' folder. But it is empty inside the index.html .

Cannot create a file when that file already exists

Committing
-------------------------------------------------------------
MKDIR failed.
MKDIRs failed.
Commit failed.
Commit complete.
MKDIRs complete.
- ./wwwroot/2015 created successfuly
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: 550 ./wwwroot/2015: Cannot create a file when that file already exists. 
    at Ftp.parse (/Users/keel/dev/hexo/node_modules/jsftp/lib/jsftp.js:257:11)
    at Ftp.parseResponse (/Users/keel/dev/hexo/node_modules/jsftp/lib/jsftp.js:174:8)
    at Stream.<anonymous> (/Users/keel/dev/hexo/node_modules/jsftp/lib/jsftp.js:146:24)
    at emitOne (events.js:77:13)
    at Stream.emit (events.js:169:7)
    at ResponseParser.reemit (/Users/keel/dev/hexo/node_modules/duplexer/index.js:70:25)
    at emitOne (events.js:77:13)
    at ResponseParser.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at ResponseParser.Readable.push (_stream_readable.js:110:10)
    at ResponseParser.Transform.push (_stream_transform.js:128:32)
    at ResponseParser.<anonymous> (/Users/keel/dev/hexo/node_modules/ftp-response-parser/index.js:65:12)
    at Array.forEach (native)
    at ResponseParser._transform (/Users/keel/dev/hexo/node_modules/ftp-response-parser/index.js:48:9)
    at ResponseParser.Transform._read (_stream_transform.js:167:10)
    at ResponseParser.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:292:12)
    at writeOrBuffer (_stream_writable.js:278:5)
    at ResponseParser.Writable.write (_stream_writable.js:207:11)
    at Socket.ondata (_stream_readable.js:528:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)

events.js:141 Error: read ECONNRESET

`Setup complete.

Collecting

events.js:141
throw er; // Unhandled 'error' event
^

Error: read ECONNRESET
at exports._errnoException (util.js:870:11)
at TCP.onread (net.js:544:26)
`
我看到有同学遇到相同的问题,
但在这里我不得不单开一帖了,情况很奇怪。

我两台机器(公司A、家里B)都装有hexo生成器。文章同步用的自己的nas。
最初认识hexo的时候是在公司,因此初代环境在A电脑上,后来将A的hexo文件夹打包到B
以上为前述。

系统环境:WIN7 x64
hexo:A、B都是一致的。
FTP:万网虚拟主机

之前使用'hexo d'一切ok,后来因为转到万网域名要备案,暂停写博就没再更新,后来呢备案下来了,博客重开,在A机器使用hexo d的时候就出现了上述错误。我不知道是公司A的无关hexo的环境变化导致的上述问题还是FTPSYNC本身。
而机器B则依然正常使用。

我试图reinstall hexo,除了deploy配置外其他都有原始安装状态去使用hexo d命令,依旧提示上述错误。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.