[Errno 10054] An existing connection was forcibly closed by the remote host

1,437 views
Skip to first unread message

nilaybnrj

unread,
Jun 8, 2016, 12:45:49 PM6/8/16
to Lamp_tutorial
Hi

I am trying to load webdriver for firefox using selenium but getting this error "[Errno 10054] An existing connection was forcibly closed by the remote host"

Python Version:2.7
Selenium Version:2.53.3
Firefox Version:47


What may be the possible cause?

Error:
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    driver=webdriver.Firefox()
  File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 107, in __init__
    print(str(e))
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 91, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 173, in start_session
    capabilities.setdefault('desiredCapabilities', {})[k] = v
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 231, in execute
    elif 'sessionId' not in params:
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 395, in execute
    """
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 426, in _request
    (parsed_url.username, parsed_url.password)).encode('ascii')).decode('ascii').replace('\n', '')
  File "C:\Python27\lib\httplib.py", line 1136, in getresponse
    response.begin()
  File "C:\Python27\lib\httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "C:\Python27\lib\httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "C:\Python27\lib\socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
error: [Errno 10054] An existing connection was forcibly closed by the remote host


Amardeep Kishore

unread,
Jun 8, 2016, 1:28:27 PM6/8/16
to nilaybnrj, Lamp_tutorial
Can you share your piece of code also.

Best regards,
Amardeep Kishore
Evangelist -  OPEN STACK | CLOUD STACK | VIRTUALIZATION | OPEN SOURCE | LINUX
----------------
Red Hat Certified System Administrator in Red Hat OpenStack, Red Hat Certified Virtualization Administrator (RHCVA), Red Hat Certified Engineer (RHCE) (ver= 5,6,7), Red Hat Certified Technician (RHCT), Red Hat Certified System Administrator, Certified Linux Administrator (Novell Suse 11 CLA), Oracle Certified Implementation Specialist (Oracle Linux - 6), Dell Certified System Expert (DCSE), Microsoft Certified Professional (MCP).
----------------
Open Source isn't about saving money, it is about doing more stuff and getting incremental innovation with the finite budget you have.

--
You received this message because you are subscribed to the Google Groups "Lamp_tutorial" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lamp_tutoria...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amardeep Kishore

unread,
Jun 8, 2016, 1:33:19 PM6/8/16
to nilaybnrj, Lamp_tutorial
Hi,

If you are running in a VM or in Environment where you need proxy to access internet for that you need to configure Proxy setting or check weather your Internet is working fine or your VM is taking to the web and at last any firewall is stopping you to reach outside.

if above all is working fine, Do share your code I shall try to help it this matter.

Best regards,
Amardeep Kishore
Evangelist -  OPEN STACK | CLOUD STACK | VIRTUALIZATION | OPEN SOURCE | LINUX
----------------
Red Hat Certified System Administrator in Red Hat OpenStack, Red Hat Certified Virtualization Administrator (RHCVA), Red Hat Certified Engineer (RHCE) (ver= 5,6,7), Red Hat Certified Technician (RHCT), Red Hat Certified System Administrator, Certified Linux Administrator (Novell Suse 11 CLA), Oracle Certified Implementation Specialist (Oracle Linux - 6), Dell Certified System Expert (DCSE), Microsoft Certified Professional (MCP).
----------------
Open Source isn't about saving money, it is about doing more stuff and getting incremental innovation with the finite budget you have.

On Wed, Jun 8, 2016 at 10:15 PM, nilaybnrj <nila...@gmail.com> wrote:

udhay prakash pethakamsetty

unread,
Jun 8, 2016, 1:46:49 PM6/8/16
to Amardeep Kishore, nilaybnrj, Lamp_tutorial
HI 
I think "[Errno 10054]" is due to socket connection problem. It tried to establish connect, but it was forcefully disconnected. The below are few cases which may be responsible, apart from the proxy case stated by amardeep:
1. It may be due to network issue. so, give a retry. 
2.  Your system disk in which you are running is out of resources to serve it. 
3. The port in which you want to run is either being used by another application, or you dont have permission to use that port 

regards

UDHAY PRAKASH
Reply all
Reply to author
Forward
0 new messages