New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 654559 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
User never visited
Closed: Dec 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug



Sign in to add a comment

chromium repo: attempting to access protected data with no configured credentials

Project Member Reported by morsed@google.com, Oct 10 2016

Issue description

OS: Ubuntu
Version: 14.04 LTS


In trying to build a chromium instance to run on a chromebook from my Linux machine, I receive the error listed below.  It happens at this build step: https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/building-chromium-browser#TOC-Run-cros-chrome-sdk- 


The error message directs me to https://cloud.google.com/console#/project where I am already logged in as morsed@google.com, so I am unclear on how I would "sign up for an account."


Perhaps this is a credentialing issue, as was a chromiumOS syncing issue for me: https://bugs.chromium.org/p/chromium/issues/detail?id=643009#c8 



COMMAND ENTERED and ERROR: 

morsed@morsed0:~/chromium/src$ cros chrome-sdk --board=$BOARD
13:51:27: WARNING: GS_ERROR: You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gsutil config" command
to configure gsutil to use these credentials.
 (Temp log for  crbug.com/642986 )
13:51:27: ERROR: cros chrome-sdk failed before completing.
13:51:27: ERROR: return code: 1; command: /usr/local/google/home/morsed/chromium/.cros_cache/common/gsutil_4.19.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cat gs://chromeos-image-archive/veyron_minnie-release/LATEST-8883.0.0
You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gsutil config" command
to configure gsutil to use these credentials.

cwd=None

 
Owner: morsed@chromium.org
Status: Assigned (was: Untriaged)
Have you run "gsutil config" to configure gsutil to use your morsed@google.com credentials?
Project Member

Comment 2 by sheriffbot@chromium.org, Oct 11 2016

Labels: Hotlist-Google

Comment 3 by morsed@google.com, Oct 12 2016

I had, and was getting the error listed in red box at https://cloud.google.com/storage/docs/gsutil_install (Warning: On some Linux distributions...), so now I've installed Google Cloud Storage version of gsutil.  

Now, when I run "gsutil config" I get message saying to run "gcloud auth login" to configure authentication.  That opens a browser window that let's me choose between my @google and @chromium accounts.  I've tried both and get same response "You are now authenticated with the Google Cloud SDK!"  

It doesn't matter which account I choose, when I re-run "morsed@morsed0:~/chromium/src$ cros chrome-sdk --board=$BOARD" I get the following error, now with a message about the new .boto file...


17:33:01: WARNING: GS_ERROR: You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gsutil config" command
to configure gsutil to use these credentials.
 (Temp log for  crbug.com/642986 )
17:33:01: ERROR: cros chrome-sdk failed before completing.
17:33:01: ERROR: return code: 1; command: /usr/local/google/home/morsed/chromium/.cros_cache/common/gsutil_4.19.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cat gs://chromeos-image-archive/veyron_minnie-release/LATEST-8883.0.0
You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gsutil config" command
to configure gsutil to use these credentials.

cwd=None, extra env={'BOTO_CONFIG': '/usr/local/google/home/morsed/.boto'}



I can't seem to get past this error message.  I'm still thinking it has something to do with my user privs, but I've tried going to https://cloud.google.com/console#/project, but can't figure out what I should do there.  Not sure if I'm completely on the wrong track, but I created a Service Account for project "chromeos-gethelp"
Components: -Infra>Git>Admin
Just to make sure... you run "gsutil config" again after running "gcloud auth login" right?

Check your ~/.boto file contains a gs_oauth2_refresh_token.

Other than that I'm out of ideas.  Running the gsutil cat command shown in your log output works for me.

Removing the Infra>Git>Admin component since this isn't a git issue.
Labels: TE-NeedsTriageFromMTV

Comment 6 by morsed@google.com, Oct 13 2016

"gcloud auth login" gives me "You are now authenticated with the Google Cloud SDK!" in a browser window.  if I then again use "gsutil config", I get the following:

morsed@morsed0:~/chromium/src$ gsutil config
CommandException: OAuth2 is the preferred authentication mechanism with the Cloud SDK. Run "gcloud auth login" to configure authentication, unless you want to authenticate with an HMAC access key and secret, in which case run "gsutil config -a".


I checked the .boto file at ~/ and I see an "[OAuth2]" section at the bottom, but everything for that is commented out.  

Comment 7 by morsed@google.com, Oct 13 2016

Not sure if it's relevant, but after I supposedly authorize with "gcloud auth login" it concludes with this in the console:

You are now logged in as [morsed@google.com].
Your current project is [google.com:chromeos-gethelp].  You can change this setting by running:
  $ gcloud config set project PROJECT_ID 


I had chosen chromeos-gethelp as my project at https://cloud.google.com/console#/project during earlier attempts, since it seemed like the only one related to work I'm doing now.  Not sure if chromeos is a problem because I'm trying to do a Simple Chrome build as explained here: https://docs.google.com/document/d/1N7MfH_2mI40RBQEwflEqfNaHXNhSNq0o0pD9uyEcsfg/edit# 

Comment 8 by morsed@google.com, Nov 2 2016

Cc: abodenha@chromium.org

Comment 9 Deleted

Comment 10 by morsed@google.com, Dec 2 2016

Status: Unconfirmed (was: WontFix)
This is still a bug in trying to build "simple chrome" (https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/building-chromium-browser#TOC-Run-cros-chrome-sdk-) 

I get the error above, then run "gcloud auth login" which opens a browser window, I select morsed@chromium.org account, and end up on a page that says, "You are now authenticated with the Google Cloud SDK!"  But, when I try running "$ cros chrome-sdk --board=veyron_minnie" again, I get the same error.  

I can go through this cycle repeatedly with no change in results.

I've tried deleting the entire chromium repo and reinstalling  (https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md), but that does not help. 

Don't know if it's related, but I am able to fully build, run, and update chromium as per steps at https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md 


Not sure what status of this bug should be, nor labels.  Set at "unconfirmed" for now.
Project Member

Comment 11 by sheriffbot@chromium.org, Dec 11 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment