grunt-ftp-deploy
grunt-ftp-deploy copied to clipboard
Help: Error 426.
It always worked, but now it has stopped working.
'ftp-deploy': {
build: {
auth: {
host: 'ftp.xxxxxx.com.br',
port: 21,
authKey: 'key'
},
src: '<%= properties.root %>/releases/v<%= pkg.version %>/',
dest: '/www/web/atxmobile',
exclusions: [],
forceVerbose: true
}
}
/* send to ftp */
'ftp-deploy': {
build: {
auth: {
host: 'ftp.xxx.com.br',
port: 21,
authKey: 'key'
},
src: '<%= properties.root %>/dist/',
dest: '/www/dos',
exclusions: [
'<%= properties.root %>/dist/php/plugins'
],
forceVerbose: true
}
}
On Linux Works Fine.
On Windows not working:
'ftp-deploy': {
build: {
auth: {
host: 'ftp.xxx.com.br',
port: 21,
authKey: 'key'
},
src: '<%= properties.root %>/dist/',
dest: '/www/dos',
exclusions: [
'<%= properties.root %>/dist/php/plugins'
],
forceVerbose: true
}
}
Linux Works but Win not, any suggestion?
Facing this right now. I think the plugin does not work on the latest node release.
@emalherbi can you provide the node version of every machine you tested?
Linux (OK):
node -v -> v9.11.1
npm -v -> 6.4.1
Win (Fail):
node -v -> v10.6.0
npm -v -> 6.1.0
I don't have windows to test. In mac, up to 9.x works fine. I will stick to that version as this plugin is heavily used in my workflow. I don't know if it's maintained anymore though...
Can we get more details than just "fail".
The task specific code shouldn't fail because of an upgraded node version but all this relies heavily on jsftp so it could be as simple as upgrading the version and testing it.
PR-s welcome as well.
I am getting a similar error on Linux with Node 10.15.2:
Running "ftp-deploy:prod" (ftp-deploy) task
>> Cannot upload file: .htaccess --> Error: 426 Transfer aborted. Appel système interrompu
Warning: Failed uploading files! Use --force to continue.
Hello, I create a bat file for windows.
@echo off
echo open ftp.XXXX.com.br> release_ftp.txt
echo USER_FTP>> release_ftp.txt
echo PASSWORD_FTP>> release_ftp.txt
echo cd /FTP/PATH>> release_ftp.txt
echo lcd ./LOCAL_FOLDER>> release_ftp.txt
echo binary>> release_ftp.txt
echo put MY_EXE*.exe>> release_ftp.txt
echo quit>> release_ftp.txt
ftp -s:release_ftp.txt