admin管理员组

文章数量:1401661

While initializing the tradefed for Android 15 CTS over MacBook running M1 getting the following error,

% ./cts-tradefed
Mac is not a fully supported OS, so Java version support will be best effort
==================
Notice:
We collect anonymous usage statistics in accordance with our Content Licenses (), Contributor License Agreement (/), Privacy Policy () and Terms of Service ().
==================
Android Compatibility Test Suite 15_r3 (13092887)
OmniLab lab-4.302.0 github-b415bbc2cb827b0c9c8c40499b5060baba7001c0
Use "help" to get more information on running commands. Use "dump bugreport" to generate a debug info file. Log dirs: [/tmp/olc_server_log, /tmp/ats_console_log]
03-21 05:21:17 PDT I/ServerPreparer: Starting new OLC server...
03-21 05:21:17 PDT I/LocalFileUtil: Copy file or dir from /Users/xxx/Downloads/android-cts/tools/../../android-cts/tools/ats_olc_server_local_mode_deploy.jar to /Users/xxx/xts/olc_server_res
03-21 05:21:17 PDT I/LocalFileUtil: Checked fully accessibility of file /Users/xxx/xts/olc_server_res/ats_olc_server_local_mode_deploy.jar. Permissions: rw-r--r--
03-21 05:22:19 PDT I/ServerPreparer: olc_server_command=[sh, -c, nohup '/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java' -Xmx24g -XX:+HeapDumpOnOutOfMemoryError -XX:+ExitOnOutOfMemoryError -jar '/Users/xxx/xts/olc_server_res/ats_olc_server_local_mode_deploy.jar' --adb_dont_kill_server=true --adb_max_no_device_detection_rounds=1200 --android_device_daemon=false --check_device_interval=1h --clear_android_device_multi_users=false --detect_device_interval_sec=2 --disable_calling=false --disable_device_reboot=true --disable_wifi_util_func=true --enable_android_device_ready_check=false --enable_device_state_change_recover=false --enable_device_system_settings_change=false --enable_root_device=false --mute_android=false --olc_server_max_started_running_session_num=30 --set_test_harness_property=false --simplified_log_format=true        --aapt='/Users/xxx/Library/Android/sdk/build-tools/34.0.0/aapt2'       --adb='/Users/xxx/Library/Android/sdk/platform-tools/adb'       --ats_console_olc_server_path='/Users/xxx/Downloads/android-cts/tools/../../android-cts/tools/ats_olc_server_local_mode_deploy.jar'       --enable_xts_dynamic_downloader=true       --xts_res_dir_root='/Users/xxx/xts'       --public_dir=/tmp       --simplified_log_format=true       --tmp_dir_root=/tmp              --enable_fastboot_in_android_real_device=true       --fastboot='/Users/xxx/Library/Android/sdk/platform-tools/fastboot'           >/dev/null 2>&1 &]
Console received an unexpected exception (shown below); shutting down ATS Console.
MobileHarnessException: Failed to connect new OLC server [MH|UNDETERMINED|ATSC_SERVER_PREPARER_CONNECT_NEW_OLC_SERVER_ERROR|52302]
    at com.google.devtools.mobileharness.infra.atsmon.olcserver.ServerPreparer.connectWithRetry(ServerPreparer.java:458)
    at com.google.devtools.mobileharness.infra.atsmon.olcserver.ServerPreparer.prepareOlcServer(ServerPreparer.java:299)
    at com.google.devtools.mobileharness.infra.ats.console.AtsConsole.run(AtsConsole.java:237)
    at com.google.devtools.mobileharness.infra.ats.console.AtsConsole.main(AtsConsole.java:142)
Caused by: com.google.devtoolsmon.metrics.stability.rpc.grpc.GrpcExceptionWithErrorId: Failed to get server version [rpc_code=14]
    at com.google.devtoolsmon.metrics.stability.rpc.grpc.GrpcExceptionUtil.toGrpcExceptionWithErrorId(GrpcExceptionUtil.java:102)
    at com.google.devtoolsmon.metrics.stability.rpc.grpc.GrpcStubUtil.invoke(GrpcStubUtil.java:48)
    at com.google.devtools.mobileharness.infra.client.longrunningservice.rpc.stub.VersionStub.getVersion(VersionStub.java:43)
    at com.google.devtools.mobileharness.infra.atsmon.olcserver.ServerPreparer.connectWithRetry(ServerPreparer.java:454)
    ... 3 more
    Suppressed: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
        at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:268)
        at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:249)
        at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:167)
        at com.google.devtools.mobileharness.infra.client.longrunningservice.proto.VersionServiceGrpc$VersionServiceBlockingStub.getVersion(VersionServiceGrpc.java:160)
        at com.google.devtoolsmon.metrics.stability.rpc.grpc.GrpcStubUtil.invoke(GrpcStubUtil.java:46)
        ... 5 more
    Caused by: ioty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/[0:0:0:0:0:0:0:1]:7030
    Caused by: java.ConnectException: Connection refused
        at java.base/sun.nio.ch.Net.pollConnect(Native Method)
        at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
        at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946)
        at ioty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
        at ioty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
        at ioty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
        at ioty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
        at ioty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
        at ioty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
        at ioty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
        at ioty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at ioty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:840)
Saved log to /tmp/olc_server_log/
Saved log to /tmp/ats_console_log/

I checked the Java version, adb, aapt2 & Fastboot version all are working and same version as I have in ubuntu.

I just wanted to know for MacBook for quick checking on certain things.

本文标签: androidMobileHarnessException Failed to connect new OLC serverStack Overflow