[ubuntu-mono] [Bug 449648] Re: Synchronization via Tomboy web (Ubuntu One server) fails.

Roman Yepishev roman.yepishev at canonical.com
Fri Feb 18 13:07:45 UTC 2011


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
ubuntuone-support at canonical.com 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

-- 
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to tomboy in ubuntu.
https://bugs.launchpad.net/bugs/449648

Title:
  Synchronization via Tomboy web (Ubuntu One server) fails.

Status in Ubuntu One Servers:
  Confirmed
Status in “tomboy” package in Ubuntu:
  Invalid

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




More information about the Ubuntu-mono mailing list