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.

সহায়তা খুঁজুন

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.

আরও জানুন

Successfully using firefox on a headless server

  • 1 উত্তর
  • 1 এই সমস্যাটি আছে
  • 15 দেখুন
  • শেষ জবাব দ্বারা 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/