question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Dependencies preventing playwright launch

See original GitHub issue

ERROR Invoke Error {"errorType":"Error","errorMessage":"browserType.launch: Host system is missing dependencies!\n\n Missing libraries are:\n libgtk-3.so.0\n libgdk-3.so.0\n libX11.so.6\n libX11-xcb.so.1\n libxcb.so.1\n libXcomposite.so.1\n libXcursor.so.1\n libXdamage.so.1\n libXext.so.6\n libXfixes.so.3\n libXi.so.6\n libXrender.so.1\n libfreetype.so.6\n libfontconfig.so.1\n libdbus-glib-1.so.2\n libdbus-1.so.3\n libpangocairo-1.0.so.0\n libpango-1.0.so.0\n libatk-1.0.so.0\n libcairo-gobject.so.2\n libcairo.so.2\n libgdk_pixbuf-2.0.so.0\n libxcb-shm.so.0\n libpangoft2-1.0.so.0\n libXt.so.6\n","stack":["browserType.launch: Host system is missing dependencies!",""," Missing libraries are:"," libgtk-3.so.0"," libgdk-3.so.0"," libX11.so.6"," libX11-xcb.so.1"," libxcb.so.1"," libXcomposite.so.1"," libXcursor.so.1"," libXdamage.so.1"," libXext.so.6"," libXfixes.so.3"," libXi.so.6"," libXrender.so.1"," libfreetype.so.6"," libfontconfig.so.1"," libdbus-glib-1.so.2"," libdbus-1.so.3"," libpangocairo-1.0.so.0"," libpango-1.0.so.0"," libatk-1.0.so.0"," libcairo-gobject.so.2"," libcairo.so.2"," libgdk_pixbuf-2.0.so.0"," libxcb-shm.so.0"," libpangoft2-1.0.so.0"," libXt.so.6","Error"," at Object.captureStackTrace (/var/task/node_modules/playwright-firefox/lib/utils/stackTrace.js:48:19)"," at Connection.sendMessageToServer (/var/task/node_modules/playwright-firefox/lib/client/connection.js:69:48)"," at Proxy.<anonymous> (/var/task/node_modules/playwright-firefox/lib/client/channelOwner.js:64:61)"," at /var/task/node_modules/playwright-firefox/lib/client/browserType.js:64:67"," at BrowserType._wrapApiCall (/var/task/node_modules/playwright-firefox/lib/client/channelOwner.js:77:34)"," at BrowserType.launch (/var/task/node_modules/playwright-firefox/lib/client/browserType.js:55:21)"," at run (/var/task/app.js:6:35)"," at Runtime.exports.handler (/var/task/app.js:18:11)"," at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"]}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
aslushnikovcommented, Mar 31, 2021

@vigneshtdev we currently don’t support Debian - please feel free to upvote #3167 to have it covered.

1reaction
eggerand13commented, Mar 23, 2021

I have the same problem as the original poster. This is my system (a Debian VPS):

  System:
    OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
    Memory: 6.40 GB / 9.76 GB
    Container: Yes
  Binaries:
    Node: 14.15.1 - /usr/bin/node
    npm: 6.14.8 - /usr/bin/npm
  Languages:
    Bash: 5.0.3 - /usr/bin/bash
  npmPackages:
    playwright: ^1.9.2 => 1.9.2

I have no problems running my code locally on a Windows machine but get the error above on the server.

I tried to install them with this command but the error interestingly stayed the same sudo apt-get install -y libgtk-3.so.0 libgdk-3.so.0 libX11-xcb.so.1 libXcomposite.so.1 libXcursor.so.1 libXdamage.so.1 libXfixes.so.3 libXi.so.6 libXrender.so.1 libdbus-glib-1.so.2 libpangocairo-1.0.so.0 libpango-1.0.so.0 libatk-1.0.so.0 libcairo-gobject.so.2 libcairo.so.2 libgdk_pixbuf-2.0.so.0 libxcb-shm.so.0 libpangoft2-1.0.so.0 libXt.so.6

What confuses me a little is that the output above tells me the VPS is running as a container. I am not running it in a container. It is most likely virtualized by my hosting provider but not specifically in a container. It should be a normal Debian installation.

EDIT:

@thernstig I now ran all the install commands that were listed in the Docker file and now it works. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

playwright._impl._api_types.Error: Host system is missing ...
Error: Host system is missing dependencies! Missing libraries are: libnss3.so libnssutil3.so libsmime3.so libnspr4.so libatk-1.0.so.0 libatk- ...
Read more >
Playwright module missing dependencies : Forums
When running, it uses playwright and I run into this issue: `playwright._types.Error: Host system is missing dependencies!
Read more >
Installation | Playwright
Playwright downloads Chromium, Firefox and WebKit browsers by default. To install a specific browser, pass it as an argument during installation. $ pip...
Read more >
A new option for web automation: Using the Robot Framework ...
Getting started with Playwright-based browser automation using the Robot Framework ... const browser = await puppeteer.launch(); const page = await browser.
Read more >
How To Run End-to-End Tests Using Playwright and Docker
The tests might not run correctly on Windows or MacOS due to conflict dependencies or missing dependencies during initial setup, but using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found