diff --git a/IUM_08.MLFlow.ipynb b/IUM_08.MLFlow.ipynb index 1759b0a..4093ab4 100644 --- a/IUM_08.MLFlow.ipynb +++ b/IUM_08.MLFlow.ipynb @@ -32,7 +32,13 @@ " - Popularna wśród pracodawców - wyniki wyszukiwania ofert pracy: 20 ofert (https://pl.indeed.com/), 36 ofert (linkedin). Sacred: 0\n", " - Integracja z licznymi bibliotekami / chmurami\n", " - Rozwiązanie OpenSource, stworzone przez firmę Databricks\n", - " - Dostępna [odpłatna wersja \"Managed\"](https://databricks.com/product/managed-mlflow) (w ordóżnieniu od \"self-hosted\")\n" + " - Dostępne różne wydania / opcje instalacji:\n", + " - płatne:\n", + " - Databricks Customers\n", + " - bezpłatne:\n", + " - Databricks Community Edition\n", + " - Self-managed MLflow\n", + " - Local Tracking Server\n" ] }, { @@ -63,12 +69,12 @@ }, "source": [ "## MLflow Tracking - przykład\n", - "(poniższe przykłady kodu trenującego pochodzą z tutoriala MLflow: https://mlflow.org/docs/latest/tutorials-and-examples/tutorial.html)" + "(Poniższe przykłady kodu trenującego pochodzą z tutoriala MLflow)." ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": { "slideshow": { "slide_type": "slide" @@ -92,7 +98,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": { "slideshow": { "slide_type": "slide" @@ -103,7 +109,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Overwriting IUM_08/examples/sklearn_elasticnet_wine/train.py\n" + "Writing IUM_08/examples/sklearn_elasticnet_wine/train.py\n" ] } ], @@ -213,7 +219,7 @@ }, { "cell_type": "code", - "execution_count": 81, + "execution_count": 4, "metadata": { "slideshow": { "slide_type": "slide" @@ -224,18 +230,95 @@ "name": "stdout", "output_type": "stream", "text": [ - "total 4\n", - "drwxrwxr-x 3 tomek tomek 4096 maj 19 21:31 1\n", - "INFO: 's123456' does not exist. Creating a new experiment\n", - "MLflow run experiment_id: 2\n", - "MLflow run artifact_uri: /tmp/mlruns/2/c15feb5df335490ba990ddd4dd977c1b/artifacts\n", - "Elasticnet model (alpha=0.500000, l1_ratio=0.500000):\n", - " RMSE: 0.7931640229276851\n", - " MAE: 0.6271946374319586\n", - " R2: 0.10862644997792614\n", - "Registered model 'ElasticnetWineModel' already exists. Creating a new version of this model...\n", - "2021/05/19 22:34:48 INFO mlflow.tracking._model_registry.client: Waiting up to 300 seconds for model version to finish creation. Model name: ElasticnetWineModel, version 2\n", - "Created version '2' of model 'ElasticnetWineModel'.\n" + "ls: cannot access '/tmp/mlruns': No such file or directory\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "Traceback (most recent call last):\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 198, in _new_conn\n", + " sock = connection.create_connection(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", + " raise err\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n", + " sock.connect(sa)\n", + "ConnectionRefusedError: [Errno 111] Connection refused\n", + "\n", + "The above exception was the direct cause of the following exception:\n", + "\n", + "Traceback (most recent call last):\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 793, in urlopen\n", + " response = self._make_request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 496, in _make_request\n", + " conn.request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 400, in request\n", + " self.endheaders()\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1278, in endheaders\n", + " self._send_output(message_body, encode_chunked=encode_chunked)\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1038, in _send_output\n", + " self.send(msg)\n", + " File \"/usr/lib/python3.10/http/client.py\", line 976, in send\n", + " self.connect()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 238, in connect\n", + " self.sock = self._new_conn()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 213, in _new_conn\n", + " raise NewConnectionError(\n", + "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", + "\n", + "The above exception was the direct cause of the following exception:\n", + "\n", + "Traceback (most recent call last):\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 486, in send\n", + " resp = conn.urlopen(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", + " return self.urlopen(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", + " return self.urlopen(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", + " return self.urlopen(\n", + " [Previous line repeated 2 more times]\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 847, in urlopen\n", + " retries = retries.increment(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 515, in increment\n", + " raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n", + "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "\n", + "During handling of the above exception, another exception occurred:\n", + "\n", + "Traceback (most recent call last):\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 128, in http_request\n", + " return _get_http_response_with_retries(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/request_utils.py\", line 228, in _get_http_response_with_retries\n", + " return session.request(method, url, allow_redirects=allow_redirects, **kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 589, in request\n", + " resp = self.send(prep, **send_kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 703, in send\n", + " r = adapter.send(request, **kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 519, in send\n", + " raise ConnectionError(e, request=request)\n", + "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "\n", + "During handling of the above exception, another exception occurred:\n", + "\n", + "Traceback (most recent call last):\n", + " File \"/home/pawel/ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", + " mlflow.set_experiment(\"s123456\")\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/fluent.py\", line 143, in set_experiment\n", + " experiment = client.get_experiment_by_name(experiment_name)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/client.py\", line 544, in get_experiment_by_name\n", + " return self._tracking_client.get_experiment_by_name(name)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py\", line 236, in get_experiment_by_name\n", + " return self.store.get_experiment_by_name(name)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 323, in get_experiment_by_name\n", + " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 60, in _call_endpoint\n", + " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 286, in call_endpoint\n", + " response = http_request(**call_kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 151, in http_request\n", + " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", + "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" ] } ], @@ -247,7 +330,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 5, "metadata": { "slideshow": { "slide_type": "slide" @@ -258,7938 +341,338 @@ "name": "stdout", "output_type": "stream", "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 198, in _new_conn\n", + " sock = connection.create_connection(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n", " sock.connect(sa)\n", "ConnectionRefusedError: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 793, in urlopen\n", + " response = self._make_request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 496, in _make_request\n", + " conn.request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 400, in request\n", + " self.endheaders()\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1278, in endheaders\n", " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1038, in _send_output\n", " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", + " File \"/usr/lib/python3.10/http/client.py\", line 976, in send\n", " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 238, in connect\n", + " self.sock = self._new_conn()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 213, in _new_conn\n", " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", + "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 486, in send\n", " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 847, in urlopen\n", " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 515, in increment\n", + " raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n", + "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 128, in http_request\n", " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/request_utils.py\", line 228, in _get_http_response_with_retries\n", + " return session.request(method, url, allow_redirects=allow_redirects, **kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 589, in request\n", " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 703, in send\n", " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 519, in send\n", " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", + " File \"/home/pawel/ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/fluent.py\", line 143, in set_experiment\n", " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/client.py\", line 544, in get_experiment_by_name\n", " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py\", line 236, in get_experiment_by_name\n", " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 323, in get_experiment_by_name\n", " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 60, in _call_endpoint\n", " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 286, in call_endpoint\n", + " response = http_request(**call_kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 151, in http_request\n", " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 198, in _new_conn\n", + " sock = connection.create_connection(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n", " sock.connect(sa)\n", "ConnectionRefusedError: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 793, in urlopen\n", + " response = self._make_request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 496, in _make_request\n", + " conn.request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 400, in request\n", + " self.endheaders()\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1278, in endheaders\n", " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1038, in _send_output\n", " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", + " File \"/usr/lib/python3.10/http/client.py\", line 976, in send\n", " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 238, in connect\n", + " self.sock = self._new_conn()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 213, in _new_conn\n", " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", + "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 486, in send\n", " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 847, in urlopen\n", " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 515, in increment\n", + " raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n", + "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 128, in http_request\n", " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/request_utils.py\", line 228, in _get_http_response_with_retries\n", + " return session.request(method, url, allow_redirects=allow_redirects, **kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 589, in request\n", " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 703, in send\n", " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 519, in send\n", " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", + " File \"/home/pawel/ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/fluent.py\", line 143, in set_experiment\n", " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/client.py\", line 544, in get_experiment_by_name\n", " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py\", line 236, in get_experiment_by_name\n", " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 323, in get_experiment_by_name\n", " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 60, in _call_endpoint\n", " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 286, in call_endpoint\n", + " response = http_request(**call_kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 151, in http_request\n", " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 198, in _new_conn\n", + " sock = connection.create_connection(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n", " sock.connect(sa)\n", "ConnectionRefusedError: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 793, in urlopen\n", + " response = self._make_request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 496, in _make_request\n", + " conn.request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 400, in request\n", + " self.endheaders()\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1278, in endheaders\n", " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1038, in _send_output\n", " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", + " File \"/usr/lib/python3.10/http/client.py\", line 976, in send\n", " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 238, in connect\n", + " self.sock = self._new_conn()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 213, in _new_conn\n", " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", + "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 486, in send\n", " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 847, in urlopen\n", " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 515, in increment\n", + " raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n", + "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 128, in http_request\n", " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/request_utils.py\", line 228, in _get_http_response_with_retries\n", + " return session.request(method, url, allow_redirects=allow_redirects, **kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 589, in request\n", " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 703, in send\n", " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 519, in send\n", " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", + " File \"/home/pawel/ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/fluent.py\", line 143, in set_experiment\n", " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/client.py\", line 544, in get_experiment_by_name\n", " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py\", line 236, in get_experiment_by_name\n", " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 323, in get_experiment_by_name\n", " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 60, in _call_endpoint\n", " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 286, in call_endpoint\n", + " response = http_request(**call_kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 151, in http_request\n", " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", + "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", + "^C\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 198, in _new_conn\n", + " sock = connection.create_connection(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n", " sock.connect(sa)\n", "ConnectionRefusedError: [Errno 111] Connection refused\n", "\n", - "During handling of the above exception, another exception occurred:\n", + "The above exception was the direct cause of the following exception:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 793, in urlopen\n", + " response = self._make_request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 496, in _make_request\n", + " conn.request(\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 400, in request\n", + " self.endheaders()\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1278, in endheaders\n", " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", + " File \"/usr/lib/python3.10/http/client.py\", line 1038, in _send_output\n", " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", + " File \"/usr/lib/python3.10/http/client.py\", line 976, in send\n", " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 238, in connect\n", + " self.sock = self._new_conn()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connection.py\", line 213, in _new_conn\n", " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", + "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", "\n", "During handling of the above exception, another exception occurred:\n", "\n", "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", + " File \"/home/pawel/ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/fluent.py\", line 143, in set_experiment\n", " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/client.py\", line 544, in get_experiment_by_name\n", " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py\", line 236, in get_experiment_by_name\n", " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 323, in get_experiment_by_name\n", " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/store/tracking/rest_store.py\", line 60, in _call_endpoint\n", " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", - " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 286, in call_endpoint\n", + " response = http_request(**call_kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/rest_utils.py\", line 128, in http_request\n", " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/mlflow/utils/request_utils.py\", line 228, in _get_http_response_with_retries\n", + " return session.request(method, url, allow_redirects=allow_redirects, **kwargs)\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 589, in request\n", " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/sessions.py\", line 703, in send\n", " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=3, connect=3, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=5)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')': /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 174, in _new_conn\n", - " conn = connection.create_connection(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 95, in create_connection\n", - " raise err\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n", - " sock.connect(sa)\n", - "ConnectionRefusedError: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 703, in urlopen\n", - " httplib_response = self._make_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 398, in _make_request\n", - " conn.request(method, url, **httplib_request_kw)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 239, in request\n", - " super(HTTPConnection, self).request(method, url, body=body, headers=headers)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1285, in request\n", - " self._send_request(method, url, body, headers, encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1331, in _send_request\n", - " self.endheaders(body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1280, in endheaders\n", - " self._send_output(message_body, encode_chunked=encode_chunked)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 1040, in _send_output\n", - " self.send(msg)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/http/client.py\", line 980, in send\n", - " self.connect()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 205, in connect\n", - " conn = self._new_conn()\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connection.py\", line 186, in _new_conn\n", - " raise NewConnectionError(\n", - "urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 440, in send\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/requests/adapters.py\", line 486, in send\n", " resp = conn.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 877, in urlopen\n", " return self.urlopen(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 813, in urlopen\n", - " return self.urlopen(\n", - " [Previous line repeated 2 more times]\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 785, in urlopen\n", - " retries = retries.increment(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/urllib3/util/retry.py\", line 592, in increment\n", - " raise MaxRetryError(_pool, url, error or ResponseError(cause))\n", - "urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 174, in http_request\n", - " return _get_http_response_with_retries(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 105, in _get_http_response_with_retries\n", - " return session.request(method, url, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 529, in request\n", - " resp = self.send(prep, **send_kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/sessions.py\", line 645, in send\n", - " r = adapter.send(request, **kwargs)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/requests/adapters.py\", line 519, in send\n", - " raise ConnectionError(e, request=request)\n", - "requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n", - "\n", - "During handling of the above exception, another exception occurred:\n", - "\n", - "Traceback (most recent call last):\n", - " File \"/home/tomek/repos/aitech-ium/IUM_08/examples/sklearn_elasticnet_wine/train.py\", line 24, in \n", - " mlflow.set_experiment(\"s123456\")\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/fluent.py\", line 113, in set_experiment\n", - " experiment = client.get_experiment_by_name(experiment_name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/client.py\", line 461, in get_experiment_by_name\n", - " return self._tracking_client.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py\", line 220, in get_experiment_by_name\n", - " return self.store.get_experiment_by_name(name)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 304, in get_experiment_by_name\n", - " response_proto = self._call_endpoint(GetExperimentByName, req_body)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/store/tracking/rest_store.py\", line 56, in _call_endpoint\n", - " return call_endpoint(self.get_host_creds(), endpoint, method, json_body, response_proto)\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 283, in call_endpoint\n", - " response = http_request(\n", - " File \"/home/tomek/miniconda3/lib/python3.9/site-packages/mlflow/utils/rest_utils.py\", line 192, in http_request\n", - " raise MlflowException(f\"API request to {url} failed with exception {e}\")\n", - "mlflow.exceptions.MlflowException: API request to http://localhost:5000/api/2.0/mlflow/experiments/get-by-name failed with exception HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/2.0/mlflow/experiments/get-by-name?experiment_name=s123456 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))\n" + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/connectionpool.py\", line 850, in urlopen\n", + " retries.sleep()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 359, in sleep\n", + " self._sleep_backoff()\n", + " File \"/home/pawel/ium/venv/lib/python3.10/site-packages/urllib3/util/retry.py\", line 343, in _sleep_backoff\n", + " time.sleep(backoff)\n", + "KeyboardInterrupt\n" ] } ], @@ -8988,57 +1471,6 @@ "- Żeby było to możliwe, musimy mieć uruchomiony [serwer MLflow](https://mlflow.org/docs/latest/tracking.html#tracking-server)\n", "- Umożliwia zarządzanie wersjami modeli i oznaczanie ich różnymi fazami, np. \"Staging\", \"Production\"" ] - }, - { - "cell_type": "markdown", - "metadata": { - "slideshow": { - "slide_type": "slide" - } - }, - "source": [ - "## Zadania (termin: 14.05 EOD) \n", - "1. [2 pkt] Dodaj do joba treningowego wywołania MLflow, tak, żeby przy każdym uruchomieniu stworzyć i zarchiwizować katalog z modelem. Plik MLmodel powinien zawierać pola:\n", - " - signature\n", - " - input_example\n", - "\n", - " Folder powinien również zawierać definicję środowiska - conda lub docker, umożliwiającego uruchomienie projektu.\n", - "\n", - "2. [6 pkt] Wybierz jedną osobę z grupy. Załóżmy, że Twoje ID to s123456 a jej s654321. Stwórz na Jenkinsie projekt `s123456-predict-s654321`, w którym:\n", - " - pobierzesz artefakt z zapisanym modelem z joba osoby s654321\n", - " - dokonasz na nim predykcji danych wejściowych podanych w formacie json jako parametr zadania Jenkinsowego. Domyślną wartością tego parametru niech będą przykładowe dane wejściowe z `input_example`\n", - " \n", - "3. [1 pkt] Zarejestruj swój model w MLflow registry\n", - "\n", - "4. [6 pkt] Stwórz na Jenkinsie projekt `s123456-predict-s654321-from-registry`, który zrealizuje to samo zadanie co `s123456-predict-s654321`, ale tym razem pobierze model z rejestru MLflow zamiast z artefaktów Jenkinsa" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "slideshow": { - "slide_type": "slide" - } - }, - "source": [ - "Dane do konfiguracji MLflow registry\n", - "\n", - "- Podgląd w przeglądarce: http://tzietkiewicz.vm.wmi.amu.edu.pl/#/\n", - " - user: `student`\n", - " - hasło: IUM@2021\n", - "\n", - "- Tracking URI:\n", - " - Python: `mlflow.set_tracking_uri(\"http://172.17.0.1:5000\")`\n", - " - CLI: `export MLFLOW_TRACKING_URI=http://172.17.0.1:5000`\n", - " \n", - "- Żeby klient MLflow działający w kontenerze docker mógł zapisywać i pdczytywać artefakty, muszą Państwo podmonotwać katalog `/tmp/mlruns` i `/mlruns` (ten drugi po to, żeby po restarcie serwera katalog nie został wyczyszczony)\n", - " - jak podmontować: ```docker.image('my-image').inside('-v /tmp/mlruns:/tmp/mlruns' -v /mlruns:/mlruns')```\n", - " - Przykład działąjącego joba na Jenkinsie zapisującego wyniki do MLFlow: https://tzietkiewicz.vm.wmi.amu.edu.pl:8081/job/gitea-test/job/ium-helloworld/job/master/\n", - " - Repo: https://git.wmi.amu.edu.pl/tzietkiewicz/ium-helloworld/src/branch/master\n", - "\n", - "- Proszę ustawić nazwę eksperymentu na numer indeksu, dzięki temu każdy z Państwa będzie widział swoje eksperymenty oddzielnie:\n", - "`mlflow.set_experiment(\"s123456\")`" - ] } ], "metadata": { @@ -9061,7 +1493,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.12" }, "slideshow": { "slide_type": "slide"