{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/376","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/376/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/376/events","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/376","id":168906661,"number":376,"title":"gsutil not using gcloug oauth details","user":{"login":"dombarnes","id":511773,"avatar_url":"https://avatars.githubusercontent.com/u/511773?v=3","gravatar_id":"","url":"https://api.github.com/users/dombarnes","html_url":"https://github.com/dombarnes","followers_url":"https://api.github.com/users/dombarnes/followers","following_url":"https://api.github.com/users/dombarnes/following{/other_user}","gists_url":"https://api.github.com/users/dombarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dombarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dombarnes/subscriptions","organizations_url":"https://api.github.com/users/dombarnes/orgs","repos_url":"https://api.github.com/users/dombarnes/repos","events_url":"https://api.github.com/users/dombarnes/events{/privacy}","received_events_url":"https://api.github.com/users/dombarnes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-02T14:55:15Z","updated_at":"2016-08-02T21:09:43Z","closed_at":null,"body":"I can't seem to get gsutil to use the oAuth2.0 credentials that gcloud is using.\r\n````\r\nYour \"Oauth 2.0 User Account\" credentials are invalid. Please run\r\n  $ gcloud auth login\r\nFailure: unauthorized_client.\r\n````\r\nI used to have gsutil installed via pip and with 4.20 installed, I can do ````gsutil config```` and then it works fine.\r\nWhen installing from with the Cloud SDK \r\n````curl https://sdk.cloud.google.com | bash````\r\nI then run ````gcloud auth login```` go through those steps, and gcloud reports logged in.\r\n\r\nGcloud info\r\n````\r\nGoogle Cloud SDK [119.0.0]\r\n\r\nPlatform: [Mac OS X, x86_64]\r\nPython Version: [2.7.12 (default, Jun 29 2016, 14:05:02)  [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]]\r\nPython Location: [/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]\r\nSite Packages: [Disabled]\r\n\r\nInstallation Root: [/Users/domster83/google-cloud-sdk]\r\nInstalled Components:\r\n  core: [2016.07.21]\r\n  core-nix: [2016.03.28]\r\n  gcloud: []\r\n  gsutil-nix: [4.18]\r\n  gsutil: [4.19]\r\n  bq: [2.0.24]\r\n  bq-nix: [2.0.24]\r\nSystem PATH: [/Users/domster83/.rbenv/shims:/Users/domster83/google-cloud-sdk/bin:/Users/domster83/laptop/bin:~/bin:/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:usr/local/heroku/bin:/usr/local/sbin:/usr/local/lib/node_modules:/Users/domster83/projects/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]\r\nCloud SDK on PATH: [True]\r\n\r\nInstallation Properties: [/Users/domster83/google-cloud-sdk/properties]\r\nUser Config Directory: [/Users/domster83/.config/gcloud]\r\nActive Configuration Name: [default]\r\nActive Configuration Path: [/Users/domster83/.config/gcloud/configurations/config_default]\r\n\r\nAccount: [my@email.com]\r\nProject: [my-bucket]\r\n\r\nCurrent Properties:\r\n  [core]\r\n    project: [my-bucket]\r\n    account: [my@email.com]\r\n    disable_usage_reporting: [False]\r\n\r\nLogs Directory: [/Users/domster83/.config/gcloud/logs]\r\nLast Log File: [/Users/domster83/.config/gcloud/logs/2016.08.02/15.49.49.740983.log]\r\n````\r\ngsutil -D\r\n````\r\ngsutil version: 4.19\r\nchecksum: 67da5fbdef140f1663fbb11e96bb9f90 (OK)\r\nboto version: 2.39.0\r\npython version: 2.7.12 (default, Jun 29 2016, 14:05:02) [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]\r\nOS: Darwin 16.0.0\r\nmultiprocessing available: True\r\nusing cloud sdk: True\r\nconfig path: /Users/domster83/.boto\r\ngsutil path: /Users/domster83/google-cloud-sdk/platform/gsutil/gsutil\r\ncompiled crcmod: True\r\ninstalled via package manager: False\r\neditable install: False\r\nCommand being run: /Users/domster83/google-cloud-sdk/platform/gsutil/gsutil -o GSUtil:default_project_id=trilbytv-1191 -D\r\nconfig_file_list: ['/Users/domster83/.boto']\r\nconfig: [('debug', '0'), ('working_dir', '/mnt/pyami'), ('https_validate_certificates', 'True'), ('debug', '0'), ('working_dir', '/mnt/pyami'), ('content_language', 'en'), ('default_api_version', '2'), ('default_project_id', 'my-bucket')]\r\n````\r\nI've already updated boto to 2.42.0 via pip, tried reinstalling the cloud-sdk in another location. \r\n\r\nI feel like I'm going round in circles."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/comments/237044864","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/376#issuecomment-237044864","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/376","id":237044864,"user":{"login":"thobrla","id":3239120,"avatar_url":"https://avatars.githubusercontent.com/u/3239120?v=3","gravatar_id":"","url":"https://api.github.com/users/thobrla","html_url":"https://github.com/thobrla","followers_url":"https://api.github.com/users/thobrla/followers","following_url":"https://api.github.com/users/thobrla/following{/other_user}","gists_url":"https://api.github.com/users/thobrla/gists{/gist_id}","starred_url":"https://api.github.com/users/thobrla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thobrla/subscriptions","organizations_url":"https://api.github.com/users/thobrla/orgs","repos_url":"https://api.github.com/users/thobrla/repos","events_url":"https://api.github.com/users/thobrla/events{/privacy}","received_events_url":"https://api.github.com/users/thobrla/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T21:09:43Z","updated_at":"2016-08-02T21:09:43Z","body":"I do think there is bug here - when looking for the config path, we break when discovering the first valid file, but multiple files could be specified via the BOTO_PATH variable (which is how gcloud passes credentials to gsutil)."}}
{"actor":{"display_login":"thobrla"}}