Symptoms:
When running Selenium Grid WebDriver test, the driver reports a stack trace with "
Caused by: org.openqa.selenium.WebDriverException: connection refused". Reviewing the output of "
docker -H VCH_IP_FQDN:2376 --tls logs <Container_Name_ID>" Similar to the following is seen.
16:09:24.743 INFO - The node is registered to the hub and ready to use
2018-03-14 16:15:20.489:INFO:osjshC.ROOT:qtp436546048-12: org.openqa.selenium.remote.server.WebDriverServlet-3ba9ad43: Initialising WebDriverServlet
16:15:20.535 INFO - Found handler: org.openqa.selenium.remote.server.commandhandler.BeginSession@2258a381
16:15:20.541 INFO - /session: Executing POST on /session (handler: BeginSession)
16:15:20.669 INFO - Capabilities are: Capabilities {acceptInsecureCerts: true, browserName: firefox, version: }
16:15:20.673 INFO - Capabilities {acceptInsecureCerts: true, browserName: firefox, version: } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.firefox.GeckoDriverService)
1521044120746 geckodriver INFO geckodriver 0.19.1
1521044120752 geckodriver INFO Listening on 127.0.0.1:3377
1521044121064 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.lZOama6uW0oN"
Error: Access was denied while trying to open files in your profile directory.
(firefox:350): dconf-CRITICAL **: unable to create directory '/root/.cache/dconf': Permission denied. dconf will not work properly.
When deploying the debug image "selenium/node-firefox-debug" the VNC console will not connect to the container.
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.