Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Successfully using firefox on a headless server

  • 1 reply
  • 1 has this problem
  • 15 views
  • Last reply by guigs

more options

Hello all

 I am running a VM with google cloud platform.  I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers.
I have managed to install firefox and xvfb so I can use it headlessly.

Yet , whenever I try to run firefox (xvfb-run -a firefox)

I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM.


Does this have to do with my installation of firefox or the fact that I am running headless?

How do I fix this problem?

Hello all I am running a VM with google cloud platform. I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers. I have managed to install firefox and xvfb so I can use it headlessly. Yet , whenever I try to run firefox (xvfb-run -a firefox) I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM. Does this have to do with my installation of firefox or the fact that I am running headless? How do I fix this problem?

All Replies (1)

more options

That's a great question! It looks like you might have the wrong package installed version 1 instead of 2: See: *http://scraping.pro/use-headless-firefox-scraping-linux/