Skip to content

[OneDrive v2] - Failed to authorize using the OAuth service: Server error. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
serotonie opened this issue Jun 13, 2022 · 17 comments
Closed

Comments

@serotonie
Copy link

Hi there,

I used the OneDrive v2 Backend for a couple of months now without any problem.
Since yesterday, I'm getting the following error :
Failed to authorize using the OAuth service: Server error. If the problem persists, try generating a new authid token from: https://duplicati-oauth-handler.appspot.com?type=onedrivev2

Could it be that the new handling for jottacloud changed something with OneDrive that make it not working any more ?

I'm running Duplicati on Docker with the linuxserver container and don't now exactly where are the logs to provide you with more details on the issue.

Thanks in Advance :)

@Chartman123
Copy link

Chartman123 commented Jun 13, 2022

Duplicati.Library.Interface.UserInformationException: Autorisation mit dem OAuth Service ist fehlgeschlagen: Server error. Wenn das Problem weiter besteht, versuche ein neues AuthID Token zu generieren von: https://duplicati-oauth-handler.appspot.com?type=onedrivev2 ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <6bc04dcac0a443ee834a449c98b8ed9d>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <6bc04dcac0a443ee834a449c98b8ed9d>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest+AsyncWrapper.GetResponseOrStream () [0x0004d] in <2a3ee711c7c04f6c957360f2cf183a7f>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest.GetResponse () [0x00044] in <2a3ee711c7c04f6c957360f2cf183a7f>:0 
  at Duplicati.Library.JSONWebHelper.GetResponse (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x000c9] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.JSONWebHelper.ReadJSONResponse[T] (Duplicati.Library.Utility.AsyncHttpRequest req, System.Object requestdata) [0x00000] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.JSONWebHelper.ReadJSONResponse[T] (System.Net.HttpWebRequest req, System.Object requestdata) [0x00007] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.OAuthHelper.GetTokenResponse[T] () [0x00040] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.OAuthHelper.get_AccessToken () [0x0002f] in <fd6b26d6c1004933aab594493968119c>:0 
   --- End of inner exception stack trace ---
  at Duplicati.Library.OAuthHelper.get_AccessToken () [0x00169] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.OAuthHelper.CreateRequest (System.String url, System.String method, System.Boolean noAuthorization) [0x00027] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.OAuthHelper.CreateRequest (System.String url, System.String method) [0x00000] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.JSONWebHelper.GetResponseWithoutException (System.String url, System.Object requestdata, System.String method) [0x00020] in <fd6b26d6c1004933aab594493968119c>:0 
  at Duplicati.Library.Backend.MicrosoftGraphBackend.SendRequest[T] (System.Net.Http.HttpMethod method, System.String url) [0x00032] in <dfa9574ee8124175856109d811c0b28b>:0 
  at Duplicati.Library.Backend.MicrosoftGraphBackend.Get[T] (System.String url) [0x00006] in <dfa9574ee8124175856109d811c0b28b>:0 
  at Duplicati.Library.Backend.MicrosoftGraphBackend.Test () [0x00017] in <dfa9574ee8124175856109d811c0b28b>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.TestConnection (System.String url, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x000b7] in <156011ea63b34859b4073abdbf0b1573>:0 
  at Duplicati.Server.WebServer.RESTMethods.RemoteOperation.POST (System.String key, Duplicati.Server.WebServer.RESTMethods.RequestInfo info) [0x00094] in <156011ea63b34859b4073abdbf0b1573>:0 
  at Duplicati.Server.WebServer.RESTHandler.DoProcess (Duplicati.Server.WebServer.RESTMethods.RequestInfo info, System.String method, System.String module, System.String key) [0x00289] in <156011ea63b34859b4073abdbf0b1573>:0 

I also tried to create and use a new AuthID, but still not working. The problem exists in beta release as well as in latest canary.

@mrtnbr
Copy link

mrtnbr commented Jun 13, 2022

I have the same issue.

@ddevenport
Copy link

I have the same issue with Google Drive. Working for months until today. Version 2.0.6.3_beta_2021-06-17.

@quintingsnj
Copy link

Same issue here. Version 2.0.6.3_beta_2021-06-17.

Logs look the same as Chartman123

@happyhammer7
Copy link

same issue here as well, currently running Duplicati - 2.0.6.3_beta_2021-06-17

@thelaoshi
Copy link

Same issue with all my duplicati setups (using google drive).

@ts678
Copy link

ts678 commented Jun 13, 2022

@kenkendk

@albertony or @jthall might be able to consult on this. I'm also asking if they can use their own server for other tests.

OAuth Issues affecting multiple storage providers

My snooping with .NET Framework network tracing showed the server returning 500, but I can't tell which one was hit.

@MikeLaude
Copy link

MikeLaude commented Jun 13, 2022

2:38pm PDT. Verified 2.0.6.3_beta_2021-06-17 works backing up to OneDrive! Awesome!

@maurice-w
Copy link

Same issue here. Daily backup to OneDrive for Business suddenly stopped working after more than two years. Creating new AuthID doesn't help.

@Chartman123
Copy link

Please only post comments when you have something to add to this discussion. Otherwise just use the thumbs up on the first post :)

@kenkendk
Copy link
Member

Sorry, merged a PR yesterday and that seems to have broken things. Will try to fix it now.

@albertony
Copy link
Contributor

albertony commented Jun 13, 2022

Yes, really sorry about that (it was my PR that was merged).
I have just now submitted a patch which I'm pretty sure fixes it, see: #9

@kenkendk
Copy link
Member

It is now fixed, it was a _ that should have been -.

@happyhammer7
Copy link

Just tested it and all working well my end using Google Drive on Duplicati. Thank you for the quick resolution. These things happen

@kenkendk
Copy link
Member

@albertony you fixed it same time as me :)

@albertony
Copy link
Contributor

@albertony you fixed it same time as me :)

Yes! Two separate patches, 100% identical, should give us some confidence we're on the right track at least! 😄

@serotonie
Copy link
Author

Thanks a lot guys !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests