cros_sdk fails (~/chromiumos/chroot/var/lock': No such file or directory)

137 views
Skip to first unread message

Rohit Makasana

unread,
Nov 3, 2012, 4:12:05 PM11/3/12
to chromiu...@chromium.org
I am setting up chromiumos code on my new Z620 machine. After repo sync, when I try cros_sdk to build a chroot, I get this error.

~/chromiumos$ cros_sdk 
chmod: cannot access `/usr/local/FASTMAN/code/chromiumos/chroot/var/lock': No such file or directory
ERROR   cros_sdk:enter_chroot: script called:  '--chroot' '/usr/local/FASTMAN/code/chromiumos/chroot' '--cache_dir' '/usr/local/FASTMAN/code/chromiumos/.cache'
ERROR   cros_sdk:enter_chroot: Backtrace:  (most recent call is last)
ERROR   cros_sdk:enter_chroot:   file enter_chroot.sh, line 92, called: die_err_trap 'chmod 0777 "$FLAGS_chroot/var/lock"' '1'
ERROR   cros_sdk:enter_chroot: 
ERROR   cros_sdk:enter_chroot: Command failed:
ERROR   cros_sdk:enter_chroot:   Command 'chmod 0777 "$FLAGS_chroot/var/lock"' exited with nonzero code: 1

Thanks,
Rohit

Zdenek Behan

unread,
Nov 4, 2012, 9:36:58 PM11/4/12
to Rohit Makasana, chromiu...@chromium.org
Seems like you already have a chromiumos/chroot/ directory but its contents are not valid. That could happen if you previously tried to make a chroot but interrupted it or just created the 'chroot' directory manually. Removing it (rm -rf '/usr/local/FASTMAN/code/chromiumos/chroot') should get you further. Naturally, make sure you have nothing important in that directory first.
 

Thanks,
Rohit

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
 
 
 

Rohit Makasana

unread,
Nov 4, 2012, 10:36:27 PM11/4/12
to chromiu...@chromium.org, Rohit Makasana


On Sunday, November 4, 2012 6:37:03 PM UTC-8, Zdenek Behan wrote:
On Sat, Nov 3, 2012 at 9:12 PM, Rohit Makasana <roh...@google.com> wrote:
I am setting up chromiumos code on my new Z620 machine. After repo sync, when I try cros_sdk to build a chroot, I get this error.

~/chromiumos$ cros_sdk 
chmod: cannot access `/usr/local/FASTMAN/code/chromiumos/chroot/var/lock': No such file or directory
ERROR   cros_sdk:enter_chroot: script called:  '--chroot' '/usr/local/FASTMAN/code/chromiumos/chroot' '--cache_dir' '/usr/local/FASTMAN/code/chromiumos/.cache'
ERROR   cros_sdk:enter_chroot: Backtrace:  (most recent call is last)
ERROR   cros_sdk:enter_chroot:   file enter_chroot.sh, line 92, called: die_err_trap 'chmod 0777 "$FLAGS_chroot/var/lock"' '1'
ERROR   cros_sdk:enter_chroot: 
ERROR   cros_sdk:enter_chroot: Command failed:
ERROR   cros_sdk:enter_chroot:   Command 'chmod 0777 "$FLAGS_chroot/var/lock"' exited with nonzero code: 1

Seems like you already have a chromiumos/chroot/ directory but its contents are not valid. That could happen if you previously tried to make a chroot but interrupted it or just created the 'chroot' directory manually. Removing it (rm -rf '/usr/local/FASTMAN/code/chromiumos/chroot') should get you further. Naturally, make sure you have nothing important in that directory first.
You are right. I created the chroot dir manually to copy my home directory .ssh content in it. This all before running cros_sdk for the first time, so deleting the manually created chroot dir resolved the problem. My Bad.

Thanks!
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages