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

301, write ECONNRESET

Open bitliner opened this issue 11 years ago • 6 comments

I got the following error

Running "s3:dev" (s3) task
>> Error: Upload error: /home/user/node_project/public/file1 (301)
Fatal error: write ECONNRESET

with the following configuration

s3:{
        options:{
            key: '***',
            secret: '***',
            bucket: 'bucket.01',
            access: 'public-read'
        },
        dev:{
            // Files to be uploaded.
            upload:[
                {
                    src:'public/*',
                    dest:'/'
                }
            ]
        }
    }

bitliner avatar Jul 13 '13 00:07 bitliner

Sometimes i received also the error:

 Upload error: /home/user/node_project/public/a.pdf (Error: socket hang up)

It seems the S3 refuses my credentials and then the connection, but key and secret are right

bitliner avatar Jul 13 '13 00:07 bitliner

Hi @bitliner, I have same problem here. Any solution so far?

csikosjanos avatar Aug 06 '13 14:08 csikosjanos

Try first uploading manually a file on Amazon. The problem is from Amazon. Now i'm using knox, but at first moment also with knox i wasn't able to solve the problem cause the error was from amazon. With knox you can catch the error, wait and try to reconnect until amazon accept the connection (e.g. https://github.com/LearnBoost/knox/issues/191).

bitliner avatar Aug 06 '13 15:08 bitliner

Thank you for the hint. I'll try knox then.

csikosjanos avatar Aug 06 '13 17:08 csikosjanos

Getting the same error, any new solutions?

DivineTraube avatar Mar 10 '14 10:03 DivineTraube

same error, still no solution?

mkelle avatar Jan 26 '17 08:01 mkelle