Skip to content

Encountered an issue while using Docker. #350

@YuanLiuuuuuu

Description

@YuanLiuuuuuu

Many thanks for the great work! Following the official guide to use Docker in the README, I meet the following issues

OK: killing emulator, bye bye
OK
linux-gnu: emulator @Pixel_6_API_33 -no-window -no-snapshot -no-boot-anim -memory 2048 -accel on -grpc 8554 -gpu off
nohup: appending output to 'nohup.out'
==> Checking emulator booting up status 🧐
==> ✓ Emulator is ready : '1'           
List of devices attached
emulator-5556          device product:sdk_gphone64_x86_64 model:sdk_gphone64_x86_64 device:emu64x transport_id:459

adb: more than one device/emulator
restarting adbd as root
INFO:     Started server process [19419]
INFO:     Waiting for application startup.
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1762745580.772534   19496 http_connect_handshaker.cc:114] HTTP proxy handshake with ipv4:21.28.72.14:3128 failed: UNKNOWN: HTTP proxy returned response code 503
E0000 00:00:1762745649.242086   19495 http_connect_handshaker.cc:114] HTTP proxy handshake with ipv4:21.28.72.27:3128 failed: UNKNOWN: HTTP proxy returned response code 503
ERROR:absl:Failed to connect to the emulator.
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 349, in _connect_to_emulator
    grpc.channel_ready_future(self._channel).result(timeout=timeout_sec)
  File "/usr/local/lib/python3.11/site-packages/grpc/_utilities.py", line 160, in result
    self._block(timeout)
  File "/usr/local/lib/python3.11/site-packages/grpc/_utilities.py", line 105, in _block
    raise grpc.FutureTimeoutError()
grpc.FutureTimeoutError
ERROR:absl:Logfile does not exist: None.
ERROR:    Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 349, in _connect_to_emulator
    grpc.channel_ready_future(self._channel).result(timeout=timeout_sec)
  File "/usr/local/lib/python3.11/site-packages/grpc/_utilities.py", line 160, in result
    self._block(timeout)
  File "/usr/local/lib/python3.11/site-packages/grpc/_utilities.py", line 105, in _block
    raise grpc.FutureTimeoutError()
grpc.FutureTimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/base_simulator.py", line 78, in launch
    self._launch_impl()
  File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 239, in _launch_impl
    self._emulator_stub, self._snapshot_stub = self._connect_to_emulator(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 352, in _connect_to_emulator
    raise EmulatorBootError(
android_env.components.simulators.emulator.emulator_simulator.EmulatorBootError: Failed to connect to the emulator.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 211, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 211, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/cephfs/bensenliu/code/android_world/server/android_server.py", line 95, in lifespan
    fast_api_app.state.app_android_env = env_launcher.load_and_setup_env(
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/cephfs/bensenliu/code/android_world/android_world/env/env_launcher.py", line 125, in load_and_setup_env
    env = _get_env(console_port, adb_path, grpc_port)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/cephfs/bensenliu/code/android_world/android_world/env/env_launcher.py", line 35, in _get_env
    controller = android_world_controller.get_controller(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/cephfs/bensenliu/code/android_world/android_world/env/android_world_controller.py", line 327, in get_controller
    android_env_instance = loader.load(config)
                           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/android_env/loader.py", line 63, in load
    coordinator = coordinator_lib.Coordinator(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/android_env/components/coordinator.py", line 81, in __init__
    self._launch_simulator()
  File "/usr/local/lib/python3.11/site-packages/android_env/components/coordinator.py", line 140, in _launch_simulator
    self._simulator.launch()
  File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/base_simulator.py", line 82, in launch
    raise errors.SimulatorError(
android_env.components.errors.SimulatorError: Exception caught in simulator. Please see the simulator logs above for more details.

ERROR:    Application startup failed. Exiting.

The command I use is

bash docker_setup/entrypoint.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions