Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
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)
- 403 on https://acd-cli-oa-backup.appspot.com/ and https://tensile-runway-92512.appspot.com/ HOT 3
- rsync fails HOT 1
- Can't seem to be successful in authorising acd_cli again HOT 29
- Error getting account quota data. HOT 2
- Refreshing authentication token - Unauthorized HOT 2
- acd_cli does not link to the new authorisation site HOT 9
- I have error: RequestError: 1004, Error refreshing authentication token HOT 9
- RequestError: 400 {"message":"Cannot complete upload"} & RequestError: 400 {"message":"Cannot read from request."} HOT 13
- [ERROR] [acd_cli] - Root node not found. Sync may have been incomplete. HOT 13
- SSL: CERTIFICATE_VERIFY_FAILED HOT 2
- Folder "{ID}" already exists HOT 3
- Difficulties for initial configuration of Acd_cli HOT 2
- How to purge dangling parents? HOT 2
- Rate Exceeded HOT 82
- No Body Received HOT 5
- Amazon is removing unlimited plan HOT 7
- 404 after acd_cli init HOT 2
- 404 when running acd_cli init (or sync or mount) with 'simple' authentication HOT 8
- AndroidTV support
- is this project dead ? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acd_cli.