ubumirror tries to copy the .~tmp~ directories

Bug #663992 reported by Raubvogel
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubumirror (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: ubumirror

PROBLEM:
Sometimes the mirror we are syncing from (using ubumirror) is either currently syncing or has aborted during a sync and not cleaned up the .~tmp~ directories. As a result, we end up having log messages that look like this:

receiving file list ... rsync: opendir "/pool/main/t/telepathy-butterfly/.~tmp~"
 (in ubuntu) failed: Permission denied (13)
rsync: opendir "/pool/main/t/thunderbird/.~tmp~" (in ubuntu) failed: Permission
denied (13)
rsync: opendir "/pool/main/p/puppet/.~tmp~" (in ubuntu) failed: Permission denie
d (13)
rsync: opendir "/pool/main/p/postgresql-common/.~tmp~" (in ubuntu) failed: Permi
ssion denied (13)
rsync: opendir "/pool/main/p/python-imaging/.~tmp~" (in ubuntu) failed: Permissi
on denied (13)
rsync: opendir "/pool/main/q/quassel/.~tmp~" (in ubuntu) failed: Permission deni
ed (13)
rsync: opendir "/pool/main/s/swt-gtk/.~tmp~" (in ubuntu) failed: Permission deni
ed (13)
rsync: opendir "/pool/main/s/splix/.~tmp~" (in ubuntu) failed: Permission denied
 (13)

SOLUTION:
One can, in, say, /usr/bin/ubuarchive, either remove the --delay-updates flag,

# rsync -av --timeout=600 --partial --delete --delete-after \
rsync -av --timeout=600 --partial --delete \

or just tell rsync to cheerfully ignore those directories,

rsync -av --timeout=600 --partial --delete --delete-after \
      --bwlimit=$SPEED \
      --exclude "indices/" --exclude "dists/" --exclude "project/trace/${HOSTNAME}" \
      --exclude "Archive-Update-in-Progress-${HOSTNAME}" \
      --exclude .~tmp~/ \ <------------------------------------- Add this thingie
      $UBUARC_EXCLUDE \
      $UBUARC_MIRROR $UBUARC_DIR

which is what ftpsync does.

Tags: patch

Related branches

Revision history for this message
Sergey Svishchev (svs) wrote :

I think ubumirror should look for Archive-Update-in-Progress-* file and not proceed if it exists.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubumirror (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Dehennin (launchpad-baby-gnu) wrote :

Here is an untested patch to abort if the remote update is in progress.

I did the check only one time, this can not prevent remote to start an update during a rsync run.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Abort if the remote update is in progress." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
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.