grunt-ftpush icon indicating copy to clipboard operation
grunt-ftpush copied to clipboard

Ftpush stalls and never restarts

Open thatgibbyguy opened this issue 10 years ago • 7 comments

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

thatgibbyguy avatar Feb 18 '14 19:02 thatgibbyguy

Use --debug, try --simple.

inossidabile avatar Feb 19 '14 09:02 inossidabile

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.

thatgibbyguy avatar Feb 19 '14 14:02 thatgibbyguy

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.

thatgibbyguy avatar Feb 19 '14 15:02 thatgibbyguy

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.

thatgibbyguy avatar Mar 04 '14 17:03 thatgibbyguy

I am getting similar behaviour. Had worked reliably but now uploads the build.json and then hangs

adriansdev avatar Apr 30 '14 22:04 adriansdev

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'

kitsunde avatar Jun 09 '14 07:06 kitsunde

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.

evanmcd avatar Dec 11 '14 18:12 evanmcd