syncdaemon creates unnecessary conflicts

Bug #597870 reported by Lucio Torre on 2010-06-23
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Status tracked in Trunk
Guillermo Gonzalez
Guillermo Gonzalez
ubuntuone-client (Ubuntu)

Bug Description

When downloading directories that are being modified syncdaemon might self conflict the directory,


Two Ubuntu One users, User1 & User2, are needed for this test.

1) User1 shares a folder to User2 as read-only
2) User2 accepts the share
3) User1 puts some files and folders in the shared folder
4) User1 & User2 wait for sync to finish
5) User1 deletes some files and folders created in step 3 via the web
6) User1 creates the same files and folders structure that was deleted in the step above

Expected result: Old files are deleted on User2's read-only share and then new files are created

Related branches

Guillermo Gonzalez (verterok) wrote :

After talking with lucio, this seems to happen on read-only shares.

I hitted the issue, when getting a lot of updates to a read-only share (same share as lucio), and the cause seems to be that syncdaemon isn't able to delete a directory tree on a read-only share.

The first error in the log is:

2010-06-23 11:15:05,234 - ubuntuone.SyncDaemon.sync - ERROR - T:NONE:T 7aad9fa8-471d-42fc-b86e-bd186098065e ['00f4fabb-8390-409d-949f-737d570e3f07'::'567f3aaa-ed4b-47ca-8fae-7ccae1596578'] ''RO Share/dir/subdir/subsubdir'' | Executing ACTION_FUNC 'delete_file' gave an exception: OSError(13, 'Permission denied')
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/fsm/", line 137, in on_event
    af(event_name, parameters, *args)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/", line 758, in delete_file
    raise e
OSError: [Errno 13] Permission denied: '/home/guillermo/.local/share/ubuntuone/shares/RO Share/dir/subdir/subsubdir/leafdir'

After this error, the next SV_HASH_NEW event received will make the "RO Share/dir/subdir/subsubdir/" go into conflict

tags: added: chicharra
Changed in ubuntuone-client (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Ubuntu One Ops+ team (ubuntuone-ops+)
tags: added: u1-lucid-sru
dobey (dobey) on 2010-06-24
Changed in ubuntuone-client (Ubuntu):
importance: Critical → High
description: updated
description: updated
tags: added: testcase
Curtis Hovey (sinzui) on 2014-01-21
Changed in ubuntuone-client (Ubuntu):
assignee: Registry Administrators (registry) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers