grunt-ftp-deploy icon indicating copy to clipboard operation
grunt-ftp-deploy copied to clipboard

Help: Error 426.

Open emalherbi-zz opened this issue 6 years ago • 11 comments

It always worked, but now it has stopped working.

captura de tela de 2018-07-06 08-53-09

'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
      }
    }

emalherbi-zz avatar Jul 06 '18 11:07 emalherbi-zz

/* 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
      }     
    }

emalherbi-zz avatar Sep 27 '18 12:09 emalherbi-zz

On Linux Works Fine.

captura de tela de 2018-09-27 09-11-15

emalherbi-zz avatar Sep 27 '18 12:09 emalherbi-zz

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
      }     
    }

emalherbi-zz avatar Sep 27 '18 12:09 emalherbi-zz

win

emalherbi-zz avatar Sep 27 '18 12:09 emalherbi-zz

Linux Works but Win not, any suggestion?

emalherbi-zz avatar Oct 01 '18 17:10 emalherbi-zz

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?

yepes avatar Nov 22 '18 10:11 yepes

Linux (OK):

node -v -> v9.11.1
npm -v -> 6.4.1

Win (Fail):

node -v -> v10.6.0
npm -v -> 6.1.0

emalherbi-zz avatar Nov 22 '18 10:11 emalherbi-zz

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...

yepes avatar Nov 22 '18 11:11 yepes

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.

zonak avatar Nov 23 '18 18:11 zonak

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.

Rudloff avatar Oct 13 '19 10:10 Rudloff

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

emalherbi-zz avatar Oct 18 '19 12:10 emalherbi-zz