remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.2k stars 300 forks source link

/sdcard: Transport endpoint is not connected #419

Open cakriwut opened 1 year ago

cakriwut commented 1 year ago

Describe the bug I created multiple Redroid containers using following docker-compose.yaml

version: '3'
services:
  redroid-13-59:
    image: redroid/redroid:13.0.0-230331
    privileged: true
    restart: always
    ports:
      - "5559:5555"
    command: ' androidboot.redroid_dpi=480 androidboot.redroid_width=1080 androidboot.redroid_height=1920 
    volumes:
      - "~/data-59:/data"
      - "~/sdcard-59:/storage/emulated/"
  redroid-13-56:
    image: redroid/redroid:13.0.0-230331
    privileged: true
    restart: always
    ports:
      - "5556:5555"
    command: ' androidboot.redroid_dpi=240 redroid.gpu.mode=guest ro.secure=0'
    volumes:
      - "~/data-56:/data"
      - "~/sdcard-56:/storage/emulated/"

During start, I monitor if /sdcard exists in the emulator.

vm1=127.0.0.1:5559
vm2=127.0.0.1:5556
adb connect $vm1 && adb -s $vm1 shell "cd /sdcard" && adb disconnect $vm1 && \
adb connect $vm2 && adb -s $vm2 shell "cd /sdcard" && adb disconnect $vm2

Problem The /sdcard initially available in $vm1 and not in $vm2. The subsequent run of the test script, it only available in $vm2 and not in $vm

image

Expected /sdcard available in all containers.

Environment Azure ARM virtual machine

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

$ uname -r 5.15.0-1042-azure

make sure the required kernel modules present

collect debug logs curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER] omit CONTAINER if not exist any more.

Screenshots If applicable, add screenshots to help explain your problem.

zhouziyang commented 1 year ago

Take a look at https://github.com/remote-android/redroid-doc/issues/354#issuecomment-1500344660

BTW,