problem with chromite/bin/cros_sdk initializing with latest sources in ubuntu 12.04

641 views
Skip to first unread message

Ashish S

unread,
Dec 24, 2012, 12:35:36 AM12/24/12
to chromiu...@chromium.org
Hello...

i am experiencing the following error upon executing cros_sdk on ubuntu 12.04.. seems to be some sudo issue?? (i am on a fresh chromiumos checkout.. just 3 days back.)

any help will be appreciated..

Thanks...

ERROR:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ABC@ABC-HP:/media/B/ashish/chromiumosLatest$ ./chromite/bin/cros_sdk 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  351M  100  351M    0     0   167k      0  0:35:49  0:35:49 --:--:--  193k

INFO    cros_sdk:make_chroot: Unpacking STAGE3...
INFO    cros_sdk:make_chroot: Set timezone...
INFO    cros_sdk:make_chroot: Adding user/group...

INFO    cros_sdk:make_chroot: Setting up mounts...
INFO    cros_sdk:make_chroot: Running init_setup()...
INFO    cros_sdk:make_chroot: Setting up hosts/resolv...
INFO    cros_sdk:make_chroot: Setting up /etc/make.*...
INFO    cros_sdk:make_chroot: Running post-inst configuration hacks
>>> Regenerating /etc/ld.so.cache...
lrwxrwxrwx 1 root    root      91 2012-12-21 18:44 /etc/make.conf -> /home/ABC/trunk/src/third_party/chromiumos-overlay/chromeos/config/make.conf.amd64-host
lrwxrwxrwx 1 root    root      63 2012-12-21 18:44 /etc/make.profile -> /usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0

/usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0:
total 32
drwxr-xr-x 3 ABC chronos 4096 2012-12-20 20:48 chromeos
drwxr-xr-x 2 ABC chronos 4096 2012-12-20 20:48 desktop
drwxr-xr-x 2 ABC chronos 4096 2012-12-20 20:48 developer
-rw-r--r-- 1 ABC chronos    2 2012-12-20 20:48 eapi
-rw-r--r-- 1 ABC chronos  410 2012-12-20 20:48 make.defaults
drwxr-xr-x 2 ABC chronos 4096 2012-12-20 20:48 no-multilib
-rw-r--r-- 1 ABC chronos   29 2012-12-20 20:48 parent
drwxr-xr-x 2 ABC chronos 4096 2012-12-20 20:48 server
INFO    cros_sdk:make_chroot: Updating portage

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)


>>> Jobs: 0 of 0 complete                           Load avg: 0.91, 0.46, 0.40
INFO    cros_sdk:make_chroot: Updating host toolchain
Starting fast-emerge.
 Building package crossdev on root
Calculating deps...
Deps calculated in 0m0.9s

Total: 0 packages, Size of downloads: 0 kB
Done
Determining required toolchain updates...
Nothing to update!
Nothing to clean!
INFO    cros_sdk:make_chroot: Deselecting dhcpcd
>>> No matching atoms found in "world" favorites file...
INFO    cros_sdk:make_chroot: Running emerge curl sudo ...
Starting fast-emerge.
 Building package pbzip2 dev-libs/openssl net-misc/curl sudo on root
Calculating deps...
Deps calculated in 0m1.0s

Total: 0 packages, Size of downloads: 0 kB
Done
sudo: must be setuid root
sudo: must be setuid root
/home/ABC/trunk/src/scripts/run_chroot_version_hooks: line 33: /etc/cros_chroot_version: Permission denied
INFO    : Chroot of unknown version, initializing to 0
sudo: must be setuid root
sudo: must be setuid root
/home/ABC/trunk/src/scripts/run_chroot_version_hooks: line 33: /etc/cros_chroot_version: Permission denied
/home/ABC/trunk/src/scripts/run_chroot_version_hooks: line 73: /etc/cros_chroot_version: No such file or directory
ERROR   : Your chroot version file /etc/cros_chroot_version is bogus: 
ERROR   : script called:  '--skip_toolchain_update' '--usepkg' '--fast'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :   file update_chroot, line 48, called: die_err_trap '${SCRIPTS_DIR}/run_chroot_version_hooks' '1'
ERROR   : 
ERROR   : Command failed:
ERROR   :   Command '${SCRIPTS_DIR}/run_chroot_version_hooks' exited with nonzero code: 1
ERROR   :   (Note bash sometimes misreports "command not found" as exit code 1 instead of 127)
Running ['/media/B/ashish/chromiumosLatest/src/scripts/sdk_lib/make_chroot.sh', '--stage3_path', '/media/B/ashish/chromiumosLatest/.cache/sdks/cros-sdk-20.12.12.012120.tar.xz', '--chroot', '/media/B/ashish/chromiumosLatest/chroot', '--cache_dir', '/media/B/ashish/chromiumosLatest/.cache'] failed!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Brian Harring

unread,
Dec 24, 2012, 12:44:48 AM12/24/12
to Ashish S, Chromium OS dev
The checkout cannot be on nfs- strongly looks like you're doing exactly that.

~brian


--
--
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
 
 
 

Ashish S

unread,
Dec 24, 2012, 1:39:52 AM12/24/12
to chromiu...@chromium.org, Ashish S
Hello Brian

/media/B/ashish/chromiumosLatest is not a nfs mount point but a hdd mounted there.. there is no nfs here.. and i am mounting by clicking in nautilus.. if any specific mount paramerers that i have to give for mounting please suggest.

Thanks.

Mike Frysinger

unread,
Dec 24, 2012, 2:25:07 PM12/24/12
to Ashish S, chromium-os-dev
then maybe the permissions are messed up like you're using fuse to
mount and so all permissions get squashed to your uid

make sure the mount point is mounted "normally" and not with fuse
bound to your uid, and then reinstall the chroot

cros_sdk --delete && cros_sdk
-mike

sure...@gmail.com

unread,
May 11, 2013, 5:58:28 PM5/11/13
to chromiu...@chromium.org, Ashish S
I'm having this problem with a one month old laptop running ubuntu 12.10, I'm checking out directly to my home folder on my local drive. I haven't had time with the computer yet to break the permissions so I'm not sure what to think.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages