kiquenet / gdocbackup

Automatically exported from code.google.com/p/gdocbackup
0 stars 0 forks source link

Error with OAuthOnly mode when run using mono #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When running GDocBackupCMD.exe using mono on a linux system the OAuthOnly mode 
doesn't work giving the following error.

LOG> 100 : GLOBAL-ERROR (exception details): System.ApplicationException: Error 
retrieving users list ---> Google.GData.Client.GDataRequestException: Execution 
of request failed: https://apps-apis.google.com/a/feeds/<domain>/user/2.0 ---> 
System.Net.WebException: The remote server returned an error: (403) Invalid 
OAuth signature..

The version being used is 0.7.1.172. 
The linux system is Ubuntu.

Strangely enough I can successfully run gdocbackup using OAuthOnly with the 
windows client.

Original issue reported on code.google.com by david.mu...@purehacking.com on 3 Jan 2012 at 5:26

GoogleCodeExporter commented 8 years ago
Perhaps it's a https certificates validation issue.
Please try FAQ #5   http://gs.fhtino.it/gdocbackup/faq

Original comment by fht...@gmail.com on 3 Jan 2012 at 10:48

GoogleCodeExporter commented 8 years ago
First I tried with the bypassHttpsCertChecks option and it still failed
with the same error (as below)

LOG> 100 : GLOBAL-ERROR (exception details): System.ApplicationException:
Error retrieving users list ---> Google.GData.Client.GDataRequestException:
Execution of request failed:
https://apps-apis.google.com/a/feeds/purehacking.com/user/2.0 --->
System.Net.WebException: The remote server returned an error: (403) Invalid
OAuth signature..

Then I followed FAQ 5 to ensure that mono is working with HTTPS correctly
and it is. Execution of mono tlstest.exe worked fine without errors and if
I execute gdocbackup (via mono) using the regular username and password
mode it also works okay.

The "Invalid OAuth signature" would seem to indicate that I might have
mistyped the OAuth secret but I've checked this time and time again. I use
the same secret key in the gdocbackup windows utility and it works okay
there.

Any other thoughts?

Original comment by david.mu...@purehacking.com on 4 Jan 2012 at 1:28

GoogleCodeExporter commented 8 years ago
Try GDoBackup 0.7.2.175 BETA
http://code.google.com/p/gdocbackup/downloads/list
Try with and without "bypassHttpsCertChecks".

Original comment by fht...@gmail.com on 4 Jan 2012 at 2:48

GoogleCodeExporter commented 8 years ago

Original comment by fht...@gmail.com on 4 Jan 2012 at 2:48

GoogleCodeExporter commented 8 years ago
Same issue, both with and without cert checking enabled. Log output from
each test run is below.

Certs Checks Enabled.

LOG> 000 : ************************************************************
LOG> 000 : ****** START BACKUP PROCESS ******
LOG> 000 : GDocBackupLib - ver. 0.7.2.175
LOG> 100 : GLOBAL-ERROR:  Error retrieving users list
LOG> 100 : GLOBAL-ERROR (exception details): System.ApplicationException:
Error retrieving users list ---> Google.GData.Client.GDataRequestException:
Execution of request failed:
https://apps-apis.google.com/a/feeds/purehacking.com/user/2.0 --->
System.Net.WebException: The remote server returned an error: (403) Invalid
OAuth signature..
 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
 --- End of inner exception stack trace ---
 at Google.GData.Client.GDataRequest.Execute () [0x00000] in <filename
unknown>:0
 at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter)
[0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at GDocBackupLib.Backup.ExecInternalApps () [0x00000] in <filename
unknown>:0
 at GDocBackupLib.Backup.ExecInternal () [0x00000] in <filename unknown>:0
 at GDocBackupLib.Backup.Exec () [0x00000] in <filename unknown>:0

****** WARNING: there are errrors! ******

Cert Checks Bypassed

LOG> 000 : ************************************************************
LOG> 000 : ****** START BACKUP PROCESS ******
LOG> 000 : GDocBackupLib - ver. 0.7.2.175
LOG> 000 : BypassHttpsCertCheck ACTIVE
LOG> 100 : GLOBAL-ERROR:  Error retrieving users list
LOG> 100 : GLOBAL-ERROR (exception details): System.ApplicationException:
Error retrieving users list ---> Google.GData.Client.GDataRequestException:
Execution of request failed:
https://apps-apis.google.com/a/feeds/purehacking.com/user/2.0 --->
System.Net.WebException: The remote server returned an error: (403) Invalid
OAuth signature..
 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
 --- End of inner exception stack trace ---
 at Google.GData.Client.GDataRequest.Execute () [0x00000] in <filename
unknown>:0
 at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter)
[0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at GDocBackupLib.Backup.ExecInternalApps () [0x00000] in <filename
unknown>:0
 at GDocBackupLib.Backup.ExecInternal () [0x00000] in <filename unknown>:0
 at GDocBackupLib.Backup.Exec () [0x00000] in <filename unknown>:0

Interestingly enough I noticed an improvement in the Windows executable.
Previously it would fail on files with an unrecognised format and now it
just detects them as "BIN" and saves them without issue. This is great! :)

Original comment by david.mu...@purehacking.com on 5 Jan 2012 at 10:30

GoogleCodeExporter commented 8 years ago
GDocBackup works fine on my linux (opensuse).
I get your error only when I use a wrong oauth key.
Contact me if you need more help/assistance.
http://gs.fhtino.it/contact
(i'm closing the issue)

Original comment by fht...@gmail.com on 7 Jan 2012 at 9:11