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
[Question]Exception : com.microsoft.playwright.PlaywrightException: Failed to read message from driver, pipe closed. Skipping browsers download because PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
env variable is set.
#635
Comments
Running with DEBUG=pw:protocol, got the exceptions details. Exception in thread "RMI TCP Connection(idle)" java.lang.NoSuchFieldError: instrumentedPeer |
The stack trace doesn't contain anything about Playwright, it seems to be from a client end that does remote-method-invocation. Can you collect trace/logs on the server? Also can you tell us more about your setup, how you run the tests? |
I'm running tests on playwright docker container via Jenkins. Container already has chromium along with Java and maven!! |
What is the command line that you run to launch the tests? Basically you need to prepend |
Used DEBUG=pw:protocol along with mvn compile exec cmd |
Note that we need |
tried with above cmd DEBUG=pw:browser. below is the output. |
We need more information about your setup, can you share the project maybe? It looks like the driver fails to start for some reason but it's hard to tell what could go wrong with such scarce information. |
Or can you share a minimal repro? |
lemme try to recreate the project for sharing since i couldn't share the existing one as is due to organisation restrictions |
sometimes I have got below err also while running in Jenkins. java.lang.ClassNotFoundException: com.mycompany.app.Example Locally I don't get this error but while running on jenkins , this error occurs |
Something is wrong with your setup on jenkins as some of the classes are not in the classpath. Perhaps they are not properly copied into the docker image. |
here is d repo for docker containers and test code repo https://github.com/agaramudhala/pw-java , https://github.com/agaramudhala/pw-docker |
Thanks for sharing this, can you provide instructions on how to run it to reproduce the failure? I see that pw-docker does quite a lot of things, is it possible to reduce that more? |
in order to reproduce, I'm jus spinning up docker playwright container via Jenkins and trigger the test class .. Lemme try to trim again and share the steps |
I'm not familiar with Jenkins, so I would appreciate detailed steps what to do. |
sure.. will add the steps |
Please build docker container from this repo (should build automatically on triggering Jenkins job)in Jenkins pipeline locally or remotely and the following playwright image(pro-node-playwright) will be published and ready for consumption . Please start another Jenkins pipeline job locally or remotely. Have already added Jenkinsfile in the test repo which should pick automatically on triggering Jenkins. Test cmd is configured in same Jenkinsfile itself |
Ok, I'd need to install Jenkins to reproduce all this. Can you reproduce the problem with Docker manually to eliminate Jenkins from the setup? Basically just launch docker and run the same command Jenkins would do. Looking at
Building image with that docker file fails. |
Forgot to update headless as true in the repo. But I'm running in headless mode only. |
sed -i "external url"\ @yury-s . pls replace External url with corresponding docker.com [internal/external/public] or you can remove tat line and please try to rerun again |
At this point it's unclear to me how to reproduce it, the setup is quite complex and I feel like the problem should be reproducible without Jenkins if it's a playwrigh issue but the docker image you uploaded doesn't build out of the box, so it's hard to tell what is not working at the later stages. Feel free to open a new issue with a small repro. |
I am getting exact same issue, because of organization policies we are not allowed to download any external jars/software hence I added PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 to User environment variable and trying to use installed browser binaries. I am not using any docker, jenkins etc. its simple maven project with playwright dependency and one line of code "Playwright play = Playwright.create();" stack trace as below I:\ds\tools\jdk8\1.8.0_321\bin\java.exe ... |
Hi Team,
Getting the below exception .
com.microsoft.playwright.PlaywrightException: Failed to read message from driver, pipe closed.
Skipping browsers download because
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
env variable is set. i'm running the test in playwright docker img via jenkins.Playwright version:1.14.1
JDK : 1.8.0_275
Maven: 3.6.3
Chromium : 86.0.4240.111
The text was updated successfully, but these errors were encountered: