Missing Dependencies preventing playwright launch
See original GitHub issueERROR 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:
- Created 3 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
@vigneshtdev we currently don’t support Debian - please feel free to upvote #3167 to have it covered.
I have the same problem as the original poster. This is my system (a Debian VPS):
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.