package.provided ACL's seem to be bad

304 views
Skip to first unread message

Jeff Mendoza

unread,
Jul 31, 2017, 12:46:00 AM7/31/17
to Chromium OS discuss
I'm trying to 'dev_install' on my old chromebook, and am running into trouble downloading the package.provided. Full url of that it is downloading:


Trying to download in the browser shows:
<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>
Anonymous users does not have storage.objects.get access to object chromeos-dev-installer/board/daisy/canary-R60-9592.71.0/packages/package.provided.
</Details>
</Error>

I'm not using any sort of CHROMEOS_DEVSERVER, so the fallback code is not run in the script.

I'm on the beta channel "Version 60.0.3112.80 (Official Build) beta (32-bit)"

Has anyone run into this? Do I need to be on the dev channel? Thanks!

Mike Frysinger

unread,
Jul 31, 2017, 2:24:06 PM7/31/17
to jefflm...@gmail.com, Chromium OS discuss
hmm, the file doesn't actually exist.  when the default ACL denies listing access, and you try to access a file that doesn't exist, that ACL kicks in.  so you can't differentiate between "file exists but i can't read it" and "file doesn't exist" since it's an information leak.

seems to me that dev-install handles this scenario gracefully (even if the output is less than ideal).

so i guess your report is more than the dev-install output is confusing ?
-mike

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


Jeff Mendoza

unread,
Jul 31, 2017, 3:36:07 PM7/31/17
to Mike Frysinger, Chromium OS discuss
Oh no, it moves on to 'install_optional_package' and then fails. Looks like emerge doesn't work without this configuration file. Found the code here: https://chromium.googlesource.com/chromiumos/platform/dev-util/+/master/dev-install/dev_install#165
I don't have my chromebook with me right now, I can get the actual emerge error text tonight.

--
--
Chromium OS discuss mailing list: chromium-...@chromium.org

Mike Frysinger

unread,
Jul 31, 2017, 3:37:56 PM7/31/17
to Jeff Mendoza, Chromium OS discuss
i suspect the actual failure is something else.  if you can copy & paste the full log, it'd help.
-mike

--
--
Chromium OS discuss mailing list: chromium-os-discuss@chromium.org

Jeff Mendoza

unread,
Jul 31, 2017, 8:06:35 PM7/31/17
to Mike Frysinger, Chromium OS discuss
Here is the failure
...
Extracting /usr/local/portage/packages/net-misc/dhcp-4.2.2-r3.tbz2
Files downloaded, configuring emerge.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 403 Forbidden
Emerge installation complete. Installing additional optional packages.
!!! PORTAGE_BINHOST unset, but use is requested.
emerge: incomplete set configuration, missing set(s): "selected", "system", and "world"
        This usually means that '/usr/share/portage/config/sets/portage.conf'
        is missing or corrupt.
        Falling back to default world and system set configuration!!!
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "gmerge".

emerge: searching for similar names... nothing similar found.
chronos@localhost / $ 
chronos@localhost / $ sudo emerge gmerge
!!! PORTAGE_BINHOST unset, but use is requested.
emerge: incomplete set configuration, missing set(s): "selected", "system", and "world"
        This usually means that '/usr/share/portage/config/sets/portage.conf'
        is missing or corrupt.
        Falling back to default world and system set configuration!!!
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "gmerge".

emerge: searching for similar names... nothing similar found.
chronos@localhost / $ 
Some poking around:
chronos@localhost / $ find /usr/local -name make.conf
find: `/usr/local/var/log/sandbox': Permission denied
/usr/local/etc/portage/make.profile/make.conf
/usr/local/etc/portage/make.conf
chronos@localhost / $ cat /usr/local/etc/portage/make.conf
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Get the default configuration.
source /usr/local/share/portage/config/make.globals

# Include overrides for using /usr/local.
source /usr/local/etc/portage/make.profile/make.defaults

PORTAGE_BINHOST=https://commondatastorage.googleapis.com/chromeos-dev-installer/board/daisy/canary-R60-9592.71.0/packages
chronos@localhost / $ cat /usr/local/etc/portage/make.profile/make.conf
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Get the default configuration.
source /usr/local/share/portage/config/make.globals

# Include overrides for using /usr/local.
source /usr/local/etc/portage/make.profile/make.defaults

chronos@localhost / $ 
I tried "tail -n 1 /usr/local/etc/portage/make.conf | sudo tee -a /usr/local/etc/portage/make.profile/make.conf" but that did not seem to help.
Chromium OS discuss mailing list: chromium-...@chromium.org

Mike Frysinger

unread,
Aug 1, 2017, 2:34:51 PM8/1/17
to Jeff Mendoza, Chromium OS discuss
we've been wanting to kill gmerge.  we should prob accelerate that if it's causing issues.
-mike

Chromium OS discuss mailing list: chromium-os-discuss@chromium.org

Ward Weistra

unread,
Dec 29, 2017, 5:48:33 PM12/29/17
to Chromium OS discuss, jefflm...@gmail.com
Hi all,

When running dev_install --reinstall as sudo I get the same as Jeff above:

localhost ~ # dev_install --reinstall
To clean up, we will run:
  rm
-rf /usr/local/
Any content you have stored in there will be deleted.
Remove all installed packages now? (y/N) y
Removed all installed packages.
Reinstalling emerge.
Starting installation of developer packages.
First, we download the necessary files.
Downloading https://commondatastorage.googleapis.com/chromeos-dev-installer/board/eve/canary-R62-9901.77.0/packages/app-admin/python-updater-0.11.tbz2

 
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 
Dload  Upload   Total   Spent    Left  Speed
100 21844  100 21844    0     0  21844      0  0:00:01 --:--:--  0:00:01  107k
Extracting /usr/local/portage/packages/app-admin/python-updater-0.11.tbz2
[...]

 
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 
Dload  Upload   Total   Spent    Left  Speed
100 3513k  100 3513k    0     0  3513k      0  0:00:01 --:--:--  0:00:01 3993k
Extracting /usr/local/portage/packages/net-misc/dhcp-4.3.4.tbz2

Files downloaded, configuring emerge.
 
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 
Dload  Upload   Total   Spent    Left  Speed
 
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl
: (22) The requested URL returned error: 403 Forbidden
Emerge installation complete. Installing additional optional packages.
######################################################################## 100.0%

!!! PORTAGE_BINHOST unset, but use is requested.
emerge
: incomplete set configuration, missing set(s): "selected", "system", and "world"
       
This usually means that '/usr/share/portage/config/sets/portage.conf'
       
is missing or corrupt.
       
Falling back to default world and system set configuration!!!
!!! Problem with sandbox binary. Disabling...

Calculating dependencies... done!

>>> Emerging binary (1 of 1) chromeos-base/gmerge-0.0.1-r1064::chromiumos for /usr/local/
######################################################################## 100.0%
 
* gmerge-0.0.1-r1064.tbz2 MD5 SHA1 size ;-) ...                         [ ok ]
>>> Extracting info
 
* Running stacked hooks for pre_pkg_setup
 
*    sysroot_build_bin_dir ...                                                                                              [ ok ]
 
* Running stacked hooks for post_pkg_setup
 
*    python_eclass_hack ...                                                                                                 [ ok ]
>>> Extracting chromeos-base/gmerge-0.0.1-r1064

>>> Installing (1 of 1) chromeos-base/gmerge-0.0.1-r1064::chromiumos to /usr/local/
 
* Running stacked hooks for pre_pkg_preinst
 
*    wrap_old_config_scripts ...                                                                                            [ ok ]

>>> Recording chromeos-base/gmerge in "world" favorites file...
>>> Auto-cleaning packages...

>>> Using system located in ROOT tree /usr/local/

>>> No outdated packages were found on your system.
Install virtual/target-os-dev package now? (y/N)
You can install virtual/target-os-dev later by typing the command: emerge virtual/target-os-dev
dev_install
done. Enjoy!


Should I worry about the 'curl: (22) The requested URL returned error: 403 Forbidden' in there?
I can't find out what URL the 403 is referring to, is it related to the DHCP package before or emerge?

Also 'emerge virtual/target-os-dev' fails on anything depending on 'python_targets_python2_7', since it can't find python2.7 in /usr/bin/, since it is installed in /usr/local/bin/.
But I guess that is a separate known issue (https://bugs.chromium.org/p/chromium/issues/detail?id=701955)? 

Thanks in advance for any advise.

Best regards,
Ward
Chromium OS discuss mailing list: chromium-...@chromium.org
Reply all
Reply to author
Forward
0 new messages