cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4059
Views
1
Helpful
3
Replies

Failed to login to apic

zelbaz
Cisco Employee
Cisco Employee

I try to run one of the scripts but the login is failing I get

Traceback (most recent call last):

  File "create-tenant.py", line 19, in <module>

    session.login()

  File "/localdisk/acitoolkit/acitoolkit-master/acitoolkit/acisession.py", line 367, in login

    resp = self._send_login(timeout)

  File "/localdisk/acitoolkit/acitoolkit-master/acitoolkit/acisession.py", line 342, in _send_login

    ret = self.session.post(login_url, data=jcred, verify=self.verify_ssl, timeout=timeout)

  File "/users/zelbaz/.local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 508, in post

    return self.request('POST', url, data=data, json=json, **kwargs)

  File "/users/zelbaz/.local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 465, in request

    resp = self.send(prep, **send_kwargs)

  File "/users/zelbaz/.local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 573, in send

    r = adapter.send(request, **kwargs)

  File "/users/zelbaz/.local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/adapters.py", line 415, in send

    raise ConnectionError(err, request=request)

"requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))"

When I use another apic it is working. What can be the problem?

1 Accepted Solution

Accepted Solutions

I am using https passing https://ip as url , admin name and password.

I found the issue , In the APIC I enable TLSv1 and it is working now.

View solution in original post

3 Replies 3

kecorbin
Cisco Employee
Cisco Employee

How are you passing the URL/username/admin?  are you specifying http or https?

I am using https passing https://ip as url , admin name and password.

I found the issue , In the APIC I enable TLSv1 and it is working now.

Thanks,

Zehavit

I am using https passing https://ip as url , admin name and password.

I found the issue , In the APIC I enable TLSv1 and it is working now.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:


This community is intended for developer topics around Data Center technology and products. If you are looking for a non-developer topic about Data Center, you might find additional information in the Data Center and Cloud community