New issue
Advanced search Search tips

Issue 734448 link

Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

cros flash permission denied

Project Member Reported by uekawa@chromium.org, Jun 19 2017

Issue description

cros flash seems to fail with 

$ cros flash usb:// xbuddy://remote/caroline/lates\
t-stable --no-ping --clobber-stateful                                                                                                                                
Removable device(s) found. Please select/confirm to continue:                                                                                                        
  [0]: Patriot Memory 29.5G (/dev/sdc)                                                                                                                               
Please choose an option [0-0]: 0                                                                                                                                     
11:28:58: ERROR: cros flash failed before completing.                                                                                                                
11:28:58: ERROR: [Errno 13] Permission denied: '/mnt/host/source/devserver/static/caroline-release/R59-9460.64.0'   


The directory /mnt/host/source/devserver/static/caroline-release/ is owned by root:root and I have previously used ssh:// methods successfully.
Seems like usb:// method requires user privilege?

workaround seems to be:
sudo chown -R uekawa:eng /mnt/host/source/devserver/static/caroline-release/  

 
Status: Unconfirmed (was: Untriaged)
The bug has a workaround right now. There's no reason to believe that cros flash actually broke permissions.

Need repro / confirmation of the bug / debug logs to make progress.

Comment 2 by uekawa@chromium.org, Sep 20 2017

now I have the same problem happen again with caroline-bertha-release.

/mnt/host/source/devserver/static/caroline-bertha-release/
is owned by root:root, not visible from outside chroot, and seems like we no longer have sudo inside chroot ?


Comment 3 by uekawa@chromium.org, Sep 20 2017

I seem to have access to sudo now after re-entering cros_sdk chroot. weird.

Comment 4 by uekawa@google.com, Sep 25 2017

reproduced on a peer's machine and I hear this from time to time.

Comment 5 Deleted

Comment 6 Deleted

Components: -Infra>Client>ChromeOS Infra>Client>ChromeOS>Build
are people still seeing this ?  is cros flash being run inside the sdk or only outside of it ?

Sign in to add a comment