[Desktop-packages] [Bug 1170696] [NEW] Too many calls to list backup contents

2013-04-19 Thread Sidnei da Silva
Public bug reported: Seems like duplicity is invoked multiple times for a backup, with --dry- run and whatnot. In the course of that, it does multiple calls to list the contents of the backup folder. For a single incremental backup: grep -c "https://one.ubuntu.com/api/file_storage/v1/~/deja-dup/

[Desktop-packages] [Bug 1161599] Re: Backup to Ubuntu one failed, after 5 attempts status 400 bad request

2013-04-18 Thread Sidnei da Silva
Confirmed that this fixes the problem. When rewinding the file handle on retry the subsequent PUT request *does* succeed. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to deja-dup in Ubuntu. https://bugs.launchpad.net/bugs/1161599 Title:

[Desktop-packages] [Bug 1161599] Re: Backup to Ubuntu one failed, after 5 attempts status 400 bad request

2013-04-18 Thread Sidnei da Silva
Actually it might be more obvious than it seems. When the PUT request is done, an open file handle is passed as the 'body' argument to httplib2 request(). Since there was a timeout and retry, the file handle was read from so the current position in the file has moved. There's no seek() back to the

[Desktop-packages] [Bug 1161599] Re: Backup to Ubuntu one failed, after 5 attempts status 400 bad request

2013-04-18 Thread Sidnei da Silva
Looking at the way that httplib2 catches exceptions, if there's for example a socket.timeout the conn object is not closed (https://code.google.com/p/httplib2/source/browse/python2/httplib2/__init__.py#1257) I suspect that might leave the conn object in a semi-broken state. Since duplicity instant

[Desktop-packages] [Bug 1161599] Re: Backup to Ubuntu one failed, after 5 attempts status 400 bad request

2013-04-18 Thread Sidnei da Silva
We've managed to rule out an application error. Those '400 Bad Request' are being returned by Apache, so we have great confidence than somehow a malformed request is being sent, which Apache then rejects. Here's a breakdown of Status 400 failures from the Apache logs over the course of ~24h: Pyth

[Desktop-packages] [Bug 1154920] Re: Backup schedule should be spread over the day

2013-04-16 Thread Sidnei da Silva
Tested 22.0-0ubuntu4 on precise by enabling -proposed. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to deja-dup in Ubuntu. https://bugs.launchpad.net/bugs/1154920 Title: Backup schedule should be spread over the day Status in Déjà Dup

[Desktop-packages] [Bug 1154920] Re: Backup schedule should be spread over the day

2013-04-16 Thread Sidnei da Silva
Seems to fix the problem as expected. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to deja-dup in Ubuntu. https://bugs.launchpad.net/bugs/1154920 Title: Backup sche