"Lost UI shared context" on Headless Chromium dependencies on a bare Ubuntu 16.x server (no desktop)

3,787 views
Skip to first unread message

Nicholas DiPiazza

unread,
Mar 19, 2018, 6:24:48 PM3/19/18
to chromium-packagers
I'm trying to install chromium headless on Ubuntu 16.x server (no desktop).

I've googled around for a while now but I can't seem to find a working chrome headless list of dependencies.

I've tried all of the following:

apt-get install chromium-browser gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libgconf2-4 libasound2 libatk1.0-0 libgtk-3-0  cpp-5 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl   libfile-desktopentry-perl libfile-listing-perl libfile-mimeinfo-perl   libfont-afm-perl libfontenc1 libgl1-mesa-glx libhtml-form-perl   libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl   libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl   libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libice6   libio-html-perl libio-socket-ssl-perl libipc-system-simple-perl libisl15   liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmpc3   libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl   libsm6 libtie-ixhash-perl libtimedate-perl liburi-perl libwww-perl   libwww-robotrules-perl libx11-protocol-perl libxaw7 libxcb-glx0   libxcb-shape0 libxft2 libxml-parser-perl libxml-twig-perl   libxml-xpathengine-perl libxmu6 libxt6 libxv1 libxxf86dga1 libxxf86vm1 x11-utils x11-xserver-utils xdg-utils

Yet I end up with this error:

ndipiazza@ubuntuChromeTest:~$ /usr/bin/chromium-browser --headless
[0319/172425.160913:ERROR:instance.cc(49)] Unable to locate service manifest for metrics
[0319/172425.161796:ERROR:service_manager.cc(890)] Failed to resolve service name: metrics
[0319/172425.208944:ERROR:instance.cc(49)] Unable to locate service manifest for metrics
[0319/172425.208968:ERROR:service_manager.cc(890)] Failed to resolve service name: metrics
[0319/172425.210200:ERROR:gpu_process_transport_factory.cc(1009)] Lost UI shared context.

Nicholas DiPiazza

unread,
Mar 19, 2018, 6:27:09 PM3/19/18
to chromium-packagers
My bad - it wanted 

     "--remote-debugging-port=9222"
Never mind!

rem...@gmail.com

unread,
Aug 3, 2018, 9:16:05 PM8/3/18
to chromium-packagers
When I set "--remote-debugging-port=9222", chrome gets stuck at
DevTools listening on ws://127.0.0.1:9508/devtools/browser/

Is this an error? Is there a way to fix it?

Nicholas DiPiazza

unread,
Aug 4, 2018, 2:41:20 AM8/4/18
to chromium-packagers, rem...@gmail.com
That's not an error. it's waiting for you to use the DevTools port to issue commands. See DevTools API
Reply all
Reply to author
Forward
0 new messages