Giter Club home page Giter Club logo

Comments (6)

zhouziyang avatar zhouziyang commented on August 26, 2024

Did you install the required kernel modules?
run docker exec -it <container> sh to get a adb shell like env.

from redroid-doc.

thlengane avatar thlengane commented on August 26, 2024

Did you install the required kernel modules?
run docker exec -it <container> sh to get a adb shell like env.

Yes, I did. See below

user@pc:~$ sudo apt-get install -y git kmod make gcc linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version (4:9.3.0-1ubuntu2).
kmod is already the newest version (27-1ubuntu2).
make is already the newest version (4.2.1-1.2).
git is already the newest version (1:2.25.1-1ubuntu3.1).
linux-headers-5.4.0-80-generic is already the newest version (5.4.0-80.90).
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
user@pc:~$ 
user@pc:~$ lsmod | grep -e ashmem_linux -e binder_linux
binder_linux          180224  0
ashmem_linux           20480  0
user@pc:~$ grep binder /proc/filesystems
nodev	binder
user@pc:~$ grep ashmem /proc/misc
 58 ashmem

I did run sudo docker exec -it 5184d75c97ce sh, but still not winning

The other thing is if I run adb connect, it says failed to connect but when I run it again, it says already connected

user@pc:~$ adb connect 127.0.0.1:5555
failed to connect to 127.0.0.1:5555
user@pc:~$ adb connect 127.0.0.1:5555
already connected to 127.0.0.1:5555
user@pc:~$ adb devices
List of devices attached
4d00427a4c2f3101	device
127.0.0.1:5555	offline
user@pc:~$ 

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

please provide following information:

  1. docker exec <container> ps -A
  2. docker exec <container> logcat
  3. dmesg

from redroid-doc.

thlengane avatar thlengane commented on August 26, 2024

please provide following information:

  1. docker exec <container> ps -A
  2. docker exec <container> logcat
  3. dmesg
user@pc:~$ sudo docker exec 5184d75c97ce ps -A
    PID TTY          TIME CMD
      1 pts/0    00:00:00 bash
   2848 pts/1    00:00:00 sh
   3896 ?        00:00:00 ps
user@pc:~$ sudo docker exec 5184d75c97ce logcat
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "logcat": executable file not found in $PATH: unknown

user@pc:~$ dmesg
dmesg.log

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

there are crash looping in your environment (and I cannot grab useful information).
can you limit pid_max in your environment? run echo 65535 > /proc/sys/kernel/pid_max, then re-create instance (docker kill <container> and docker run -itd xxx).
collect debug information like above if problem still exists.

from redroid-doc.

thlengane avatar thlengane commented on August 26, 2024

@zhouziyang

Had to delete everything and start afresh. All is sorted now, not sure what caused the previous issues

user@pc:~$ adb devices
List of devices attached
4d00427a4c2f3101	device
127.0.0.1:5555	device
emulator-5554	device
user@pc:~$ 

from redroid-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.