[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
@raimue: Thank you, that worked on CentOS 6, with duplicity v.0.6.22 and python-boto v.2.38.0. Thanks for posting that :) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
I had the same BackendException on Debian wheezy with duplicity 0.6.24-1~bpo70 and python-boto 2.25.0-1~bpo7. I solved this for me by forcing boto to use "Signature Version 4" for API requests. Export this variable into the shell environment before running duply: export S3_USE_SIGV4="True" duply ... According to the AWS documentation [1], new regions introduced after January 2014 do not support older signature versions in API requests. In my case, the endpoint I use is Frankfurt, EU which was introduced after this date. This version of boto supports the new signatures, but does not seem to use them without being told to do so. Also make sure you use the hostname for your region in the URL such as s3://s3-eu-central-1.amazonaws.com//. I hope this helps anyone stumbling across this bug report even if it is already fixed in duplicity >= 0.7.01 as stated above. [1] http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4 -authenticating-requests.html -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
Hi, I have this problem, too. From Deja Dup and even from Duplicity. python-boto: 2.20.1-2ubuntu2 duplicity: 0.6.23-1ubuntu4.1 Ubuntu 14.04.1 LTS x86_64 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-boto (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
** Changed in: duplicity Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
** Changed in: duplicity Importance: Undecided => Medium ** Changed in: duplicity Status: Confirmed => Fix Committed ** Changed in: duplicity Milestone: None => 0.7.01 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
The Boto S3Connection provides two methods to connect to a S3 bucket; get_bucket() raises an exception if there is an issue, while lookup() returns None if there is an error, hiding the cause of problem. Duplicity uses the lookup() method and then raises this generic exception (BackendException: No connection to backend) if None is returned. The problem is that there are all sorts of reasons why the connection to the bucket didn't succeed and this is hidden from the end user, making debugging S3 connection issues more troublesome than necessary. A solution would be to use the get_bucket() method, wrap it in a try catch block and then, on error, raise a BackendException using the message from the previous exception. For Duplicity 0.7 this would look like: /duplicity/backends/_boto_single.py (revision 1041) in resetConnection() line 184 - self.bucket = self.conn.lookup(self.bucket_name) +try: +self.bucket = self.conn.get_bucket(self.bucket_name) +except Exception as err: +raise BackendException(err.message) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
Guess my earlier comment got overlooked, I have already identified it as boto bug and proposed a fix: https://github.com/boto/boto/issues/2262 So the best course of action would be to discuss it there. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1278529] Re: Using S3, "BackendException: No connection to backend"
** Also affects: python-boto (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-boto in Ubuntu. https://bugs.launchpad.net/bugs/1278529 Title: Using S3, "BackendException: No connection to backend" To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1278529/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs