Needs to backport trusty's fix to handle duplicity's lockfile

Bug #1281066 reported by Louis Bouchard
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
deja-dup (Ubuntu)
Fix Released
Medium
Unassigned
Precise
Fix Released
Medium
Louis Bouchard
Saucy
Fix Released
Medium
Louis Bouchard

Bug Description

SRU justification :

Duplicity implements a new lockfile that impacts deja-dup functionality. A fix to remove the lockfile is already commited upstream and in Trusty. The SRU is to make the fix available before duplicity's SRU is completed

Impact :

Without this SRU, duplicity's SRU for LP: #1266763 will cause errors when backing up after having previously cancelled a backup.

Fix :

Remove the lockfile since concurrency is handled in DBUS in deja-dup

Test Case :
1) Start a backup
2) Cancel it once it begins backing up
3) Start the backup again

If you get an error right at the beginning of (3) about lockfiles, this bug isn't fixed. If the backup proceeds, it's fixed!

Regression :

None expected as it remove a file that is only present with newer versions of duplicity

Description of the problem :

See justification

Louis Bouchard (louis)
Changed in deja-dup (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Louis Bouchard (louis) wrote :

The patch for the development release has already been uploaded by mterry and is awaiting in -proposed. Marking the dev task "Commited"

Changed in deja-dup (Ubuntu Precise):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Louis Bouchard (louis-bouchard)
Changed in deja-dup (Ubuntu Saucy):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Louis Bouchard (louis-bouchard)
Changed in deja-dup (Ubuntu):
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Louis Bouchard (louis) wrote :

debdiff for precise

Revision history for this message
Louis Bouchard (louis) wrote :
Revision history for this message
Louis Bouchard (louis) wrote :

I forgot to mention one important thing for sponsors :

I was not able to build deja-dup from the source pkg with or _WITHOUT_ the patches using sbuild. pbuilder worked fine, as well as building as a PPA. Here is the resulting PPA for reference :

https://launchpad.net/~louis-bouchard/+archive/testdup

Revision history for this message
Michael Terry (mterry) wrote :

Uploaded to precise with one change:
+ Posix.system("/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock");
Became
+ Posix.system("/bin/rm -f " + Shell.quote(cache_dir) + "/" + Config.PACKAGE + "/*/lockfile.lock");

Because in trusty's deja-dup, cache_dir already contained PACKAGE, but in precise's, it didn't.

Tested and worked for me combined with the duplicity SRU.

description: updated
Revision history for this message
Michael Terry (mterry) wrote :

Uploaded to saucy without change. Thanks!

Revision history for this message
Sebastien Bacher (seb128) wrote :

(seems like Michael did the sponsoring, unsubscribing ubuntu-sponsors)

Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Louis, or anyone else affected,

Accepted deja-dup into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/deja-dup/27.3.1-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in deja-dup (Ubuntu Saucy):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Louis, or anyone else affected,

Accepted deja-dup into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/deja-dup/22.0-0ubuntu5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in deja-dup (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
Chris Halse Rogers (raof) wrote :

SRU-team ping! The associated duplicity bugs have been confirmed-fixed in saucy, but we can't release them until this package has been confirmed-fixed.

Louis Bouchard (louis)
tags: added: verification-done-precise verification-needed-saucy
removed: verification-needed
Revision history for this message
Louis Bouchard (louis) wrote :

Verified for both Saucy & Precise

tags: added: verification-done
removed: verification-done-precise verification-needed-saucy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package deja-dup - 22.0-0ubuntu5

---------------
deja-dup (22.0-0ubuntu5) precise; urgency=low

  * debian/patches/kill-lockfile.patch
    - Backport patch from trunk that removes the lockfile placed by
      duplicity to avoid concurrency. Deja-dup avoid concurrency using
      its own method using Dbus (LP: #1281066)
 -- Louis Bouchard <email address hidden> Mon, 17 Feb 2014 17:09:35 +0100

Changed in deja-dup (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for deja-dup has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package deja-dup - 27.3.1-0ubuntu2

---------------
deja-dup (27.3.1-0ubuntu2) saucy; urgency=low

  * debian/patches/kill-lockfile.patch
    - Backport patch from trunk that removes the lockfile placed by
      duplicity to avoid concurrency. Deja-dup avoid concurrency using
      its own method using Dbus (LP: #1281066)
 -- Louis Bouchard <email address hidden> Mon, 17 Feb 2014 17:19:41 +0100

Changed in deja-dup (Ubuntu Saucy):
status: Fix Committed → Fix Released
Changed in deja-dup (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.