Windows: MoveFileExW exception when trying to commit a file

Bug #922812 reported by Matt v.d. Westhuizen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Won't Fix
Medium
Brian Curtin

Bug Description

Files synced from my Linux laptop are not visible on my Windows desktop.

The windows client also mis-reports disk availability and usage as well (may be related to trialing the music streaming offer, but not buying it - Windows still reports I have 25GB of storage from the trial, but it has already expired).

Revision history for this message
Leo Arias (elopio) wrote :

Hi Matt,

It would help us a lot if you could provide us with the system logs.

On Ubuntu,
1. Open Applications->Accessories->Terminal and run: echo -e "[logging]\nlevel = DEBUG" > ~/.config/ubuntuone/logging.conf; u1sdtool -q; u1sdtool -c
2. Copy files into your ~/Ubuntu One folder
3. Attach ~/.cache/ubuntuone/log/syncdaemon.log and ~/.cache/ubuntuone/log/syncdaemon-exception.log to this bug report

On Windows, wait so time for the control panel to get the notification of new files and attempt syncronization. When it says that is up to date, get the windows logs too.

Ubuntu One log files can be found in your home folder for Windows 7 and Vista in AppData\Local\xdg\cache\ubuntuone\log

For Windows XP, log files can be found at C:\Documents and Settings\<username>\Local Settings\Application Data\xdg\cache\ubuntuone

You may need to turn on the option to view system folders in order to see these folders in Explorer.

Note that attaching syncdaemon.log will show filenames you are attempting to sync with Ubuntu One. If you do not want this to be public, please mark the bug as private and this bug report will only be available to you and the Ubuntu One team.

Thank you,

Changed in ubuntuone-client:
status: New → Incomplete
Revision history for this message
Matt v.d. Westhuizen (mattpwest) wrote :
Revision history for this message
Matt v.d. Westhuizen (mattpwest) wrote :
Revision history for this message
Matt v.d. Westhuizen (mattpwest) wrote :

Hi Leo,

Thanks for taking a look!

I have attached the log files as requested. The new folder I synced from Ubuntu went through without problems, the missing folder (Teaching/2012/9691) is still missing.

I just noticed that both the XP and Ubuntu clients still report 516 MiB of 25 GiB in use, while web dashboard correctly reports 516MiB of 5GiB.

Also had one mishap (cause unknown) that may have affected this test. UbuntuOne wouldn't launch on Windows, reporting that Python27.dll is missing from ${InstallDir}/dist/. So I uninstalled & reinstalled, fortunately it didn't seem to make any difference to the broken files.

Hope this helps!

Kind Regards,
Matt

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Seems like the moving of the temp file that was downloaded to the real file name is failing:

2012-01-31 12:08:14,825 - ubuntuone.SyncDaemon.VM - ERROR - Got exception when trying to rename from u'\\\\?\\C:\\Documents and Settings\\Cybermage\\Local Settings\\Application Data\\xdg\\cache\\ubuntuone\\partials\\a81c6bf2-cbfc-4e87-9ce0-a28f876a0a23.u1partial.9691 - Lesson 2 - System Software.ppt' to u'\\\\?\\C:\\Documents and Settings\\Cybermage\\Ubuntu One\\Teaching\\2012\\9691\\Lessons\\9691 - Lesson 2 - System Software.ppt'
Traceback (most recent call last):
  File "ubuntuone\platform\windows\os_helper.pyc", line 603, in native_rename
error: (3, 'MoveFileExW', 'The system cannot find the path specified.')
2012-01-31 12:08:14,825 - ubuntuone.SyncDaemon.sync - ERROR - T:SERVER:F a81c6bf2-cbfc-4e87-9ce0-a28f876a0a23 ['root'::'d140ce76-9046-4dd4-a4e1-fa7620f605b1'] ''Ubuntu One\\Teaching\\2012\\9691\\Lessons\\9691 - Lesson 2 - System Software.ppt'' | Executing ACTION_FUNC 'commit_file' gave an exception: IOError(3, "[Errno 3] (3, 'MoveFileExW', 'The system cannot find the path specified.')")
Traceback (most recent call last):
  File "ubuntuone\syncdaemon\fsm\fsm.pyc", line 143, in on_event
  File "ubuntuone\syncdaemon\sync.pyc", line 530, in commit_file
  File "ubuntuone\syncdaemon\filesystem_manager.pyc", line 1148, in commit_partial
  File "ubuntuone\platform\windows\os_helper.pyc", line 377, in inner
  File "ubuntuone\platform\windows\os_helper.pyc", line 620, in recursive_move
IOError: [Errno 3] [Errno 3] (3, 'MoveFileExW', 'The system cannot find the path specified.')

Brian, could you please check the recursive_move function and checks if we're using it correctly?

Thanks!

Changed in ubuntuone-client:
assignee: nobody → Brian Curtin (brian.curtin)
importance: Undecided → Medium
status: Incomplete → Triaged
summary: - Linux to Windows Desync...
+ Windows: MoveEx exception when trying to commit a file
summary: - Windows: MoveEx exception when trying to commit a file
+ Windows: MoveFileExW exception when trying to commit a file
Changed in ubuntuone-client:
status: Triaged → Won't Fix
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.