Coder Social home page Coder Social logo

Comments (9)

chrisidefix avatar chrisidefix commented on September 2, 2024

UPDATE: after uploading about 100 GB I am receiving the same error again within a few hours of having this problem initially. Any idea what might be going on here? Is it possible that Amazon is resetting the oauth_token or what could this be related to?

PS: after deleting the cache (again) and downloading a new oauth_token I can continue to upload

from acd_cli.

yadayada avatar yadayada commented on September 2, 2024

The next time this happens, please check that the oauth_data file in your cache directory is correct.

Aside from this, this is basically the indended behavior when the access token cannot be refreshed. There is nothing I can do about a connection error.

But I will wrap the connection error so the exception can be caught and the upload/download queue can potentially process further jobs (and retry the token refresh).

from acd_cli.

chrisidefix avatar chrisidefix commented on September 2, 2024

How do I check if oauth_data is correct? It's been in the cache directory since I started using acd_cli and I never changed it. For now I have to keep replacing it every couple of hours. Do you know from the error if the connection error happens with an amazon domain or with https://tensile-runway-92512.appspot.com ? I would like to figure out what is going on if possible.

from acd_cli.

yadayada avatar yadayada commented on September 2, 2024

You will simply see if there is something wrong. It needs to be refreshed every hour.
It should look something like the below block basically, with one additional field and longer tokens.

{
    "token_type": "bearer",
    "expires_in": 3600,
    "refresh_token": "Atzr|IQEBLzAtAhUAibmh-1N0EVztZJofMx",
    "access_token": "Atza|IQEBLjAsAhQ3yD47Jkj09BfU_qgNk4"
}

The connection error tells me nothing. There should always be a response from the appspot server, even an empty response on error.
I also had a quick look at the server logs and didn't find any failed requests, purely judging from the response length.

Maybe it's a threading error.

from acd_cli.

chrisidefix avatar chrisidefix commented on September 2, 2024

My oauth_data looks like you describe it and fine from what I can see (it has exp_time: set as well)

Maybe it's a threading error.

Possibly, but this is not (only) happening when running multiple threads. I actually first saw this error on calling acd_cli.py s (after not using acd_cli.py for a day or two, I wanted to sync again).

Now, this is a repetitive problem for me. Uploading works for a while, but as soon as this error has occurred once (usually while uploading), all I can do is replace oauth_data and restart the uploads. I don't understand why a new oauth_data fixes this, but it does.

Or does this mean that right now I can not refresh the token at all and it probably only works for 3600 seconds, because it doesn't need to refresh during the first hour after generation of oauth_data?

from acd_cli.

chrisidefix avatar chrisidefix commented on September 2, 2024

During upload (with `acd_cli.py -x 8) I get this error:

15-05-21 19:04:37.065 [ERROR] [acdcli.api.oauth] - Error refreshing authentication token.
15-05-21 19:04:37.066 [ERROR] [acd_cli] - Uploading "test_file.txt" failed. Code: 1000, msg: ('Connection aborted.', OSError(64, 'Host is down'))

Even if I try uploading with a single thread or syncing after this happens, it just doesn't work.

from acd_cli.

yadayada avatar yadayada commented on September 2, 2024

How should it work? Nothing can work with an outdated access token that cannot be refreshed.

Maybe it's a threading error.

Possibly,

Nope. If the data is intact, that shouldn't be it.

What does

python3 -c 'import requests; r = requests.post("https://tensile-runway-92512.appspot.com"); print(r.text, r.status_code)'

output?

The debug option could also shed more light on the connection error.

from acd_cli.

chrisidefix avatar chrisidefix commented on September 2, 2024

Thanks for looking into this. The above command seems to produce the same error. I assume it must be a problem on my side in this case. Maybe my firewall is acting up - I am going to re-install it and see if that helps anything.

from acd_cli.

chrisidefix avatar chrisidefix commented on September 2, 2024

Alright, I managed to re-install my firewall, which appeared to have blocked connections to the appspot.com address and crashed it's UI at the same time, so I didn't receive any info about this.

You are welcome to close this issue. Thanks for your help!

from acd_cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.