browserstack / browserstack-local-java

Java bindings for BrowserStack Local
https://www.browserstack.com
MIT License
18 stars 34 forks source link

Problem while starting job in Jenkins with Browserstack Local option configured as true #29

Open shahzadskf opened 6 years ago

shahzadskf commented 6 years ago

Hi, I am having problem in configuring Browserstack Local option through Jenkins. I cannot execute the job when ‘Browserstack Local’ in 'Build Environment' is checked. When I run the job then following exception is displayed on Jenkins console: [BrowserStack] Local: Starting BrowserStack Local... FATAL: A JSONObject text must begin with '{' at 1 [character 2 line 1] ERROR: Failed to parse POMs java.io.IOException at com.browserstack.automate.ci.jenkins.BrowserStackBuildWrapper.setUp(BrowserStackBuildWrapper.java:61) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1727) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)

I have tried to execute the BrowserStackLocal binary on our host Jenkins machine using command:

./BrowserStackLocal --key MyPrivateAccessKey

I am getting following error message: BrowserStackLocal: ../deps/uv/src/unix/linux-core.c:746: read_times: Assertion `num == numcpus' failed.

I have discussed this issue with my company DevOps expert, he figured out this is the bug on your side. Browserstack team should upgrade the libuv library in their linux build to at least v1.9.0. Otherwise, it won't run on any containers that limit the number of CPUs. Kindly follow up this problem. Thanks!

fmattheus commented 6 years ago

See for example, this link: https://github.com/nodejs/node/issues/6252