Skip to content

browserStackLocal.stop() hangs inside Docker #27

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

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