gtg092x / gulp-sftp

Gulp SFTP Deploy
140 stars 61 forks source link

SFTP :: SFTP Session Closed #35

Closed micahblu closed 9 years ago

micahblu commented 9 years ago

I'm using 0.1.4 and getting the error below. It fails at seemingly random times and has never completed a full upload

[15:07:26] gulp-sftp: 558 files uploaded successfully
[15:07:26] Finished 'sftp' after 24 s
[15:07:26] Starting 'publish'...
[15:07:26] Finished 'publish' after 8.59 μs
[15:07:26] SFTP :: SFTP session closed
[15:07:26] Connection :: end
[15:07:26] Connection :: close with error
$ 
wpexia commented 9 years ago

+1 the remote file didn't change

[17:54:45] Using gulpfile ~/Documents/cshop_project/src/frontend/web/src/gulpfile.js
[17:54:45] Starting 'scripts'...
[17:54:45] Finished 'scripts' after 17 ms
[17:54:45] Starting 'default'...
[17:54:45] Finished 'default' after 8.25 μs
[17:54:45] Authenticating with password.
[17:54:50] gulp-sftp: Uploaded: app.js => /www/cshop_web/app.js
[17:54:50] gulp-sftp: 1 file uploaded successfully
[17:54:50] SFTP :: SFTP session closed
[17:54:50] Connection :: end
[17:54:50] Connection :: close with error
victorCas commented 9 years ago

+1, Remote file did change.

[15:28:35] Starting 'publish'... [15:28:35] Authenticating with password. [15:28:37] SFTP Created: /home/publish/refs/heads/test [15:29:03] gulp-sftp: Uploaded: m.tar.gz => /home/publish/refs/heads/test/m.tar.gz [15:29:03] gulp-sftp: 1 file uploaded successfully [15:29:03] Finished 'publish' after 28 s [15:29:03] SFTP :: SFTP session closed [15:29:03] Connection :: end [15:29:03] Connection :: close with error

gtg092x commented 9 years ago

I'm hearing this has to do with a change with ssh2. I updated the package to lock ssh2 around 0.3.3 - this fixes the issue for me. I need a windows tester if possible.

Also, this means that migrating to a newer version of ssh2 should be handled. I'm going to close this issue. Please re-open if this doesn't fix the problem.

victorCas commented 9 years ago

Thanks, solved it.