grunt-ftpush
grunt-ftpush copied to clipboard
Ftpush stalls and never restarts
I have the latest version of ftpush as part of my grunt package. Each time I try to push, I get a variation of some kind of stall.
I run
grunt ftpush
And get
>> Authenticated as user
And then nothing. Or sometimes a few files get pushed, but then a stall. The only consistency is that it never finishes and stalls at some point all the time. Ftpush is configured as
ftpush:{
build:{
auth:{
host:'host',
port:21,
authKey:'key1' // found in .ftppass
},
src:'/Applications/AMPPS/www/projectdirectory/',
dest:'/projectdirectory/',
exclusions:['*/.DS_Store','.DS_Store','Archive.zip','.git','Gruntfile.js','node_modules','*.sql'],
simple:true,
useList:true
}
}
Use --debug
, try --simple
.
I originally tried both, no luck. Today, perfect luck. Do you believe there is a setting with my host that would produce this inconsistency? That's really the issue - it's inconsistent.
To further illustrate the inconsistency, the stall has re-appeared. What happens when I run
grunt ftpush --debug
Is the script goes through and gives me
[D] Touch 'domain.com/*' (for all the files in the directory)
And then never moves forward. I've always tried it as simple, that makes no change.
I've made some progress with this, but still haven't narrowed it down. What I know now is if I first archive my local files and upload as a zip or tar, then uncompress them on the remote server (leaving the exact same files on each) no errors will happen. If there is any discrepancy between directories or large amounts of files ftpush will freeze.
This means starting from an existing project is troublesome.
If new directories are added locally, ftpush has a 50/50 chance freezing.
I am getting similar behaviour. Had worked reliably but now uploads the build.json and then hangs
I'm having the same issue. It gives a log output of creating directories for a couple of minutes and then it just stalls out with nothing, it never creates the actual directories.
[D] Make directory 'test/wp-content/plugins'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/static'
[D] Make directory 'test/wp-content'
[D] Make directory 'test/wp-content/plugins'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album'
[D] Make directory 'test/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/templates'
I'm seeing this issue as well. It stalls the first time it encounters the need to create a directory. When I created the directory manually (using the same FTP account as the one configured in .ftppass), it continues until the next new directory is needed, then stalls.