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

browserStackLocal.stop() hangs inside Docker #27

Open
nickslavsky opened this issue Apr 11, 2018 · 5 comments
Open

browserStackLocal.stop() hangs inside Docker #27

nickslavsky opened this issue Apr 11, 2018 · 5 comments

Comments

@nickslavsky
Copy link

nickslavsky commented Apr 11, 2018

I'm having an issue with the above browserStackLocal.stop() method when running inside a Docker container.

I'm using the latest package version

com.browserstack
browserstack-local-java
1.0.2

I have tried the following combinations inside my Dockerfile (using a workaround from similar issue with browserstack-local-nodejs) to no avail:

  • CMD ["java", "-cp", "target/.jar", "org.testng.TestNG", "testng.xml"]
  • CMD ["/bin/bash", "-c", "set -e && java -cp .jar org.testng.TestNG testng.xml"]

the only thing works is commenting the browserStackLocal.stop() call.
Can anyone look into this? Is there a workaround that might help?

Proof. When I connect to this running container, I see this:

# ps -eo pid,ppid,state,cmd | awk '$3=="Z"'
   63     1 Z [BrowserStackLoc] <defunct>
@thibaut-sticky
Copy link

Any update on this?

@mohitmun
Copy link

Hi @nickslavsky , @thibaut-sticky, This is issue with our BrowserstackLocal binary when running inside docker. we are working on a fix for this which will be released soon, and till then you can try a workaround mentioned in here

@raghuhit
Copy link
Contributor

raghuhit commented Sep 19, 2018

@nickslavsky @thibaut-sticky , you can use the following workaround for this until we fix this issue

Add following lines in the starting of your Dockerfile

# Add Tini ENV TINI_VERSION v0.14.0 ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini RUN chmod +x /tini ENTRYPOINT ["/tini", "--"]

You can refer this link for sample docker file.

@kristianadidas
Copy link

Hi @raghuhit @mohitmun any update on a potential fix(excluding the workaround) for this issue ?

@thebeardedcoderIN
Copy link
Contributor

@kristianadidas We’re currently re-evaluating our BrowserStack local experience inside Docker, please use the workaround for now. We will have an update by June.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants