tomboy-notes / tomboy

This is the legacy development for Tomboy.
http://projects.gnome.org/tomboy
GNU Lesser General Public License v2.1
126 stars 25 forks source link

Tomboy does not Sync to grauphel #7

Closed andre-dierker closed 8 years ago

andre-dierker commented 10 years ago

Hi Tomboy Team

my Tomboy installation does not sync with a selfhosted grauphel server. If I try to add a https URL, Tomboy says: Server not responding. Nothing happens in server logs. Log:

26/11/2014 10:51:47 [WARN]: libproxy not installed
26/11/2014 10:51:48 [ERROR]: Caught exception. Message: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
26/11/2014 10:51:48 [ERROR]: Stack trace for previous exception:   at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 
26/11/2014 10:51:48 [ERROR]: Failed to get Root resource https://www.6bq.de/cloud/index.php/apps/grauphel/api/1.0. Exception was: System.Net.WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0

HTTP is working a little bit more, but its redirects to HTTPS but still server not responding message. Server log: GET /cloud/index.php/apps/grauphel/api/1.0 Log:

26/11/2014 11:04:52 [ERROR]: Caught exception. Message: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
26/11/2014 11:04:52 [ERROR]: Stack trace for previous exception:   at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 
26/11/2014 11:04:52 [ERROR]: Failed to get Root resource http://www.6bq.de/cloud/index.php/apps/grauphel/api/1.0. Exception was: System.Net.WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 

System Fedora 20, Tomboy 1.15.4

regards Andre

de4niih commented 9 years ago

@andre-dierker Hey man. I have the same error message when I try to setup the Sync in Tomboy.

23.08.2015 04:21:06 [ERROR]: Stack trace for previous exception:   at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 
23.08.2015 04:21:06 [ERROR]: Failed to get Root resource https://MYSERVER.URL/index.php/apps/grauphel/api/1.0. Exception was: System.Net.WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 

I'm currently running Ubuntu 15.04 and Tomboy 1.15.4

Also checked the server logfiles, but there is nothing related to this. For any odd reason this is working fine on Android, but not on my Ubuntu PC.

Any suggestions to get this fixed are highly appreciated.

Thks a lot and have a good day everybody.

alex-ter commented 8 years ago

Looks like this was not a Tomboy problem, but rather a supported and offered ciphers mismatch between server and client (as I can derive from https://github.com/cweiske/grauphel/issues/32) and it was successfully resolved by server configuration.

Closing this one then.