S3 backups to eu-west-1 (Ireland) failing


(Michael Downey) #1

I can successfully perform S3 backups to a bucket in the S3 “US Standard” region, but when I try to point Discourse at my bucket in the “Ireland” region (aka eu-west-1?) I get the following failure:

 [2014-07-07 13:41:08] Creating empty archive...
 [2014-07-07 13:41:08] Archiving metadata...
 [2014-07-07 13:41:08] Archiving data dump...
 [2014-07-07 13:41:08] Archiving uploads...
 [2014-07-07 13:41:09] Gzipping archive...
 [2014-07-07 13:41:11] Executing the after_create_hook for the backup
 [2014-07-07 13:41:20] EXCEPTION: Connection reset by peer (Errno::ECONNRESET)
 [2014-07-07 13:41:20] /usr/local/lib/ruby/2.0.0/openssl/buffering.rb:376:in `syswrite_nonblock' /usr/local/lib/ruby/2.0.0/openssl/buffering.rb:376:in `write_nonblock'

… etc.

This fails every time I use a bucket created in S3 region of Ireland, and a Discourse setting of eu-west-1. (Why are these labeled differently?) If I keep all other settings the same, but use the us-east-1 setting in Discourse and an S3 region of US Standard, things work fine.

I’d prefer to keep my backups in Europe, as is the server running my Discourse instance. Any ideas how to get S3 backups to Ireland working, or how to troubleshoot the error further?

BTW: There is a line in the logs at the end of the failed backup process saying a (Discourse) notification will be sent to me, but it never arrives.


S3 region vs. Discourse region
(Régis Hanol) #2

Looks bad :frowning: I’ll try to fix it later today. I will fix it tomorrow.


(Régis Hanol) #3

@downey can you update to latest and try again? This should be fixed now

https://github.com/discourse/discourse/commit/7658b725568f260b8906b476128368f3354fd47c


(Jeff Atwood) #4