Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot follow the online endpoint tutorial for local deployment #26752

Closed
Z30G0D opened this issue Jun 25, 2023 · 3 comments
Closed

Cannot follow the online endpoint tutorial for local deployment #26752

Z30G0D opened this issue Jun 25, 2023 · 3 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. Installation Machine Learning az ml
Milestone

Comments

@Z30G0D
Copy link

Z30G0D commented Jun 25, 2023

Describe the bug

Cannot use the command under this tutorial:

az ml online-endpoint create --local -n test-endpoint -f endpoints/online/managed/sample/endpoint.yml --debug

getting
`cli.azure.cli.core.azclierror: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

az_command_data_logger: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/`

Related command

az ml online-endpoint create --local -n test-endpoint -f endpoints/online/managed/sample/endpoint.yml --debug

Steps to reproduce the behavior:
1.Run the command

Errors

cli.azure.cli.core.azclierror: Unexpected error verifying an endpoint with the provided name doesn't exist Full error can be found here: Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

Issue script & Debug output

`~/Doc/so/azureml-examples/cli main !1 ?1 az ml online-endpoint create --local -n test-endpoint -f endpoints/online/managed/sample/endpoint.yml --debug ok model-env py | Microsoft Azure Sponsorship az 23:31:49
cli.knack.cli: Command arguments: ['ml', 'online-endpoint', 'create', '--local', '-n', 'test-endpoint', '-f', 'endpoints/online/managed/sample/endpoint.yml', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x105c7a320>, <function OutputProducer.on_global_arguments at 0x105d07400>, <function CLIQuery.on_global_arguments at 0x105d648b0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'ml': ['azext_mlv2']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
cli.azure.cli.core: ml 1.830 20 138 /Users/tomernahshon/.azure/cliextensions/ml
cli.azure.cli.core: Total (1) 1.830 20 138
cli.azure.cli.core: Loaded 20 groups, 138 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : ml online-endpoint create
cli.azure.cli.core: Command table: ml online-endpoint create
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x106787f40>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/tomernahshon/.azure/commands/2023-06-24.23-31-53.ml_online-endpoint_create.32637.log'.
az_command_data_logger: command args: ml online-endpoint create --local -n {} -f {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x1067aca60>]
cli.knack.commands: Configured default 'template-rg' for arg resource_group_name
cli.knack.commands: Configured default 'production-ws' for arg workspace_name
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x1067d27a0>, <function register_cache_arguments..add_cache_arguments at 0x1067d28c0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x105d07490>, <function CLIQuery.handle_query_parameter at 0x105d64940>, <function register_ids_argument..parse_ids_arguments at 0x1067d2830>]
az_command_data_logger: extension name: ml
az_command_data_logger: extension version: 2.18.0
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=AzureMachineLearningWorkspaces
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/tomernahshon/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/tomernahshon/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=_ml_client_cli
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/bb348135-e1f7-4fb5-a574-9998584b5e53/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
docker.utils.config: Trying paths: ['/Users/tomernahshon/.docker/config.json', '/Users/tomernahshon/.dockercfg']
docker.utils.config: No config file found
docker.utils.config: Trying paths: ['/Users/tomernahshon/.docker/config.json', '/Users/tomernahshon/.dockercfg']
docker.utils.config: No config file found
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 63, in _client
self._lazy_client = docker.from_env()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/client.py", line 96, in from_env
return cls(
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/client.py", line 45, in init
self.api = APIClient(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 97, in ml_online_endpoint_create
ml_client.online_endpoints.get(name=endpoint.name, local=local)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
return func(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_telemetry/activity.py", line 263, in wrapper
return f(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_online_endpoint_operations.py", line 131, in get
return self._local_endpoint_helper.get(endpoint_name=name)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_local_endpoint_helper.py", line 105, in get
container = self._docker_client.get_endpoint_container(endpoint_name=endpoint_name, include_stopped=True)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 370, in get_endpoint_container
containers = self.list_containers(
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 349, in list_containers
return self._client.containers.list(filters=filters, all=include_stopped)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 66, in _client
raise DockerEngineNotAvailableError()
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml.exceptions.DockerEngineNotAvailableError: Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 106, in ml_online_endpoint_create
raise ValidationException(
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml.exceptions.ValidationException: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

cli: None
cli: Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 63, in _client
self._lazy_client = docker.from_env()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/client.py", line 96, in from_env
return cls(
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/client.py", line 45, in init
self.api = APIClient(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 97, in ml_online_endpoint_create
ml_client.online_endpoints.get(name=endpoint.name, local=local)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
return func(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_telemetry/activity.py", line 263, in wrapper
return f(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_online_endpoint_operations.py", line 131, in get
return self._local_endpoint_helper.get(endpoint_name=name)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_local_endpoint_helper.py", line 105, in get
container = self._docker_client.get_endpoint_container(endpoint_name=endpoint_name, include_stopped=True)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 370, in get_endpoint_container
containers = self.list_containers(
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 349, in list_containers
return self._client.containers.list(filters=filters, all=include_stopped)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 66, in _client
raise DockerEngineNotAvailableError()
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml.exceptions.DockerEngineNotAvailableError: Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 106, in ml_online_endpoint_create
raise ValidationException(
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml.exceptions.ValidationException: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/local/Cellar/[email protected]/3.10.12/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/transport/unixconn.py", line 27, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 63, in _client
self._lazy_client = docker.from_env()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/client.py", line 96, in from_env
return cls(
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/client.py", line 45, in init
self.api = APIClient(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 197, in init
self._version = self._retrieve_server_version()
File "/Users/tomernahshon/.azure/cliextensions/ml/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 97, in ml_online_endpoint_create
ml_client.online_endpoints.get(name=endpoint.name, local=local)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
return func(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_telemetry/activity.py", line 263, in wrapper
return f(*args, **kwargs)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_online_endpoint_operations.py", line 131, in get
return self._local_endpoint_helper.get(endpoint_name=name)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_local_endpoint_helper.py", line 105, in get
container = self._docker_client.get_endpoint_container(endpoint_name=endpoint_name, include_stopped=True)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 370, in get_endpoint_container
containers = self.list_containers(
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 349, in list_containers
return self._client.containers.list(filters=filters, all=include_stopped)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_local_endpoints/docker_client.py", line 66, in _client
raise DockerEngineNotAvailableError()
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml.exceptions.DockerEngineNotAvailableError: Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/local/Cellar/azure-cli/2.49.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 136, in ml_online_endpoint_create
log_and_raise_error(err, debug, yaml_operation=yaml_operation)
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/raise_error.py", line 181, in log_and_raise_error
raise cli_error
File "/Users/tomernahshon/.azure/cliextensions/ml/azext_mlv2/manual/custom/online_endpoint.py", line 106, in ml_online_endpoint_create
raise ValidationException(
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml.exceptions.ValidationException: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

cli.azure.cli.core.azclierror: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

az_command_data_logger: Unexpected error verifying an endpoint with the provided name doesn't exist
Full error can be found here:
Please make sure Docker Engine is installed and running. https://docs.docker.com/engine/install/

cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x1067881f0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 2.198 seconds (init: 0.180, invoke: 2.017)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4404 in cache
telemetry.check: Negative: The /Users/tomernahshon/.azure/telemetry.txt was modified at 2023-06-24 23:24:51.190847, which in less than 600.000000 s`

Expected behavior

I tried reinstalling az-cli.
seems like the --local is the only issue since the w/o the flag it works great.
when trying to put the --debug flag I see that there are problems finding the docker engine for some reason.

Environment Summary

Operating System:
macos Monterey
Package Name:
Package Version:
Python Version:
azure-cli 2.49.0
core 2.49.0
telemetry 1.0.8

Extensions:
ml 2.18.0

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Python location '/usr/local/Cellar/azure-cli/2.49.0/libexec/bin/python'
Extensions directory '/Users/tomernahshon/.azure/cliextensions'

Python (Darwin) 3.10.12 (main, Jun 15 2023, 07:13:07) [Clang 14.0.0 (clang-1400.0.29.202)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

@Z30G0D Z30G0D added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 25, 2023
@azure-client-tools-bot-prd
Copy link

Hi @Z30G0D,

This is not the official Azure CLI published by Microsoft.

How to tell if the installed Azure CLI is unofficial:

Please follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux to install Microsoft official Azure CLI.

If you feel that further discussion is needed, please add a comment with the text /clibot unresolve to reopen the issue.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jun 25, 2023
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot CXP Attention This issue is handled by CXP team. labels Jun 25, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 25, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost assigned jiasli Jun 25, 2023
@ghost ghost added this to the Backlog milestone Jun 25, 2023
@Z30G0D
Copy link
Author

Z30G0D commented Jun 25, 2023

Managed to solve it.
in Docker Desktop:
Settings>Advanced:
image

Details (regardingdocker.sock):
https://docs.docker.com/desktop/mac/permission-requirements/#installing-symlinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. Installation Machine Learning az ml
Projects
None yet
Development

No branches or pull requests

3 participants