Skip to content

devices can not been attached when I changed the ANDROID_ADB_SERVER_PORT #122

Description

@quanminchaoren

error: cannot connect to daemon at tcp:127.0.0.1:5037: failed to connect to '127.0.0.1:5037': Connection refused
09-17 10:49:17.584 433807 433807 W adb : network.cpp:149 failed to connect to '127.0.0.1:5037': Connection refused

  • cannot start server on remote host
    error: cannot connect to daemon at tcp:127.0.0.1:5037: failed to connect to '127.0.0.1:5037': Connection refused
    09-17 10:49:19.592 433818 433818 W adb : network.cpp:149 failed to connect to '127.0.0.1:5037': Connection refused
  • cannot start server on remote host
    error: cannot connect to daemon at tcp:127.0.0.1:5037: failed to connect to '127.0.0.1:5037': Connection refused
    09-17 10:49:21.600 433828 433828 W adb : network.cpp:149 failed to connect to '127.0.0.1:5037': Connection refused
  • cannot start server on remote host
    error: cannot connect to daemon at tcp:127.0.0.1:5037: failed to connect to '127.0.0.1:5037': Connection refused
    ^C[ServerSignal] Received SIGINT (2); server PID=404243, parent PID=403805, frame=/home/xmanzheng/miniconda3/lib/python3.13/asyncio/runners.py:118
    INFO: Shutting down
    INFO: Waiting for application shutdown.
    [QueueWorker] Dispatcher received cancellation signal.
    INFO: Application shutdown complete.
    INFO: Finished server process [404243]

🛑 UI Server stopped.
(base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ uv run artemis helper install
ℹ Activated local ADB server endpoint 127.0.0.1:5037
No authorized device is attached.
(base) xmanzheng@xmanzheng-QiTianM437-N000:
/artemis$ adb shell
TB323FU:/ # exit
(base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ adb kill-server
(base) xmanzheng@xmanzheng-QiTianM437-N000:
/artemis$ adb shell

  • daemon not running; starting now at tcp:8848
  • daemon started successfully
    TB323FU:/ # exit
    (base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ ANDROID_ADB_SERVER_PORT=8848 uv run artemis helper install
    ℹ Activated local ADB server endpoint 127.0.0.1:5037
    No authorized device is attached.
    (base) xmanzheng@xmanzheng-QiTianM437-N000:
    /artemis$ echo $ANDROID_ADB_SERVER_PORT
    8848
    (base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ unset ANDROID_ADB_SERVER_PORT
    (base) xmanzheng@xmanzheng-QiTianM437-N000:
    /artemis$ adb shell
  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    adb: no devices/emulators found
    (base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ adb shell
    adb: no devices/emulators found
    (base) xmanzheng@xmanzheng-QiTianM437-N000:
    /artemis$ adb shell
    adb: no devices/emulators found
    (base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ adb shell
    adb: no devices/emulators found
    (base) xmanzheng@xmanzheng-QiTianM437-N000:
    /artemis$ adb kill-sevrer
    adb: unknown command kill-sevrer
    (base) xmanzheng@xmanzheng-QiTianM437-N000:/artemis$ adb kill-server
    (base) xmanzheng@xmanzheng-QiTianM437-N000:
    /artemis$ adb shell
  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    adb: no devices/emulators found
    (base) xmanzheng@xmanzheng-QiTianM437-N000:~/artemis$ adb shell
    TB323FU:/ # exit

After unset ANDROID_ADB_SERVER_PORT, it can run successfully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions