Coder Social home page Coder Social logo

README example not working, getting `Error: SessionNotCreated, Unable to create new service: ChromeDriverService` about thirtyfour HOT 4 CLOSED

stevepryde avatar stevepryde commented on July 21, 2024
README example not working, getting `Error: SessionNotCreated, Unable to create new service: ChromeDriverService`

from thirtyfour.

Comments (4)

tjtelan avatar tjtelan commented on July 21, 2024 1

I was also unable to run the examples with the docker selenium startup in the README, but I did get it working with this version that isn't using the host network.
docker run --rm -d -p 4444:4444 --name selenium-server -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-zinc

FWIW, I was also able to reproduce the output from @d1618033 using a the firefox version of the container. I started the firefox container version like this:
docker run --rm -d -p 4444:4444 --name selenium-server -v /dev/shm:/dev/shm selenium/standalone-firefox:3.141.59-zinc

OS: MacOS 10.14
Docker: 19.03
Cargo: 1.40

from thirtyfour.

stevepryde avatar stevepryde commented on July 21, 2024 1

I forgot that OSX does not work with host networking. I suspect that is the issue. I chose to use host networking for the example to avoid issues with DNS lookups in docker (which requires some config on OSX and possibly Ubuntu / other distros depending on how DNS is configured on the host).

This would probably work for you by using -p 4444:4444 instead of --network host. If it complains of not being able to reach wikipedia (or whatever url you put in), you may need to also specify --dns <your_dns_server_ip> so that the container can resolve external DNS lookups.

There is a way to make the DNS setting permanent in the docker config. If you're on OSX, Docker desktop has a GUI for editing the config. On Linux, it's at /etc/docker/daemon.json.

Thanks @tjtelan, I'll check it out

from thirtyfour.

stevepryde avatar stevepryde commented on July 21, 2024 1

@d1618033 I've merged in changes from @tjtelan that should fix your issue.

Let me know if this works for you now.

from thirtyfour.

d1618033 avatar d1618033 commented on July 21, 2024

Works great, thank you!

from thirtyfour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.