Skip to content

Connection Error with LE Certificate Script #272

@shanebionic

Description

@shanebionic

Hello. I've been receiving the following error when trying to implement the LE Cert Management script. This error shows when I attempt to create a certificate. Any help is appreciated to track down what is causing this.

Error from certificate management service: STDOUT - "Running version 0.9.7 dry_run is: True disable_check is: False directory_url is https://acme-staging-v02.api.letsencrypt.org/directory ". STDERR - "Connection error retrying HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ea57c0>: Failed to establish a new connection: [Errno 111] Connection refused')) Connection error retrying HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ea5b50>: Failed to establish a new connection: [Errno 111] Connection refused')) Connection error retrying HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ea5ee0>: Failed to establish a new connection: [Errno 111] Connection refused')) Connection error retrying HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) giving up after 3 retries connection failure True Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 140, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 346, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 850, in _validate_conn conn.connect() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 284, in connect conn = self._new_conn() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 149, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/run/shm/cs/LetsEncryptProfile", line 559, in cert = certificate_request(csr, common_name, kwargs) File "/run/shm/cs/LetsEncryptProfile", line 530, in certificate_request signed_crt = get_crt(user, password, tenant, api_version, csr_temp_file.name, File "/run/shm/cs/LetsEncryptProfile", line 137, in get_crt session = ApiSession(apiHost, user, password, tenant=tenant, api_version=api_version) File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 304, in init self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 545, in authenticate_session self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 545, in authenticate_session self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 545, in authenticate_session self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 544, in authenticate_session raise err File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 491, in authenticate_session rsp = super(ApiSession, self).post( File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 578, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) Error in sys.excepthook: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/avi_traceback/avi_exception_hook.py", line 51, in avi_excepthook os.makedirs(output_dir) File "/usr/lib/python3.8/os.py", line 223, in makedirs mkdir(name, mode) OSError: [Errno 30] Read-only file system: '/var/lib/avi/python_crash' Original exception was: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 140, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 346, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 850, in _validate_conn conn.connect() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 284, in connect conn = self._new_conn() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 149, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/run/shm/cs/LetsEncryptProfile", line 559, in cert = certificate_request(csr, common_name, kwargs) File "/run/shm/cs/LetsEncryptProfile", line 530, in certificate_request signed_crt = get_crt(user, password, tenant, api_version, csr_temp_file.name, File "/run/shm/cs/LetsEncryptProfile", line 137, in get_crt session = ApiSession(apiHost, user, password, tenant=tenant, api_version=api_version) File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 304, in init self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 545, in authenticate_session self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 545, in authenticate_session self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 545, in authenticate_session self.authenticate_session() File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 544, in authenticate_session raise err File "/opt/avi/python/lib/avi/sdk/avi_api.py", line 491, in authenticate_session rsp = super(ApiSession, self).post( File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 578, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f6f09ecd2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions