I get the telemetry source and run the benchmark form https://www.chromium.org/developers/telemetry/run_locally .
the command:
root@xingyb-OptiPlex-780:/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry# ./run_benchmark --browser=list --device=015d18842263fe01
I get some error when running the benchmark, how to resolve this problem ?
the error log:
ERROR:root:Fail to create platform instance for Android device 015d18842263fe01.
Traceback (most recent call last):
<module> at tools/perf/run_benchmark:20
sys.exit(benchmark_runner.main(environment))
main at tools/telemetry/telemetry/benchmark_runner.py:433
options, args = parser.parse_args()
ParseArgs at tools/telemetry/telemetry/core/browser_options.py:177
device)
Cacher at tools/telemetry/telemetry/decorators.py:30
cacher.__cache[key] = obj(*args, **kwargs)
GetAllAvailableBrowsers at tools/telemetry/telemetry/core/browser_finder.py:147
browser_finder.FindAllAvailableBrowsers(options, device))
FindAllAvailableBrowsers at tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py:211
android_platform = platform.GetPlatformForDevice(device, finder_options)
GetPlatformForDevice at tools/telemetry/telemetry/core/platform/__init__.py:58
finder_options))
CreatePlatformForDevice at tools/telemetry/telemetry/core/platform/android_platform_backend.py:117
platform_backend = AndroidPlatformBackend(device, finder_options)
__init__ at tools/telemetry/telemetry/core/platform/android_platform_backend.py:68
installed_prebuilt_tools = adb_commands.SetupPrebuiltTools(self._adb)
SetupPrebuiltTools at tools/telemetry/telemetry/core/backends/adb_commands.py:133
executable, bin_arch_name, platform_name)
Cacher at tools/telemetry/telemetry/decorators.py:30
cacher.__cache[key] = obj(*args, **kwargs)
FindPath at tools/telemetry/telemetry/util/support_binaries.py:52
cloud_storage.PUBLIC_BUCKET)
GetIfChanged at tools/telemetry/telemetry/util/cloud_storage.py:261
Get(bucket, expected_hash, file_path)
Get at tools/telemetry/telemetry/util/cloud_storage.py:210
_RunCommand(['cp', url, local_path])
_RunCommand at tools/telemetry/telemetry/util/cloud_storage.py:156
raise CloudStorageError(stderr)
CloudStorageError: Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config").
Traceback (most recent call last):
File "src/tools/telemetry/third_party/gsutil/gsutil", line 22, in <module>
gsutil.RunMain()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gsutil.py", line 107, in RunMain
sys.exit(gslib.__main__.main())
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/__main__.py", line 342, in main
debug_level=debug, parallel_operations=parallel_operations)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/__main__.py", line 524, in _RunNamedCommandAndHandleExceptions
debug_level, parallel_operations)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/command_runner.py", line 272, in RunNamedCommand
return_code = command_inst.RunCommand()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/commands/cp.py", line 913, in RunCommand
fail_on_error=(not self.continue_on_error))
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/command.py", line 1148, in Apply
arg_checker, should_return_results, fail_on_error)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/command.py", line 1194, in _SequentialApply
args = args_iterator.next()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/plurality_checkable_iterator.py", line 60, in _PopulateHead
e = self.base_iterator.next()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/name_expansion.py", line 246, in __iter__
for (names_container, blr) in post_step3_iter:
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/plurality_checkable_iterator.py", line 60, in _PopulateHead
e = self.base_iterator.next()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/name_expansion.py", line 464, in __iter__
for (names_container, blr) in self.tuple_iter:
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/plurality_checkable_iterator.py", line 60, in _PopulateHead
e = self.base_iterator.next()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/name_expansion.py", line 428, in __iter__
for blr in self.blr_iter:
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/plurality_checkable_iterator.py", line 60, in _PopulateHead
e = self.base_iterator.next()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/wildcard_iterator.py", line 449, in IterAll
expand_top_level_buckets=expand_top_level_buckets):
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/wildcard_iterator.py", line 166, in __iter__
fields=get_fields)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/cloud_api_delegator.py", line 201, in GetObjectMetadata
return self._GetApi(provider).GetObjectMetadata(
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/cloud_api_delegator.py", line 96, in _GetApi
self._LoadApi(provider, api_selector)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/cloud_api_delegator.py", line 119, in _LoadApi
debug=self.debug))
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/gcs_json_api.py", line 148, in __init__
loaded_credentials = self._CheckAndGetCredentials(logger)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/gcs_json_api.py", line 241, in _CheckAndGetCredentials
user_creds = self._GetOauth2UserAccountCreds()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gslib/gcs_json_api.py", line 286, in _GetOauth2UserAccountCreds
boto.config).GetCredentials()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/oauth2_client.py", line 578, in GetCredentials
access_token = self.GetAccessToken()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/oauth2_client.py", line 316, in GetAccessToken
access_token = self.FetchAccessToken()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/retry-decorator/retry_decorator/retry_decorator.py", line 20, in f_retry
return f(*args, **kwargs)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/oauth2_client.py", line 599, in FetchAccessToken
credentials.refresh(http)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/oauth2client/oauth2client/client.py", line 571, in refresh
self._refresh(http.request)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/oauth2client/oauth2client/client.py", line 742, in _refresh
self._do_refresh_request(http_request)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/oauth2client/oauth2client/client.py", line 771, in _do_refresh_request
self.token_uri, method='POST', body=body, headers=headers)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1570, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1317, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1290, in _conn_request
conn.connect()
File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1060, in connect
raise socket.error, msg
socket.error: [Errno 101] Network is unreachable
Locals:
args : ['cp', 'gs://chromium-telemetry/cf5c8fe920378ce30d057e76591d57f63fd31c1a', 'src/tools/telemetry/bin/android/armeabi-v7a/file_poller']
gsutil : <subprocess.Popen object at 0x37dd550>
gsutil_env : None
gsutil_path : 'src/tools/telemetry/third_party/gsutil/gsutil'
stderr : 'Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config").\nTraceback (most recent call last):\n File "src/tools/telemetry/third_party/gsutil/gsutil", line 22, in <module>\n gsutil.RunMain()\n File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/gsutil.py", line 107, in RunMain\n sys.exit(gslib.__main__.main())\n File "/opt/linuxdir/RenderingBenchma ... uest(conn, request_uri, method, body, headers)\n File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1290, in _conn_request\n conn.connect()\n File "/opt/linuxdir/RenderingBenchmark/trunk_2015_5/telemetry/src/tools/telemetry/third_party/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1060, in connect\n raise socket.error, msg\nsocket.error: [Errno 101] Network is unreachable\n' (truncated)
stdout : ''
Thanks
Yanbo
Marvell(Shanghai) LTD
Hello
Look forward to your reply!
Thanks
Yanbo
I can’t access the internet, must be connected to the Internet ? Can’t I run all cases on the local ?
Thanks
Yanbo
I am not whitelisted, how should I join it ?
Hello Dave,
Any progress ?
Thanks
Yanbo
From: Yanbo Xing
Sent: 2015年5月18日 15:50
To: 'Dave Tu'
Cc: tele...@chromium.org
Subject: RE: ERROR:root:Fail to create platform instance for Android device 015d18842263fe01
I am not whitelisted, how should I join it ?