syncdaemon fs.move_to_conflict will fail if the file is not found

Bug #370414 reported by Lucio Torre
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
Critical
Facundo Batista

Bug Description

009-05-01 11:33:17,388 - ubuntuone.SyncDaemon.sync - DEBUG - T:LOCAL:F None [root:None] ''My Files/Documents/Finances/VanDineFamily.20090422000454.log'' | EVENT: AQ_FILE_NEW_ERROR:{'not_available': 'F', 'not_authorized': 'F'} with ARGS:('DOES_NOT_EXIST',)
2009-05-01 11:33:17,391 - ubuntuone.SyncDaemon.sync - DEBUG - T:LOCAL:F None [root:None] ''My Files/Documents/Finances/VanDineFamily.20090422000454.log'' | Calling file_not_created_remove
2009-05-01 11:33:17,391 - ubuntuone.SyncDaemon.fsm - INFO - move_to_conflict: path='/home/ken/Ubuntu One/My Files/Documents/Finances/VanDineFamily.20090422000454.log' mdid='451611c6-1159-4ad2-a83e-a2816160ddc6'
2009-05-01 11:33:17,393 - ubuntuone.SyncDaemon.sync - ERROR - T:LOCAL:F None [root:None] ''My Files/Documents/Finances/VanDineFamily.20090422000454.log'' | Executing ACTION_FUNC 'file_not_created_remove' gave an exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/storage/syncdaemon/fsm/fsm.py", line 135, in on_event
    af(event_name, parameters, *args)
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/storage/syncdaemon/sync.py", line 652, in file_not_created_remove
    self.key.move_to_conflict()
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/storage/syncdaemon/sync.py", line 161, in move_to_conflict
    self.fs.move_to_conflict(self.get_mdid())
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/storage/syncdaemon/filesystem_manager.py", line 512, in move_to_conflict
    os.rename(path, to_path)
OSError: [Errno 2] No such file or directory

Tags: chicharra
Revision history for this message
Lucio Torre (lucio.torre) wrote :

do we change move_to_conflic or i catch that? will the metadata be clean if it raises this?

Changed in ubuntuone-client:
assignee: nobody → Facundo Batista (facundo)
importance: Undecided → Critical
milestone: none → beta1
status: New → Confirmed
Revision history for this message
Lucio Torre (lucio.torre) wrote :

do we change move_to_conflic or should i catch that? will the metadata be clean if it raises this?

tags: added: chicharra
Revision history for this message
Facundo Batista (facundo) wrote :

There's the possibility of that what we're trying to move is removed, so I'm handling it in FSM.

Changed in ubuntuone-client:
status: Confirmed → Fix Committed
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
Rick McBride (rmcbride)
visibility: private → public
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.