Tomboy Web synchronization fails

Bug #440862 reported by Jason Brooks
92
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Fix Released
Critical
Rodrigo Moya
tomboy (Ubuntu)
Fix Released
Undecided
Rodrigo Moya

Bug Description

Binary package hint: tomboy

On my newly-installed Karmic beta amd64 system, attempts to configure Tomboy Web synchronization w/ ubuntu one yield a "Server not responding. Try again later." message.

Running tomboy --debug, I get this message in the console:

[DEBUG]: Building web request for URL: https://one.ubuntu.com/oauth/request/
[ERROR]: Caught exception. Message: The remote server returned an error: (400) BAD REQUEST.
[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]: Failed to get auth URL from https://one.ubuntu.com/notes/. Exception was: System.Net.WebException: The remote server returned an error: (400) BAD REQUEST.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000]
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000]

ProblemType: Bug
Architecture: amd64
Date: Fri Oct 2 12:40:57 2009
DistroRelease: Ubuntu 9.10
Package: tomboy 1.0.0-0ubuntu1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: tomboy
Uname: Linux 2.6.31-11-generic x86_64

Revision history for this message
Jason Brooks (jasonbrooks) wrote :
Revision history for this message
Rick McBride (rmcbride) wrote :

Hmm I get a failure, but my error message is subtly different:

ERROR]: Failed to get auth URL from https://one.ubuntu.com/notes/. Exception was: System.UriFormatException: Absolute URI is too short
  at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000]
  at System.Uri.ParseUri (UriKind kind) [0x00000]
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000]
  at System.Uri..ctor (System.String uriString) [0x00000]
  at Tomboy.WebSync.Api.OAuth.WebRequest (RequestMethod method, System.String url, System.String postData) [0x00000]
  at Tomboy.WebSync.Api.OAuth.Post (System.String uri, IDictionary`2 queryParameters, System.String postValue) [0x00000]
  at Tomboy.WebSync.Api.OAuth.GetAuthorizationUrl () [0x00000]
  at Tomboy.WebSync.WebSyncPreferencesWidget.OnAuthButtonClicked (System.Object sender, System.EventArgs args) [0x00000]

Changed in tomboy (Ubuntu):
status: New → Confirmed
Revision history for this message
Rick McBride (rmcbride) wrote :

s/subtly/completly

filing that as a seperate bug

Elliot Murphy (statik)
Changed in ubuntuone-servers:
assignee: nobody → Rodrigo Moya (rodrigo-moya)
tags: added: ubuntuone-karmic
Revision history for this message
Rick McBride (rmcbride) wrote :

as soon as I can remember how to avoid the redirection...

Revision history for this message
Rick McBride (rmcbride) wrote : Re: [Bug 440862] Re: Tomboy Web synchronization fails to connect to Ubuntu One

Rick McBride wrote:
> as soon as I can remember how to avoid the redirection...
>
per discussion, my bug is likely related despite the different output.

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote : Re: Tomboy Web synchronization fails to connect to Ubuntu One

For these 2 errors you need the new tomboy package from this branch -> https://code.edge.launchpad.net/~rodrigo-moya/tomboy/support-oauth-10a which is waiting in the karmic queue.

To build the package from the branch, just cd to the branch top level dir and:

$ bzr bd -- -b

Please note that today I started syncing successfully, but I found an error in our couchdb code (put_record) that seems to not deal correctly with unicode characters, and the bullets from lists in tomboy notes are unicode chars, so if you have a note with any bullet or any other unicode character, the server will fail with a 500 Internal Server Error.

If the notes just contain normal text (and markup), the syncing should work

Revision history for this message
Jason Brooks (jasonbrooks) wrote :

Thanks. I do have bullets in some of my notes, so I suppose I'll wait for that to shake out.

Revision history for this message
Elliot Murphy (statik) wrote :
Download full text (16.8 KiB)

I got a successful auth, but when clicking save to initially sync notes, it tomboy failed with this error:

[DEBUG]: Listening on http://localhost:8000/tomboy-web-sync/ for OAuth callback
[DEBUG]: Generating nonce.
[DEBUG]: Generating time stamp.
[DEBUG]: Building web request for URL: https://one.ubuntu.com/oauth/request/
[DEBUG]: Generated nonce is 1188458
[DEBUG]: Generated time stamp is 14522.12:19:00.4525450
[DEBUG]: Generating signature using HMAC-SHA1 algorithm.
[DEBUG]: Generating signature using signature type HMACSHA1
[DEBUG]: Generating signature base for OAuth request.
[DEBUG]: URL:
[DEBUG]: Creating list of parameters from parameter string
[DEBUG]: URL encoding value.
[DEBUG]: Normalizing URL for signature.
[DEBUG]: Generated normalized URL: https://one.ubuntu.com/oauth/request/
[DEBUG]: Normalizing request parameters.
[DEBUG]: Normalized request parameters oauth_callback=http%3A%2F%2Flocalhost%3A8000%2Ftomboy-web-sync%2F&oauth_consumer_key=anyone&oauth_nonce=1188458&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1254745140&oauth_version=1.0.
[DEBUG]: Generating signature base from normalized URL and request parameters.
[DEBUG]: URL encoding value.
[DEBUG]: URL encoding value.
[DEBUG]: Signature base: POST&https%3A%2F%2Fone.ubuntu.com%2Foauth%2Frequest%2F&oauth_callback%3Dhttp%253A%252F%252Flocalhost%253A8000%252Ftomboy-web-sync%252F%26oauth_consumer_key%3Danyone%26oauth_nonce%3D1188458%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1254745140%26oauth_version%3D1.0
[DEBUG]: URL encoding value.
[DEBUG]: Generating hashed signature.
[DEBUG]: Computing hash for data POST&https%3A%2F%2Fone.ubuntu.com%2Foauth%2Frequest%2F&oauth_callback%3Dhttp%253A%252F%252Flocalhost%253A8000%252Ftomboy-web-sync%252F%26oauth_consumer_key%3Danyone%26oauth_nonce%3D1188458%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1254745140%26oauth_version%3D1.0
[DEBUG]: HMAC-SHA1 encoded signature 3yzEMovm9sInKmebVoKn2JQnhFQ= of consumer secret and token secret.
[DEBUG]: Generated signature 3yzEMovm9sInKmebVoKn2JQnhFQ=
[DEBUG]: Post data:
[DEBUG]: Generated auth header params string: oauth_callback="http%3A%2F%2Flocalhost%3A8000%2Ftomboy-web-sync%2F",oauth_consumer_key="anyone",oauth_nonce="1188458",oauth_signature="3yzEMovm9sInKmebVoKn2JQnhFQ%3d",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1254745140",oauth_version="1.0"
[DEBUG]: Made web request, got response: oauth_token_secret=kh3BqNp23KRB8HhMVVnm7LHC0N4tmbgZwcxjS5MRjfbTrz05zf9T76wfxjtJlD7B3BN3v5cnZrKRt8Vr&oauth_token=d5r69vpG3j2qGTC88Cqr&oauth_callback_confirmed=true
[DEBUG]: Returned value from web request: oauth_token_secret=kh3BqNp23KRB8HhMVVnm7LHC0N4tmbgZwcxjS5MRjfbTrz05zf9T76wfxjtJlD7B3BN3v5cnZrKRt8Vr&oauth_token=d5r69vpG3j2qGTC88Cqr&oauth_callback_confirmed=true
[DEBUG]: Response from request for auth url: oauth_token_secret=kh3BqNp23KRB8HhMVVnm7LHC0N4tmbgZwcxjS5MRjfbTrz05zf9T76wfxjtJlD7B3BN3v5cnZrKRt8Vr&oauth_token=d5r69vpG3j2qGTC88Cqr&oauth_callback_confirmed=true
[DEBUG]: Launching browser to authorize web sync: https://one.ubuntu.com/oauth/authorize/?oauth_token=d5r69vpG3j2qGTC88Cqr&oauth_callback=http%3a%2f%2flocalhost%3a8000%2ftomboy-web-sync%2f
[DEBUG]: Context req...

Changed in tomboy (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
Changed in ubuntuone-servers:
status: New → In Progress
importance: Undecided → Critical
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Ok, so the problem seems to be the "content-version" field, which Tomboy expects to be a double, not a string. Fixed that on a branch I'm working on, which I'll submit soon

Elliot Murphy (statik)
summary: - Tomboy Web synchronization fails to connect to Ubuntu One
+ Tomboy Web synchronization fails
Revision history for this message
Elliot Murphy (statik) wrote :
Download full text (12.5 KiB)

I'm still getting a failure to sync a note today:

emurphy@sunk:~$ tomboy --debug
** Running Mono with --debug **
[DEBUG]: NoteManager created with note path "/home/emurphy/.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.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.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.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.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.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.OnAddinLoaded: Tomboy.FileSystemSyncServiceAddin
[DEBUG]: Name: Local Directory Sync Service Add-in
[DEBUG]: Description: Synchronize Tomboy Notes to a local file system path
[DEBUG]: Namespace: Tomboy
[D...

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

branch approved and merged to trunk

Changed in tomboy (Ubuntu):
status: Confirmed → Fix Released
Changed in ubuntuone-servers:
status: In Progress → Fix Committed
Revision history for this message
Ryan Ahearn (ryan-c-ahearn) wrote :

Rodrigo,

Is this fix in the tomboy code, or the ubuntu one server code? If in tomboy, do you know if it will be packaged in the normal karmic repo, the ubuntuone-beta ppa or both?

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Ryan, the fix was in Tomboy, which is already in Karmic, and on the server, which is about to be deployed.

Elliot, that's a new thing. Seems the server is returning HTML for the /api/1.0/user call, which it shouldn't, unless something has changed on the @oauth decorators?

Changed in ubuntuone-servers:
status: Fix Committed → In Progress
Changed in ubuntuone-servers:
status: In Progress → Fix Committed
Changed in ubuntuone-servers:
status: Fix Committed → Fix Released
Revision history for this message
Jason Brooks (jasonbrooks) wrote :

Tomboy notes sync w/ U1 is working for me now -- I have it going on my karmic notebook and netbook. Thanks!

Revision history for this message
Christian Berg (xeniac) wrote :

Seems that there are a lot of different Bugs, that prevent a sucsessful Sync.
I have Karmic with up-to-date packages. Tomboy Sync still fails with an Internal Server Error.
There are a lot ob Bullets and Unicode characters in my Notes, ist this Serverside Bug still actual?

Here is the conosole Output:
[INFO]: Initializing Mono.Addins
[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]: 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:12987): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed
[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]: 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:12987): GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed

Revision history for this message
Jason Brooks (jasonbrooks) wrote :

BTW, I just tried to sync again, and now it isn't working. Looks like all of this is rather up in the air.

Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Jason, we recently fixed another problem in the server, so it should be ok now again. Anyway, if you find new problems, file a different bug, please

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.