setup_board --board=${BOARD} met issues with gsutil

63 views
Skip to first unread message

Leo HUANG

unread,
Nov 24, 2021, 4:21:55 AM11/24/21
to Chromium OS Development
Hi everyone:
cros_sdk --enter
(cr)export BOARD=zork
(cr)setup_board --board=${BOARD}

during setup_board, it reported errors such as:
17:00:44.525: INFO: run: /usr/bin/python3 /mnt/host/source/.cache/common/gsutil_5.4.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' -o 'Boto:proxy=localhost' -o 'Boto:proxy_port=3128' cp -v -- gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages /tmp/tmp3wjma4lk.tmp



17:03:56.130: WARNING: GS_ERROR: b'INFO:root:Retrying request, attempt #4...\nINFO 1124 17:01:02.591246 retry_util.py] Retrying request, attempt #4...\nINFO:root:Retrying request, attempt #5...\nINFO 1124 17:01:16.463521 retry_util.py] Retrying request, attempt #5...\nINFO:root:Retrying request, attempt #6...\nINFO 1124 17:01:43.738524 retry_util.py] Retrying request, attempt #6...\nINFO:root:Retrying request, attempt #7...\nINFO 1124 17:02:16.768531 retry_util.py] Retrying request, attempt #7...\nINFO:root:Retrying request, attempt #8...\nINFO 1124 17:02:49.867075 retry_util.py] Retrying request, attempt #8...\nINFO:root:Retrying request, attempt #9...\nINFO 1124 17:03:22.954072 retry_util.py] Retrying request, attempt #9...\nOSError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852).\n'
17:03:56.131: ERROR: return code: 1; command: /usr/bin/python3 /mnt/host/source/.cache/common/gsutil_5.4.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' -o 'Boto:proxy=localhost' -o 'Boto:proxy_port=3128' cp -v -- gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages /tmp/tmp3wjma4lk.tmp
INFO:root:Retrying request, attempt #4...
INFO 1124 17:01:02.591246 retry_util.py] Retrying request, attempt #4...
INFO:root:Retrying request, attempt #5...
INFO 1124 17:01:16.463521 retry_util.py] Retrying request, attempt #5...
INFO:root:Retrying request, attempt #6...
INFO 1124 17:01:43.738524 retry_util.py] Retrying request, attempt #6...
INFO:root:Retrying request, attempt #7...
INFO 1124 17:02:16.768531 retry_util.py] Retrying request, attempt #7...
INFO:root:Retrying request, attempt #8...
INFO 1124 17:02:49.867075 retry_util.py] Retrying request, attempt #8...
INFO:root:Retrying request, attempt #9...
INFO 1124 17:03:22.954072 retry_util.py] Retrying request, attempt #9...
OSError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852).

cmd=['/usr/bin/python3', '/mnt/host/source/.cache/common/gsutil_5.4.tar.gz/gsutil/gsutil', '-o', 'Boto:num_retries=10', '-o', 'Boto:proxy=localhost', '-o', 'Boto:proxy_port=3128', 'cp', '-v', '--', 'gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages', '/tmp/tmp3wjma4lk.tmp']
Fetcher exited with a failure condition.


!!! Error fetching binhost package info from 'gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages'
!!! FETCHCOMMAND_GS failed

However, I have already set  https_validate_certificates = False
So, I just run this cmd in another terminal:
(cr) leo@SZHM-C-0004X ~ $ gsutil -o 'Boto:num_retries=10' -o 'Boto:proxy=localhost' -o 'Boto:proxy_port=3128' cp -v -- gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages /tmp/tmpxtgrx6cj.tmp
Copying gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages...
Created: file:///tmp/tmpxtgrx6cj.tmp

Operation completed over 1 objects/1.4 MiB.


So can anyone give me some help?

Thanks.



Leo HUANG

unread,
Nov 24, 2021, 4:31:31 AM11/24/21
to Chromium OS Development, Leo HUANG
And if just re-run the cmd also successfully:

(cr)leo@SZHM-C-0004X ~ $ /usr/bin/python3 /mnt/host/source/.cache/common/gsutil_5.4.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' -o 'Boto:proxy=localhost' -o 'Boto:proxy_port=3128' cp -v -- gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages /tmp/tmpxtgrx6cj.tmp
Copying gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R98-14356.0.0-26745-8829841294162072657/packages/Packages...
Created: file:///tmp/tmpxtgrx6cj.tmp

Operation completed over 1 objects/1.4 MiB.

che...@gmail.com

unread,
Nov 24, 2021, 6:12:18 AM11/24/21
to Chromium OS Development, Leo....@cn.bosch.com
Since your proxy seems to be working fine, the error during setup_board is probably due to temporary DNS poisoning, which gives you wrong IP addresses.  As far as I know, gsutil will download files on google storage via the domain storage.googleapis.com, and storage.cloud.google.com may also be used. Use nslookup or dig to query these domain names and check if you get the correct results.

btw, [openFyde](openfyde.cn) has all the necessary artefacts for Chromium OS relocated to mirror servers so you wouldn’t have connectivity issues when building at your geolocation, if it helps.

Leo HUANG

unread,
Nov 24, 2021, 8:35:12 PM11/24/21
to Chromium OS Development, che...@gmail.com, Leo HUANG
Thanks for reply!
It seems that openfyde may be more suitable for me since I'm in China.
Then I have a question, if I build my drivers in openfyde, can this driver also work in ChromiumOS?
Thanks.

Fangzhou Chen

unread,
Nov 24, 2021, 11:26:55 PM11/24/21
to Leo HUANG, Chromium OS Development
I think that won't be a problem, openFyde is based on Chromium OS, both using the linux kernel.

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev
---
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-os-dev/6NJIKtB2vMk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-os-d...@chromium.org.

Leo HUANG

unread,
Nov 24, 2021, 11:44:06 PM11/24/21
to Chromium OS Development, che...@gmail.com, Chromium OS Development, Leo HUANG
What about the sensor driver? Does chromium OS use sensorhub or linux for sensor driver?
Reply all
Reply to author
Forward
0 new messages