• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Error: cannot open display: :0 geckodriver selenium

Resolved: Error: cannot open display: :0 geckodriver selenium

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’m trying to run a flask application that when the user inputs a link it runs a selenium script with that link and then returns some info. I’m in the process of trying to deploy it right now but running into some issues with setting up the X server. This was working fine a couple days ago not sure why it stopped working. When entering a url selenium runs into an error and the geckodriverlog file says this:
I tried the solution in this post which tells me to run the server through a virtual frame buffer but doing that didn’t seem to help at all. I also tried the solution in this post but writing the whole ip for my display variable gives me the same error with also a new error:
command used: /home/dummy/project/venv/bin/gunicorn –chdir /home/dummy/project -w 9 main:app

Answer:

I think the frame buffer should be the right method, the problem maybe the command you use. Try the following command:

If you have better answer, please add a comment about this, thank you!

gunicorn python selenium
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: TYPO3 SQL error: Field ‘tx_imagezoom_set’ doesn’t have a default value

26/03/2023

Resolved: std::regex_replace to replace multiple combinations

26/03/2023

Resolved: How can I copy files using the ansible.builtin.copy module and avoid conflicting file names?

26/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.