This repository was archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Start command prompts for an OAuth2 login, brings up a 400 error page #11
Copy link
Copy link
Open
Description
When I start up a cluster I'm prompted to do an OAuth2 login but it brings up a 400:
$ ./compute_cluster_for_hadoop.py start my-project-name my-hadoop-bucket 5
2014-05-19 02:10:21,666 [old_run:WARNING] This function, oauth2client.tools.run(), and the use of the gflags library are deprecated and will be removed in a future version of the library.
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&response_type=code&client_id=#####.apps.googleusercontent.com&access_type=offline
If your browser is on a different machine then exit and re-run
this application with the command-line parameter
--noauth_local_webserver
After this Chrome launches with the following:
400. That’s an error.
Error: redirect_uri_mismatch
Application: Project Default Service Account
You can email the developer of this application at: admin@withgoogle.com
The redirect URI in the request: http://localhost:8080/ did not match a registered redirect URI
I've tried running gcloud auth login which brings up
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fbigquery+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdevstorage.full_control+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fndev.cloudman+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fsqlservice.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fprediction+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fprojecthosting&redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&response_type=code&client_id=######.apps.googleusercontent.com&access_type=offline
which allows me to login but if I then run the first compute_cluster_for_hadoop.py command again it takes me back to the 400 page.
If I try to use the noauth_local_webserver flag I get an AttributeError triggered by gflags:
$ ./compute_cluster_for_hadoop.py --noauth_local_webserver start my-project-name my-hadoop-bucket 5
Traceback (most recent call last):
File "./compute_cluster_for_hadoop.py", line 230, in <module>
main()
File "./compute_cluster_for_hadoop.py", line 226, in main
ComputeClusterForHadoop().ParseArgumentsAndExecute(sys.argv[1:])
File "./compute_cluster_for_hadoop.py", line 189, in ParseArgumentsAndExecute
params = self._parser.parse_args(argv)
File "/usr/lib/python2.7/argparse.py", line 1690, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1722, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1928, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python2.7/argparse.py", line 1868, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python2.7/argparse.py", line 1796, in take_action
action(self, namespace, argument_values, option_string)
File "./compute_cluster_for_hadoop.py", line 60, in __call__
oauth2client.tools.gflags.FLAGS.auth_local_webserver = False
AttributeError: 'module' object has no attribute 'gflags'
Any ideas?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels