Skip to content

browserStackLocal.stop() hangs inside Docker #27

Open

Description

@nickslavsky

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>

Activity

  1. thibaut-sticky commented on Sep 6, 2018

    @thibaut-sticky

    Any update on this?

  2. mohitmun commented on Sep 11, 2018

    @mohitmun

    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

  3. raghuhit commented on Sep 19, 2018

    @raghuhit
    Contributor

    @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.

  4. kristianadidas commented on Jan 30, 2020

    @kristianadidas

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

  5. thebeardedcoderIN commented on Mar 2, 2020

    @thebeardedcoderIN
    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

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