ftp-deploy
ftp-deploy copied to clipboard
error in deploy:Timed out while making data connection
const path = require('path');
const FtpDeploy = require('ftp-deploy');
const ftpDeploy = new FtpDeploy();
const buildPath = path.join(__dirname, '..', 'build');
const log = (...args) => {
console.log('→', ...args);
}
const config = {
user: 'XXXX',
password: 'XXXX',
host: 'XXXX',
port: 21,
localRoot: buildPath,
remoteRoot: './',
include: ['*', '**/*'],
exclude: [],
}
ftpDeploy.deploy(config)
.then(res => log('📦', ' deploy finish'))
.catch(err => log('📦', ' deploy error', err));
ftpDeploy.on('uploading', data => {
log('📦', ` uploading ${parseInt((data.transferredFileCount / data.totalFilesCount) * 100)}% (${data.transferredFileCount}/${data.totalFilesCount})`, data.filename);
});
but with this config work on yummy ftp pro app
Also received this error.
Can you say what happened, and what you expected to happen. I don't try to do much about time outs as they are out of my control
In #62 a possibly similar error was solved by adding forcePasv: true to the config - do you want to try that
@simonh1000 yes i try that and say result
@RuslanGrigoryev yes
I had a similar problem (just no progress and no error or timeout) before rolling back to node 7.4. Also I installed natives (https://github.com/addaleax/natives) what may cause this error.
Also has this error, flag forcePasv is value true
我也遇见同样的问题,这是由于服务器的安全设置造成的。 解决方法:
- 使用PORT模式连接。
- PORT模式端口范围设置为1024-2048。
请问如何在ftp-deploy中配置以上内容?
I had the same problem with the server's security Settings. Solutions: Connect using PORT mode. The PORT mode PORT range is set to 1024-2048. How to configure the above contents in ftp-deploy?
its still giving error while making
forcePasv: true,
Err Timed out while making data connection
Error: Timed out while making data connection
at Timeout.
try to set forcePasv: false