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!

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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Successfully using firefox on a headless server

  • 1 baphendule
  • 1 inale nkinga
  • 15 views
  • Igcine ukuphendulwa ngu 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/