Skip to content
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

Unable to use files-* #100

Open
bolduc opened this issue Jun 11, 2019 · 0 comments
Open

Unable to use files-* #100

bolduc opened this issue Jun 11, 2019 · 0 comments

Comments

@bolduc
Copy link

bolduc commented Jun 11, 2019

Describe the bug
Unable to use any of the files-* scripts to upload/download/copy or even view file permissions to/from the iplantc.org tenant.

$ files-cp single_genome.faa agave://data.iplantcollaborative.org/bbolduc-iplant-2015/
Refreshing token...
Traceback (most recent call last):
  File "/Users/bolduc.10/Research/miniconda3/envs/CyVerse/bin/files-cp", line 60, in <module>
    agave.refresh_tokens()
  File "/Users/bolduc.10/Research/miniconda3/envs/CyVerse/lib/python3.7/site-packages/agavepy-0.9.3-py3.7.egg/agavepy/agave.py", line 813, in refresh_tokens
    self.api_key, self.api_secret, self.refresh_token, self.api_server)
  File "/Users/bolduc.10/Research/miniconda3/envs/CyVerse/lib/python3.7/site-packages/agavepy-0.9.3-py3.7.egg/agavepy/tokens/refresh_tokens.py", line 53, in refresh_token
    handle_bad_response_status_code(resp)
  File "/Users/bolduc.10/Research/miniconda3/envs/CyVerse/lib/python3.7/site-packages/agavepy-0.9.3-py3.7.egg/agavepy/utils/response_handlers.py", line 28, in handle_bad_response_status_code
    raise AgaveAPICallError(error_msg)
agavepy.utils.response_handlers.AgaveAPICallError: "Bad POST request to https://agave.iplantc.org/token, status code 400\ngrant_type=refresh_token&refresh_token=dfe5cfffba61ca92601143127b710cf&scope=PRODUCTION\n{'error': 'invalid_grant', 'error_description': 'Provided Authorization Grant is invalid.'}\n"

However, all other scripts appear to be working: auth-, apps-, jobs-, clients-, profiles- and systems-. i.e.

$ tenants-list
Token has expired. Automatically refreshing...
3dem
agave.prod
araport.org
bridge
designsafe
iplantc.org
irec
portals
sd2e
sgci
tacc.prod
vdjserver.org

So I can submit and view jobs, add new apps and update user & (private) system permissions, search user profiles, etc. But anything interacting with a file on a remote system is a no-go.

Interestingly, all the working scripts can use the -V flag for very verbose mode and it prints out the curl command. This does not happen for the files- scripts.

$ files-cp -V single_genome.faa agave://data.iplantcollaborative.org/bbolduc-iplant-2015/
usage: files-cp [-h] [-c CACHEDIR] source destination
files-cp: error: unrecognized arguments: -V

Not sure if that's somehow related or a separate bug. It seems too coincidental.

To Reproduce
Using any of the files- scripts...

Expected behavior
I expect files to be copied to and/or from local machine to the remote storage system.

Desktop (please complete the following information):

  • macOS Mojave
  • 10.14.5

Additional information
I've uninstalled agavepy and agave-cli, and installed into a fresh environment. No changes.

Thanks!

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

1 participant