Synchronization via Tomboy web (Ubuntu One server) fails.

Bug #449648 reported by Alessio Gaeta
294
This bug affects 64 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Fix Released
High
Roman Yepishev
tomboy
Invalid
Undecided
Unassigned
tomboy (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: tomboy

As per title.
Launching Tomboy with --debug allowed me to see the following exception:

<--- snip --->
[...]

[DEBUG]: Returned value from web request:
<html>
<head>
  <title>OpenID transaction in progress</title>
</head>
<body onload="document.forms[0].submit();">
<form accept-charset="UTF-8" action="https://login.launchpad.net/+openid" enctype="application/x-www-form-urlencoded" id="openid_message" method="post"><input name="openid.mode" type="hidden" value="checkid_setup" /><input name="openid.return_to" type="hidden" value="https://one.ubuntu.com/auth/complete/?next=%2Fnotes%2Fapi%2F1.0%2F[***REMOVED***]" /><input name="openid.realm" type="hidden" value="https://one.ubuntu.com/" /><input name="openid.lp.query_membership" type="hidden" value="ubuntuone-admins,ubuntuone-hackers,canonical" /><input name="openid.ns" type="hidden" value="http://specs.openid.net/auth/2.0" /><input name="openid.sreg.optional" type="hidden" value="email,fullname,nickname" /><input name="openid.claimed_id" type="hidden" value="http://specs.openid.net/auth/2.0/identifier_select" /><input name="openid.ns.sreg" type="hidden" value="http://openid.net/extensions/sreg/1.1" /><input name="openid.assoc_handle" type="hidden" value="{HMAC-SHA1}[***REMOVED***]" /><input name="openid.ns.lp" type="hidden" value="http://ns.launchpad.net/2007/openid-teams" /><input name="openid.identity" type="hidden" value="http://specs.openid.net/auth/2.0/identifier_select" /><input type="submit" value="Continue" /></form>
<script>
var elements = document.forms[0].elements;
for (var i = 0; i < elements.length; i++) {
  elements[i].style.display = "none";
}
</script>
</body>
</html>

[ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [2:0]
  at Hyena.Json.Tokenizer.UnexpectedCharacter (Char ch) [0x00000]
  at Hyena.Json.Tokenizer.InnerScan () [0x00000]
  at Hyena.Json.Tokenizer.Scan () [0x00000]
  at Hyena.Json.Deserializer.CheckScan (TokenType expected, Boolean eofok) [0x00000]
  at Hyena.Json.Deserializer.Deserialize () [0x00000]
  at Tomboy.WebSync.Api.UserInfo.ParseJson (System.String jsonString) [0x00000]
  at Tomboy.WebSync.Api.UserInfo.GetUser (System.String userUri, IWebConnection connection) [0x00000]
  at Tomboy.WebSync.WebSyncServer.BeginSyncTransaction () [0x00000]
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000]

<--- snip --->

ProblemType: Bug
Architecture: amd64
Date: Mon Oct 12 18:09:24 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: fglrx
Package: tomboy 1.0.0-0ubuntu2
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=it_IT.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-13.43-generic
SourcePackage: tomboy
Uname: Linux 2.6.31-13-generic x86_64

Revision history for this message
Alessio Gaeta (meden) wrote :
Revision history for this message
Andrew (andrewlevine) wrote :

I fixed this by going Preferences > Synchronization, Press clear and save again

Revision history for this message
Chuck (chuck-broker) wrote :

I received the "Syncronization failed" error below after "cutting" selected text from one tomboy note (sourcenote) and "pasting" the text into another tomboy note (destinationnote).

Previously received "Synchronization is complete" several times.

Corrected problem by:
find sourcenote.note file in tomboy directory
using text editor, edit sourcenote.note file, remove all html, save as sourcenote.txt
tomboy->delete sourcenote
tomboy->create new note: sourcenote-new
copy sourcenote.txt text paste into sourcenote-new
tomboy->tools->synchronize notes
"Syncronization is complete"

The error message I received while running "tomboy --debug" was slightly different from that listed in this bug report:

[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/op/
[ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [1:1]
  at Hyena.Json.Tokenizer.UnexpectedCharacter (Char ch) [0x00000]

"Preferences > Synchronization, Press clear and save again" works, but results in doubling the number of files in ~/.local/share/tomboy and significant cleanup chores.

amd64
tomboy 1.0.1-0ubuntu1~ppa~karmic0
ubuntu one client 1.1.0+r300-0ubuntu1~ppa1~karmic
all packages upgraded 12-25-2009
Linux [*snip*] 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:02:15 UTC 2009 x86_64 GNU/Linux

Revision history for this message
Christopher Berner (cberner) wrote :

I'm having the same problem. clearing the synchronisation settings and then saving them again worked for one sync, but then it broke again on my next attempt

Revision history for this message
Peterson Silva (petersonsilva) wrote :

"Clearing the synchronisation settings and then saving them again worked for one sync, but then it broke again on my next attempt" --- [2]

And I even purged tomboy --- manually --- and reinstalled. worked once, then broken again.

I filed another bug, I'm sorry. I'm going to mark it as a duplicate..

Revision history for this message
netman (nezbeda) wrote :

I can reproduce the bug as follows:
 - create new note in Tomboy
 - sync to Ubuntu One
 - modify the note
 - sync to Ubuntu One (and the sync fails)

if I delete the modified note, the sync works again

Revision history for this message
dst (dast) wrote :

I get the same error message as Chuck.
This bug makes Tomboy heavily unusable to me. Duplication into new notes and removing the original ones allows for synchronisation (at least once).
It seems, as if Ubuntu One hid certain files from the UI, because the syncing fails with specific filenames. Even after manually removing all notes from Ubuntu One, recommitting them fails (kind of: they reappear in Ubuntu One, while synchronization still does not work). Editing and saving them within Ubuntu One also causes errors.

Revision history for this message
Hans-Christoph Steiner (eighthave) wrote :

I have this problem as well. I had some notes in Tomboy before I started syncing to Ubuntu One. I've been trying all sorts of things. I did get one sync that was branded a "success", and it does seem to be swapping

I'm using Tomboy 1.0.0 on Karmic, all updated today. I also just installed the tomboy 1.0.1 from the tomboy stable PPA, and its got the same problem.
Linux 2.6.31-16-generic

Revision history for this message
Twisted Lucidity (lucidlytwisted) wrote :

I have this issue as well.

Exception text:
[ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [1:1]
  at Hyena.Json.Tokenizer.UnexpectedCharacter (Char ch) [0x00000]
  at Hyena.Json.Tokenizer.InnerScan () [0x00000]
  at Hyena.Json.Tokenizer.Scan () [0x00000]
  at Hyena.Json.Deserializer.CheckScan (TokenType expected, Boolean eofok) [0x00000]
  at Hyena.Json.Deserializer.Deserialize () [0x00000]
  at Tomboy.WebSync.Api.UserInfo.ParseJsonNotes (System.String jsonString, System.Nullable`1& latestSyncRevision) [0x00000]
  at Tomboy.WebSync.Api.UserInfo.UpdateNotes (IList`1 noteUpdates, Int32 expectedNewRevision) [0x00000]
  at Tomboy.WebSync.WebSyncServer.CommitSyncTransaction () [0x00000]
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000]

(/usr/lib/tomboy/Tomboy.exe:13901): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed

If I delete the note and create it, sync works fine for the first time. Afterwards I get the above. although the exception is not correctly reported (I also found the problme by running Tomody in debug from the terminal - the dialog just says "Uploaded to server").
The fail note contains plain ASCII text, some bold, underlines and strikethrough characters; that is all, nothing fancy.

I am also seeing Tomboy create duplicate notes when they are not required, not sure if that is related.
1. Create a new note on client.
2. Sync.
3. Modify note on client
4. Sync.
5. You get "new note" and "new note (old)". It should just update the note.

Revision history for this message
Twisted Lucidity (lucidlytwisted) wrote :

Has something changed?

I am not getting any errors now, but notes are not synchronising at all.

If I create a new note and sync, that works.
If I edit that note and sync, nothing is updated ("0 notes updated").
If I login via the web and update the note, then sync, nothing is updated.
Actually, sometimes the changes on the web do not take at all and I get a "Could not save changes" message (no explanation) and at other times, even though the change seems to get saved, when I click back on the note the changes are lost.
If I delete a note from the web and then sync, the deletion takes effect.

Revision history for this message
Tobias Kuhn (tkuhn) wrote :

I have exactly the same problem as roadSurfer. No errors but nothing is synced (except new notes).

Revision history for this message
Martin Sjöstrand (mitramai) wrote :

I also have this problem, can't sync my notes and tomboy just says the synchronization failed, but gives no explanation...

Revision history for this message
Martin Sjöstrand (mitramai) wrote :
Download full text (4.9 KiB)

Running Tomboy with --debug I get the same errors as the first submitter:

martin@Alcor:~$ tomboy --debug
** Running Mono with --debug **

(/usr/lib/tomboy/Tomboy.exe:5955): GLib-WARNING **: g_set_prgname() called multiple times

(/usr/lib/tomboy/Tomboy.exe:5955): GLib-WARNING **: g_set_prgname() called multiple times
[DEBUG]: NoteManager created with note path "/home/martin/.local/share/tomboy".
[INFO]: Initializing Mono.Addins
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.Tomboy
[DEBUG]: Name: Tomboy.Tomboy,0.10
[DEBUG]: Description:
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/Tomboy.exe
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
[DEBUG]: Name: Export to HTML
[DEBUG]: Description: Exports individual notes to HTML.
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/ExportToHtml.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
[DEBUG]: Name: Printing Support
[DEBUG]: Description: Allows you to print a note.
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/PrintNotes.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
[DEBUG]: Name: Backlinks
[DEBUG]: Description: See which notes link to the one you're currently viewing.
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/Backlinks.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.EvolutionAddin
[DEBUG]: Name: Evolution Mail Integration
[DEBUG]: Description: Allows you to drag an email from Evolution into a tomboy note. The message subject is added as a link in the note.
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/Evolution.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.FixedWidthAddin
[DEBUG]: Name: Fixed Width
[DEBUG]: Description: Adds fixed-width font style.
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/FixedWidth.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.StickyNoteImportAddin
[DEBUG]: Name: Sticky Notes Importer
[DEBUG]: Description: Import your notes from the Sticky Notes applet.
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/StickyNoteImport.dll
[DEBUG]: StickyNoteImporter: Sticky Notes XML file does not exist or is invalid!
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
[DEBUG]: Name: Web Sync Service Add-in
[DEBUG]: Description: Synchronize Tomboy Notes with Tomboy Online and other compatible web services
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/WebSyncServiceAddin.dll
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.WebDavSyncServiceAddin
[DEBUG]: Name: WebDav Sync Service Add-in
[DEBUG]: Description: Synchronize Tomboy Notes to a WebDav URL
[DEBUG]: Namespace: Tomboy
[DEBUG]: Enabled: True
[DEBUG]: File: /usr/lib/tomboy/addins/WebDavSyncService.dll
[DEBUG]: AddinManager.OnAddinLoad...

Read more...

Andy Pascall (apascall)
Changed in ubuntuone-servers:
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: New → Confirmed
Changed in tomboy (Ubuntu):
status: New → Confirmed
Revision history for this message
Javier Lorenzana (skqr) wrote :

The "unexpected character exception" is happening to me too.

I reported it as #537395, but someone labelled it as duplicate of another bug that I can't even access.

This thing is really annoying, I've tried removing all notes and synchronizing and it still fails in the exact same way.

It's really frustrating for this to have NO workarounds.

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

The fact that sync fails here is not a Tomboy bug. The only Tomboy bug is that we don't properly check the HTTP status code on the response we get from U1 servers, so instead of immediately seeing that the server returns an error, we try to parse the response as if it were JSON, and that point we get a parsing error.

Anyway, unless there's something I'm missing, I'm removing Tomboy as an affected project.

Changed in tomboy (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Scott Lewin (sclewin) wrote :

+1. I am pretty sure I am having the same problem. When I try to synchronize to Tomboy Web I get "Could not synchronize notes. Check the details below and try again." When I click on details it gives me none. I can repeat this over and over again.

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

Scott, to be sure that it's the same bug, you need to run `tomboy --debug` from a terminal, and compare the output shown in this bug:

[ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [2:0]
  at Hyena.Json.Tokenizer.UnexpectedCharacter (Char ch) [0x00000]

If you get a different error, you might be experiencing a different bug (which could be a bug in Tomboy).

Revision history for this message
Pablo Quirós (polmac1985) wrote :

I've got a similar error:

[ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [1:1]

I don't know if it means any difference that it says [1:1] instead of [2:0].......

Revision history for this message
Scott Lewin (sclewin) wrote :

I just installed the beta for 10.4 and I did a tomboy --debug. I got the following which does look like the same error.

[ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [1:1]
  at Hyena.Json.Tokenizer.UnexpectedCharacter (Char ch) [0x00000]
  at Hyena.Json.Tokenizer.InnerScan () [0x00000]
  at Hyena.Json.Tokenizer.Scan () [0x00000]
  at Hyena.Json.Deserializer.CheckScan (TokenType expected, Boolean eofok) [0x00000]
  at Hyena.Json.Deserializer.Deserialize () [0x00000]
  at Tomboy.WebSync.Api.UserInfo.ParseJson (System.String jsonString) [0x00000]
  at Tomboy.WebSync.Api.UserInfo.GetUser (System.String userUri, IWebConnection connection) [0x00000]
  at Tomboy.WebSync.WebSyncServer.BeginSyncTransaction () [0x00000]
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000]

Revision history for this message
DrQwill (10cn52) wrote :

Have the same bug here, with 9.04 9.10 and 10.4
I'm not able to sync anymore with ubuntuone, with the same error.

[ERROR]: Caught exception. Message: The remote server returned an error: (500) INTERNAL SERVER ERROR.
[ERROR]: Stack trace for previous exception: at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000]
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000]
[ERROR]: Rest of stack trace for above exception: at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Get(System.String uri, IDictionary`2 queryParameters)
   at Tomboy.WebSync.Api.UserInfo.GetUser(System.String userUri, IWebConnection connection)
   at Tomboy.WebSync.WebSyncServer.BeginSyncTransaction()
   at Tomboy.Sync.SyncManager.SynchronizationThread()
[ERROR]: Synchronization failed with the following exception: The remote server returned an error: (500) INTERNAL SERVER ERROR.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000]
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000]

(tomboy:2197): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed
[DEBUG]: BackgroundSyncChecker: Checking server for updates
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes//api/1.0/
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/
[ERROR]: Caught exception. Message: The remote server returned an error: (500) INTERNAL SERVER ERROR.
[ERROR]: Stack trace for previous exception: at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000]
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000]
[ERROR]: Rest of stack trace for above exception: at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Get(System.String uri, IDictionary`2 queryParameters)
   at Tomboy.WebSync.Api.UserInfo.GetUser(System.String userUri, IWebConnection connection)
   at Tomboy.WebSync.WebSyncServer.UpdatesAvailableSince(Int32 revision)
   at Tomboy.Sync.SyncManager.BackgroundSyncChecker()
   at Tomboy.Sync.SyncManager.<UpdateSyncAction>m__25(System.Object o)
[DEBUG]: BackgroundSyncChecker: Error connecting to server

Revision history for this message
Javier Lorenzana (skqr) wrote :

Rodrigo, any good word for the fellas waiting?

Revision history for this message
Benjamin.M (benjaminm) wrote :

I'm having the same issue as DrQwill it seems. I can't upload any notes to the server and tomboy --debug says:

[DEBUG]: SyncThread using SyncServiceAddin: Tomboy im Internet
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes//api/1.0/
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/user/
[DEBUG]: 8
[DEBUG]: Sync: GetNoteUpdatesSince rev -1
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/op/?include_notes=true
[DEBUG]: Sync: 2 updates since rev -1
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/op/
[DEBUG]: Sync: Uploading 23 note updates
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/op/
[DEBUG]: Building web request for URL: https://one.ubuntu.com/notes/api/1.0/op/
[ERROR]: Caught exception. Message: The remote server returned an error: (500) INTERNAL SERVER ERROR.
[ERROR]: Stack trace for previous exception: at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000]
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000]
[ERROR]: Rest of stack trace for above exception: at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Put(System.String uri, IDictionary`2 queryParameters, System.String putValue)
   at Tomboy.WebSync.Api.UserInfo.UpdateNotes(IList`1 noteUpdates, Int32 expectedNewRevision)
   at Tomboy.WebSync.WebSyncServer.CommitSyncTransaction()
   at Tomboy.Sync.SyncManager.SynchronizationThread()
[ERROR]: Synchronization failed with the following exception: The remote server returned an error: (500) INTERNAL SERVER ERROR.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000]
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000]

(tomboy:3379): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed

Revision history for this message
atreju (atreju-tauschinsky) wrote :

I'm experiencing the same issue as DrQwill and Benjamin.M but believe that this is a different bug as our logs do not show the [ERROR]: Synchronization failed with the following exception: Unexpected character '<' at [1:1] line.
I have therefore reported ths issue as a separate bug #571865.
I apologize if the bug is the same, please mark my report as a duplicate in that case.

Revision history for this message
doomdragon (david-harris9) wrote :
Download full text (7.7 KiB)

Experiencing syncing issue sorry for the other bug report I think i fluffed it! forgive me! It won't synchronise my notes via tomboy web. I have a debug log if it is of any use?

** Running Mono with --debug **
[DEBUG 21:55:32.849] NoteManager created with note path "/home/david/.local/share/tomboy".
[DEBUG 21:55:32.931] EnableDisable Called: enabling... True
[DEBUG 21:55:32.934] Binding key '<Alt>F12' for '/apps/tomboy/global_keybindings/show_note_menu'
[DEBUG 21:55:32.937] Binding key '<Alt>F11' for '/apps/tomboy/global_keybindings/open_start_here'
[INFO 21:55:33.404] Initializing Mono.Addins
[DEBUG 21:55:33.581] AddinManager.OnAddinLoaded: Tomboy.Tomboy
[DEBUG 21:55:33.587] Name: Tomboy.Tomboy,0.10
[DEBUG 21:55:33.587] Description:
[DEBUG 21:55:33.587] Namespace: Tomboy
[DEBUG 21:55:33.587] Enabled: True
[DEBUG 21:55:33.588] File: /usr/lib/tomboy/Tomboy.exe
[DEBUG 21:55:34.373] AddinManager.OnAddinLoaded: Tomboy.WebSyncServiceAddin
[DEBUG 21:55:34.374] Name: Web Sync Service Add-in
[DEBUG 21:55:34.374] Description: Synchronize Tomboy Notes with Tomboy Online and other compatible web services
[DEBUG 21:55:34.374] Namespace: Tomboy
[DEBUG 21:55:34.374] Enabled: True
[DEBUG 21:55:34.374] File: /usr/lib/tomboy/addins/WebSyncServiceAddin.dll
[DEBUG 21:55:34.375] AddinManager.OnAddinLoaded: Tomboy.WebDavSyncServiceAddin
[DEBUG 21:55:34.376] Name: WebDav Sync Service Add-in
[DEBUG 21:55:34.376] Description: Synchronize Tomboy Notes to a WebDav URL
[DEBUG 21:55:34.376] Namespace: Tomboy
[DEBUG 21:55:34.376] Enabled: True
[DEBUG 21:55:34.376] File: /usr/lib/tomboy/addins/WebDavSyncService.dll
[DEBUG 21:55:34.380] Unable to locate 'gnomesu' in your PATH
[DEBUG 21:55:34.380] Using '/usr/bin/gksu' as GUI 'su' tool
[DEBUG 21:55:34.380] Successfully found all system tools
[DEBUG 21:55:34.380] Unable to locate 'wdfs' in your PATH
[DEBUG 21:55:34.382] AddinManager.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
[DEBUG 21:55:34.383] Name: Local Directory Sync Service Add-in
[DEBUG 21:55:34.383] Description: Synchronize Tomboy Notes to a local file system path
[DEBUG 21:55:34.383] Namespace: Tomboy
[DEBUG 21:55:34.383] Enabled: True
[DEBUG 21:55:34.384] File: /usr/lib/tomboy/addins/FileSystemSyncService.dll
[DEBUG 21:55:34.580] AddinManager.OnAddinLoaded: Tomboy.ExportToHtmlAddin
[DEBUG 21:55:34.581] Name: Export to HTML
[DEBUG 21:55:34.581] Description: Exports individual notes to HTML.
[DEBUG 21:55:34.581] Namespace: Tomboy
[DEBUG 21:55:34.581] Enabled: True
[DEBUG 21:55:34.581] File: /usr/lib/tomboy/addins/ExportToHtml.dll
[DEBUG 21:55:34.582] AddinManager.OnAddinLoaded: Tomboy.PrintNotesAddin
[DEBUG 21:55:34.582] Name: Printing Support
[DEBUG 21:55:34.582] Description: Allows you to print a note.
[DEBUG 21:55:34.582] Namespace: Tomboy
[DEBUG 21:55:34.582] Enabled: True
[DEBUG 21:55:34.582] File: /usr/lib/tomboy/addins/PrintNotes.dll
[DEBUG 21:55:34.583] AddinManager.OnAddinLoaded: Tomboy.BacklinksAddin
[DEBUG 21:55:34.585] Name: Backlinks
[DEBUG 21:55:34.585] Description: See which notes link...

Read more...

Revision history for this message
Cornelius Hald (hald) wrote :

@doomdragon: Please check your local clock. Make sure it is set correctly and also that the timezone is the right one. The excaption "The remote server returned an error: (404) NOT FOUND." is thrown, if you try to access U1 with a inaccurate local clock.

Of course this exception is also returned if there is a serious issue with U1, but I don't think that's the case right now.

Revision history for this message
Cornelius Hald (hald) wrote :

Another reason could be that your sync credentials got lost. Try to reauth Tomboy with U1 and/or have a look here: https://bugs.launchpad.net/ubuntuone-servers/+bug/575937

Revision history for this message
tech2304 (tech2304) wrote :

My ubuntu 10.04
I've got a similar error:
$ tomboy -d
[INFO 20:28:07.998] Initializing Mono.Addins
[ERROR 20:28:31.593] Synchronization failed with the following exception: A note with this title already exists: Вирусы
  at Tomboy.NoteManager.CreateNewNote (System.String title, System.String xml_content, System.String guid) [0x00000]
  at Tomboy.NoteManager.CreateNewNote (System.String title, System.String guid) [0x00000]
  at Tomboy.NoteManager.CreateWithGuid (System.String title, System.String guid) [0x00000]
  at Tomboy.Sync.SyncManager+<CreateNoteInMainThread>c__AnonStoreyE.<>m__27 () [0x00000]
  at Tomboy.GuiUtils+<GtkInvokeAndWait>c__AnonStorey9.<>m__1A (System.Object , System.EventArgs ) [0x00000]

(tomboy:2324): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed

Changed in ubuntuone-servers:
assignee: Rodrigo Moya (rodrigo-moya) → Ubuntu One Desktop+ team (ubuntuone-desktop+)
Changed in ubuntuone-servers:
importance: Undecided → High
tags: added: u1-tomboy-sync
Revision history for this message
Hector Miuler Malpica Gallegos (miuler) wrote :

$ tomboy
[INFO 11:53:16.449] Initializing Mono.Addins
[ERROR 11:53:46.421] Synchronization failed with the following exception: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[Tomboy.Note].VerifyState () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1+Enumerator[Tomboy.Note].MoveNext () [0x00000] in <filename unknown>:0
  at Tomboy.NoteManager.Find (System.String linked_title) [0x00000] in <filename unknown>:0
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0

(Tomboy:20220): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed
[ERROR 11:55:42.186] Caught exception. Message: The remote server returned an error: (504) Gateway Time-out.
[ERROR 11:55:42.188] Stack trace for previous exception: at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0
[ERROR 11:55:42.191] Rest of stack trace for above exception: at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Get(System.String uri, IDictionary`2 queryParameters)
   at Tomboy.WebSync.Api.UserInfo.GetUser(System.String userUri, IWebConnection connection)
   at Tomboy.WebSync.WebSyncServer.UpdatesAvailableSince(Int32 revision)
   at Tomboy.Sync.SyncManager.BackgroundSyncChecker()
   at Tomboy.Sync.SyncManager.<UpdateSyncAction>m__33(System.Object o)

Revision history for this message
Hector Miuler Malpica Gallegos (miuler) wrote :

$ tomboy
[INFO 11:53:16.449] Initializing Mono.Addins
[ERROR 11:53:46.421] Synchronization failed with the following exception: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[Tomboy.Note].VerifyState () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1+Enumerator[Tomboy.Note].MoveNext () [0x00000] in <filename unknown>:0
  at Tomboy.NoteManager.Find (System.String linked_title) [0x00000] in <filename unknown>:0
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0

(Tomboy:20220): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed
[ERROR 11:55:42.186] Caught exception. Message: The remote server returned an error: (504) Gateway Time-out.
[ERROR 11:55:42.188] Stack trace for previous exception: at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0
[ERROR 11:55:42.191] Rest of stack trace for above exception: at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Get(System.String uri, IDictionary`2 queryParameters)
   at Tomboy.WebSync.Api.UserInfo.GetUser(System.String userUri, IWebConnection connection)
   at Tomboy.WebSync.WebSyncServer.UpdatesAvailableSince(Int32 revision)
   at Tomboy.Sync.SyncManager.BackgroundSyncChecker()
   at Tomboy.Sync.SyncManager.<UpdateSyncAction>m__33(System.Object o)

Changed in tomboy (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

Hector, your stack trace is totally different from everybody else in this bug. Your bug is not the same as this bug.

Your bug is an actual Tomboy bug. If you can't find it already filed, please file a new one.

Marking this bug as Invalid for Tomboy again.

Changed in tomboy (Ubuntu):
status: Confirmed → Invalid
Roman Yepishev (rye)
Changed in ubuntuone-servers:
assignee: Ubuntu One Desktop+ team (ubuntuone-desktop+) → Roman Yepishev (rye)
Revision history for this message
Roman Yepishev (rye) wrote :

Hello all,

If you are experiencing issues with tomboy sync (but not 404 NOT FOUND response from the server) please try the following script that should provide you with the information regarding what note is causing the synchronization to fail. Editing and re-saving the offending notes in the web interface should restore your tomboy sync, however if the note in the web interface appears completely blank please do not re-save it since that will overwrite your previous note content. Please contact <email address hidden> if you are not able to restore the notes in this way and we will find out how that can be done on case-by-case basis.

Here's how to use the script in the terminal:

cd /tmp
wget http://people.canonical.com/~roman.yepishev/us/tomboy-sync-validator.py
python tomboy-sync-validator.py

It should print something like this:

API ref is at https://one.ubuntu.com/notes/api/1.0/user/, querying...
Notes are at https://one.ubuntu.com/notes/api/1.0/op/, querying...
Current sync GUID: 0
Latest sync revision: 2
Found 5 notes
[1/5] "Start Here": OK
[2/5] "Ubuntu One": OK
[3/5] "Hello again!": OK
[4/5] "Using Links in Tomboy": OK
[5/5] "New Note 1": OK

However if there is an error it will print something like
[1/5] "Start Here": ERROR
        23d57ffb-a492-4ba1-adf4-72f0eb23b254: last-change-date-is-broken (000)
        https://one.ubuntu.com/notes/view/23d57ffb-a492-4ba1-adf4-72f0eb23b254

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

Once again, marking this as *not* a Tomboy bug. It is only a bug with U1 servers.

If you think anything about Tomboy behavior in this situation is wrong, please file a separate bug describing your issue (preferably upstream). Mixing multiple issues in one bug is unhelpful.

Thanks!

Changed in tomboy:
status: New → Invalid
Revision history for this message
Hector Miuler Malpica Gallegos (miuler) wrote :

[INFO 10:24:29.676] Initializing Mono.Addins
[ERROR 10:25:11.215] Synchronization failed with the following exception: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[Tomboy.Note].VerifyState () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1+Enumerator[Tomboy.Note].MoveNext () [0x00000] in <filename unknown>:0
  at Tomboy.NoteManager.Find (System.String linked_title) [0x00000] in <filename unknown>:0
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0

Changed in tomboy:
status: Invalid → Confirmed
Changed in tomboy (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote :

Hector, you are experiencing a different bug, please file it separately (or try to find an existing bug with a similar stack trace to the one you've provided).

I have seen your bug before but do not know what causes it, and it is a Tomboy bug for sure, and not an Ubuntu One bug.

Changed in tomboy:
status: Confirmed → Invalid
Changed in tomboy (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Roman Yepishev (rye) wrote :

At the moment I am unaware about any TomboyXML and OpenID issues that could have cause the sync to fail.
I am setting this bug report as fix released.

If you still experience the issue with Tomboy synchronization, please file a new bug. You will need to start tomboy from the terminal to be able to copy the debug output.

Changed in ubuntuone-servers:
status: Confirmed → Fix Released
Revision history for this message
Michal Predotka (mpredotka) wrote :

I've opened new bug report with similar problem: #850760

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.