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

Hangs when trying to deploy multiple times on the same server #19

Closed
marcinant opened this issue Jul 12, 2013 · 7 comments · Fixed by #36
Closed

Hangs when trying to deploy multiple times on the same server #19

marcinant opened this issue Jul 12, 2013 · 7 comments · Fixed by #36

Comments

@marcinant
Copy link

I got task that deploys some file to server A to /home/one folder and then another task is fired to deploy some other file to the same server but to another directory for example /home/two.

First task is always successful. Second task always hangs.

I can switch tasks - then again. First is ok. Second hangs.

@thrashr888
Copy link
Owner

I thought someone else got parallel tasks working. I haven't tested it out much but it seemed to work. Any more details you can add?

@marcinant
Copy link
Author

It's not about parallel. I haven't tested this with grunt-concurrent etc.
I just got task configuration like this:

grunt.initConfig({
'sftp-deploy': {
    'one': {
        auth: {
             host: 'somesftphost',
             port: someport,
             authKey: 'somekey'
        }
        src: 'somefile.js'
        dest: '/somedir/somesubdir'
    },
    'two': {
        auth: {
             host: 'somesftphost',
             port: someport,
             authKey: 'somekey'
        }
        src: 'someotherfile.js'
        dest: '/someotherdir'
    },
}
});
grunt.registerTask('default', [
        'sftp-deploy:one',
        'sftp-deploy:two'
    ]);

No matter what sftp-deploy:two hangs and doesn't upload anything.

@dnlmzw
Copy link

dnlmzw commented Sep 3, 2013

I'm experiencing the same thing.

@linyupark
Copy link

line: 285~289
async.forEachSeries(locations, sftpProcessLocation, function() {
log.ok('Uploads done.');
// sftp.end();
done();
});

@maboiteaspam
Copy link
Contributor

got this problem too, just now. @linyupark fix worked like a charm ! thank you for post !

@thrashr888 will you patch your package or should we start a fork ?

@thrashr888
Copy link
Owner

Send a PR and I'll merge it for ya. Thanks.

maboiteaspam added a commit to maboiteaspam/grunt-sftp-deploy that referenced this issue Mar 1, 2014
Improved verbose log support
@maboiteaspam
Copy link
Contributor

HTH !

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

Successfully merging a pull request may close this issue.

5 participants