conflicts with a single client

Bug #472630 reported by Stuart Bishop
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
High
Natalia Bidart

Bug Description

I'm using the Anki flashcard software.

I moved my ~/.anki directory to ~/Ubuntu One/configs/.anki and replaced it with a symlink. Everything works fine, normally.

Twice now over the last few days, my ~/Ubuntu One/configs/.anki/config.db has been renamed config.db.u1conflict. I believe this is a SQLite database.

I have only a single system syncing at the moment, so there should be nothing to conflict with.

Revision history for this message
Stuart Bishop (stub) wrote : apport-collect data

.home.stub..cache.ubuntuone.log.syncdaemon.exceptions.log:

.home.stub..config.ubuntuone.ubuntuone.client.conf:
 [ubuntuone]
 connected = False
 connect = 0
 show_applet = 0
 bookmarked = True
Architecture: amd64
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: ubuntuone-client 1.0.2-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 LANGUAGE=en_AU.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video
XsessionErrors:
 (gnome-settings-daemon:2003): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2033): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2057): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
Stuart Bishop (stub) wrote : .home.stub..cache.ubuntuone.log.oauth.login.log.txt
Revision history for this message
Stuart Bishop (stub) wrote : Dependencies.txt
Revision history for this message
Stuart Bishop (stub) wrote : UbuntuoneClientPackages.txt
tags: added: apport-collected
Revision history for this message
Stuart Bishop (stub) wrote :

This just happened again, this time with a text document I edit with gvim. I'll attach the sync log since apport doesn't seem to want to do that (despite claims on the bug submission page that it attaches what you need). The file in question is 'next.txt'

This is happening with extremely light use with no other clients connected to my account.

tags: added: facundo-lucid
tags: added: chicharra-lucid-problems
removed: facundo-lucid
tags: added: u1-lucid
Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Sturat,

if you can reproduce this issue, please configure your client logging in debug.

You should do the following:

1. stop the syncdaemon client and be sure it's fully stopped ("ps -eaf |
grep ubuntuone-client" should give you nothing).

2. put a file named syncdaemon.conf in your $HOME/.config/ubuntuone
directory with the following information:

[__main__]
log_level = DEBUG

3. restart the client.

4. work as usual.

5. attach here the logs, just zip you $HOME/.cache/ubuntuone/log/ folder
and attach the zip here.

Regards,

Changed in ubuntuone-client:
status: New → Incomplete
assignee: nobody → Guillermo Gonzalez (verterok)
Revision history for this message
Stuart Bishop (stub) wrote :

This time the ~/Ubuntu One/configs/.anki directory ended up called .anki.u1conflict.

Changed in ubuntuone-client:
status: Incomplete → New
Revision history for this message
Stuart Bishop (stub) wrote :

Hmm.... I can't create a ~/Ubuntu One/configs/.anki directory at all - it gets renamed straight away.

Revision history for this message
Stuart Bishop (stub) wrote :

Looking at the web interface, there was a .anki directory there that never synced locally. I removed it via the web ui and things are back to normal. Seeing if I can reproduce the file conflict now.

Revision history for this message
Stuart Bishop (stub) wrote :

I'm now unable to reproduce. I suspect the issue was triggered either by the 'ghosts' that existed on the server but not locally, or by the unreliable Internet connection which has since gotten better.

Revision history for this message
Stuart Bishop (stub) wrote :

It happened again this morning. I logged in, the u1client started up, I was informed that files where syncing which was odd as they should have been synced from last night. Checking, I found that ~/Ubuntu One/configs/.anki/config.db had been renamed to config.db.u1conflict.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Stuart,

Thanks for attaching the logs, but looks like the debug logging setting isn't applied.

I can't diagnose the problem with the logs in INFO level :(

If you use the package in the beta ppa the logs are in DEBUG level by default.

Thanks.

Revision history for this message
Sabin Iacob (iacobs) wrote :

same story here, running 1.1.1+r321-0ubuntu1~ppa1~karmic; apport-collect apparently won't upload stuff here for some reason, attaching logs

Revision history for this message
Sabin Iacob (iacobs) wrote :
Revision history for this message
Duane Hinnen (duanedesign) wrote :

Sabin,
Sorry you are having problems with ubuntu One. The Team is working very hard to get these taken care of.
Looking at your log files, you might not have this bug as its cause has not been determined, but you are effected by bug 490988
Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

thank you,
duanedesign

Changed in ubuntuone-client:
status: New → Incomplete
Revision history for this message
Stuart Bishop (stub) wrote :

Take III, this time with debug enabled really.

This time I log in and get a notification that Ubuntu One is syncing files. This was the heads up. Checking my Ubuntu One folder, I found that mydeck.anki had been renamed to mydeck.anki.u1confict. Something different this time - an older version of mydeck.anki was restored.

Changed in ubuntuone-client:
status: Incomplete → New
Revision history for this message
Duane Hinnen (duanedesign) wrote :

Stuart,
Thank you for you efforts in getting the log files posted and helping to make Ubuntu One better. The information has been forwarded on the Ubuntu One Team for their review. While waiting for them to take a look at your logs there is one thing you can do that might help Ubuntu One work better for you. There is a newer ubuntuone-client (1.0.3) available in the karmic-proposed updates. To take advantage of the fixes in the newer client follow the directions on the page linked below.

https://answers.edge.launchpad.net/ubuntuone-client/+faq/930

thank you,
duanedesign

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Stuart,

Thanks for the logs, I'll take a look ASAP.

Changed in ubuntuone-client:
assignee: Guillermo Gonzalez (verterok) → Ubuntu One Foundations+ team (ubuntuone-foundations+)
importance: Undecided → High
Changed in ubuntuone-client:
status: New → Confirmed
Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Stuart,
Looks like syncdaemon have a different value for the server_hash that the one in the server, so it starts a download.
As the file also changed locally, it mark it as a conflict.

We will try to trace the changes to that file and it metadata in all log files.

Thanks

tags: added: chicharra
Changed in ubuntuone-client:
assignee: Ubuntu One Foundations+ team (ubuntuone-foundations+) → Naty Bidart (nataliabidart)
status: Confirmed → In Progress
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Hi Stuart,

First of all, thank you very much for all your responses and you disposition to gather logs.
I've been analyzing the logs with the DEBUG mode on, and what is causing the conflict is:

 * the server reports that the file Ubuntu One/configs/.anki/mydeck.anki changed in the server
 * the local daemon checks if the file Ubuntu One/configs/.anki/mydeck.anki has local modifications
 * since Ubuntu One/configs/.anki/mydeck.anki does have local modifications, is moved to conflict to avoid loosing those changes, and the newest version of the file is downloaded from the server

What I want to debug is why the server is reporting a change in that file.
Could you please confirm or deny the following?

 * the problem is still happening (we have uploaded a lot of fixes to the server and to the client, latest client version 1.1.4-0ubuntu1)
 * you use only one computer with the anki flashcard and ubuntuone
 * you have not used the we ui to manage the synched files

If you answer yes to all of the above, I'll ask something else: would you know how the anki flash card manages the files? For example, does it open and close the files a lot? does it perform a lot of "save" to the files? does it save files incrementally (if such thing exists)?

Thank you very much for your assistance in resolving this. Naty (I'm nessita on IRC, please feel free to ping me).

Changed in ubuntuone-client:
status: In Progress → Incomplete
Revision history for this message
Facundo Batista (facundo) wrote :

Hi Stuart, do you have any news about this?

Thank you!

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 472630] Re: conflicts with a single client

On Fri, Mar 19, 2010 at 11:36 PM, Facundo Batista <email address hidden> wrote:
> Hi Stuart, do you have any news about this?

Not yet. I haven't been studying my flash cards and still have the old
client installed. I can confirm only one computer is syncing. The last
time I used the web UI was to remove everything to ensure everything
was clean.

--
Stuart Bishop <email address hidden>
http://www.stuartbishop.net/

tags: added: package
Revision history for this message
Stuart Bishop (stub) wrote :

I've not been able to reproduce this with Lucid and the default Lucid client.

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

This is indeed great news. We're closing this report, please open a new one if you experience any other issue.

Thanks!

Changed in ubuntuone-client:
status: Incomplete → 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.