hexojs / hexo-deployer-ftpsync

FTP deployer for Hexo
MIT License
23 stars 16 forks source link

use ftpsync failed to update file #33

Closed zhaoky closed 7 months ago

zhaoky commented 5 years ago

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!

zhaoky commented 5 years ago

Delete node_modules and install the dependencies again, the error has changed:

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
-------------------------------------------------------------
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: read ETIMEDOUT
    at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
    at Stream.<anonymous> (/nice/github/hexo/node_modules/jsftp/lib/jsftp.js:120:10)
    at Stream.emit (events.js:182:13)
    at Socket.reemit (/nice/github/hexo/node_modules/duplexer/index.js:85:16)
    at Socket.emit (events.js:182:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
stevenjoezhang commented 7 months ago

Sorry for the late reply. I am currently refactoring this plugin. If the problem still exists, please feel free to continue reporting. See #148 The installation method for the new version is: npm i hexo-deployer-ftpsync@0.2.0