Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adb server freeze when run test in parallel in Docker for Mac + USB 2.0 controller #66

Closed
xuanzhaopeng opened this issue Oct 6, 2017 · 8 comments

Comments

@xuanzhaopeng
Copy link
Contributor

I just start this topic when you start one docker-machine with multiple appium-docker-android containers , and run test in parallel

I found adb server will freeze just after several run when u start test in multiple containers. However I cannot figure out the reason...

I'd like to know whether you guys maybe also found this problem.

PS: when u run test only in ONE container, it works perfect.

@budtmo
Copy link
Member

budtmo commented Oct 9, 2017

Hi @xuanzhaopeng ,

why do you need to have multiple containers? I think you can register multiple devices in one single container as long as devices are connected to the same machine.

@xuanzhaopeng
Copy link
Contributor Author

Hey @butomo1989 , just back from selenium conference, I will try your solution today

@xuanzhaopeng
Copy link
Contributor Author

xuanzhaopeng commented Oct 12, 2017

Hey @butomo1989 @red-avtovo I figure it out based on : https://stackoverflow.com/questions/29563183/connecting-to-a-usb-android-device-in-a-docker-container-via-adb

Besides, I upgrade docker from 17.02 to 17.09, and use USB 3.0 control in VirtualBox instead of USB 2.0

The adb server instance should have different port within multiple containers

PS: @butomo1989 the reason why I use multiple containers because I want to create scalable selenium-node, and to make the log could be readable instead of mixed all sessions log into one

@xuanzhaopeng
Copy link
Contributor Author

I think we could keep this issue here, and for others who want to use appium-docker @saikrishna321

@xuanzhaopeng xuanzhaopeng changed the title Adb server freeze when run test in parallel Adb server freeze when run test in parallel in Docker for Mac + USB 2.0 controller Oct 13, 2017
@budtmo
Copy link
Member

budtmo commented Nov 21, 2017

In my opinion we should move this issue to for example FAQ or something else in the readme/documentation if we won’t to work on this issue.

@saikrishna321
Copy link
Member

@butomo1989 we should Document this

@budtmo
Copy link
Member

budtmo commented Nov 21, 2017

Could you maybe help to move it to readme @xuanzhaopeng ? I think you can explain it in a better way.

@budtmo
Copy link
Member

budtmo commented Apr 29, 2018

I will close this ticket. I think It should be fixed through explanations of issue #72 and #76 for running one appium server for one container. Please feel free to reopen it if needed.

@budtmo budtmo closed this as completed Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants