Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still have "gulp-sftp SFTP abrupt closure" error #49

Closed
breogangf opened this issue Dec 3, 2015 · 10 comments
Closed

Still have "gulp-sftp SFTP abrupt closure" error #49

breogangf opened this issue Dec 3, 2015 · 10 comments

Comments

@breogangf
Copy link

npm list ssh2

project@1.0.0 /Users/breogangf/Workspace/project
└─┬ gulp-sftp@0.1.5
  └── ssh2@0.3.6

Hi guys,

I am on Mac OS X 10.11.1 and my gulp-sftp fails with the following message:

14:43:35] 'publish' errored after 352 ms
[14:43:35] Error in plugin 'gulp-sftp'
Message:
    Disconnected by host (PROTOCOL_ERROR): Packet integrity error.
Details:
    level: connection-ssh
    description: Packet integrity error.
    lang:
[14:43:35] Connection :: end
[14:43:35] gulp-sftp SFTP abrupt closure
[14:43:35] Connection :: close

I am doing a normal publish task to our NAS

gulp.task('publish', ['zip'], function () { 
    return gulp.src('./build/' + zipBaseName + '*' + zipExtension)
        .pipe(sftp({
            host: MY_NAS_IP,
            remotePath: MY_REMOTE_PATH,
            auth: NAS_AUTH
        }));
});
@littledu
Copy link

yes, me too

+1+1

@ghost
Copy link

ghost commented Feb 26, 2016

me too

@tkmoney
Copy link

tkmoney commented Oct 14, 2016

+1

@williansmartins
Copy link

me too +1

@Rubenkl
Copy link

Rubenkl commented Feb 1, 2017

+1

@peacefulseeker
Copy link

Are you sure you have ability to connect to server via SFTP port 22? Check out in Filezilla first.
Had the same issue, but the problem was that there were no option in my hosting tariff to connect via SFTP. Hope will be useful for somebody.

@jing2si
Copy link

jing2si commented Aug 25, 2017

Try set options.timeout a long time.

@thomasfrobieter
Copy link

thomasfrobieter commented Nov 27, 2017

+1
Is there no possibility to simply trigger a reconnect on error? Basically it shouldn't stop the whole Gulp script, so if I hit save again, it should try the upload again.

@awadley-stoneriver
Copy link

+1 Still an issue

@thomasfrobieter
Copy link

Not sure why this is closed, the issue still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants